This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*{ | |
-webkit-tap-highlight-color: rgba(0,0,0,0); | |
-webkit-user-select: none; /* disable text select */ | |
-webkit-touch-callout: none; /* disable callout, image save panel (popup) */ | |
-webkit-tap-highlight-color: transparent; /* "turn off" link highlight */ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Typing animation with pure CSS. | |
* Works best in browsers supporting the ch unit. | |
*/ | |
@keyframes typing { from { width: 0; } } | |
@keyframes blink-caret { 50% { border-color: transparent; } } | |
h1 { | |
font: bold 200% Consolas, Monaco, monospace; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var search = document.getElementById('search'); | |
var searchBtn = document.getElementById('searchBtn'); | |
search.addEventListener('keypress', function(e){ | |
var e = e||event; | |
var key = e.which || e.keyCode; | |
if(key == 13){ | |
console.log(2323); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var note = document.getElementsByName('Note')[0]; | |
var screenPosition = note.getBoundingClientRect(); | |
function position( document.getElementsByName('Note')[0]) { | |
var left = 0, | |
top = 0; | |
do { | |
left += elem.offsetLeft-elem.scrollLeft; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//recvType 有三个值HTML、XML和JSON , 默认为HTML,传值时不区分大小写 | |
//bool 是一个boolean类型的值,true表示异步传输方式,false表示同步传输方式,默认为true | |
function Ajax(recvType, bool) { | |
var aj = new Object(); | |
aj.targetUrl = ''; //请求的地址 可以是PHP也可以XML文件 | |
aj.sendString = ''; //请求服务器传递的字符串 ? & 格式 url | |
if(typeof(bool)=="undefined") | |
aj.async=true; | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function ($, window, undefined) { | |
'use strict'; //jshint :) | |
//arrow animation | |
$("#info-activator").on({ | |
click : function(e) { | |
e.preventDefault(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input{ | |
border: 1px solid red; | |
} | |
.btn-file { | |
position: relative; | |
margin-left: 100px; | |
overflow: hidden; | |
} | |
.btn { | |
display: inline-block; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function questionCreator(spec, my) { | |
var that = {}; | |
my = my || {}; | |
my.label = spec.label; | |
my.renderInput = function() { | |
throw "not implemented"; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Event(name) { | |
var handlers = []; | |
this.getName = function () { | |
return name; | |
}; | |
this.addHandler = function (handler) { | |
handlers.push(handler); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pimaxx There is a problem. You have not expanded the zip into the ~/Library/Application\ Support/TideSDK as the instructions indicate. You should be see a structure like the following: | |
├── modules | |
│ └── osx | |
│ ├── app | |
│ ├── codec | |
│ ├── database | |
│ ├── filesystem | |
│ ├── media | |
│ ├── monkey |