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 onFastClick(element ,handler) { | |
var delay = 300, | |
offset = 10, | |
still = true, | |
startX = 0, | |
startY = 0, | |
touch; | |
function longClick() {//排除长按 | |
still = false; | |
} |
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
<!doctype html> | |
<head> | |
.a.b{ | |
background : gray; | |
} | |
.a.b.c.d.e.f{ | |
background : yellow; | |
} | |
</head> | |
<body> |
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
<html> | |
<body> | |
<style> | |
script { | |
display : block; | |
margin : 1em; | |
border-radius : .5em; | |
white-space : pre; | |
font-family : monospace; | |
line-height : 1.5em; |
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
<!-- modified from http://alex.dojotoolkit.org/08/jscript/lettable.html --> | |
<html> | |
<head> | |
<title>A Crazy Getter/Setter Hack</title> | |
</head> | |
<body> | |
<script language="VBScript" type="text/VBScript"> | |
Function exec_vb_global(code) | |
ExecuteGlobal(code) | |
End Function |
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
{ | |
"name": "classList", | |
"version": "0.1.0" | |
} |
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
{ | |
"name": "jsonp", | |
"keywords": ["jsonp", "AJAX", "communication", "get"], | |
"version": "0.1.0" | |
} |
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
{ | |
"name": "template", | |
"keywords": ["template", "HTML", "render"], | |
"version": "0.1.0" | |
} |