This file contains 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 Tween = { | |
Linear:function (start,alter,curTime,dur) {return start+curTime/dur*alter;},//最简单的线性变化,即匀速运动 | |
Quad:{//二次方缓动 | |
easeIn:function (start,alter,curTime,dur) { | |
return start+Math.pow(curTime/dur,2)*alter; | |
}, | |
easeOut:function (start,alter,curTime,dur) { | |
var progress =curTime/dur; | |
return start-(Math.pow(progress,2)-2*progress)*alter; | |
}, |
This file contains 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 addEvent(obj,evt,fn) { | |
if (obj.addEventListener && !Browser.isOpera) { | |
obj.addEventListener(evt,fn,false); | |
return obj; | |
} | |
if (!obj.functions) obj.functions={}; | |
if (!obj.functions[evt]) | |
obj.functions[evt]=[]; |
This file contains 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 addEventSimple(obj, evt, fn) {//常用函数 | |
if (obj.addEventListener) // W3C | |
obj.addEventListener(evt, fn, false); | |
else if (obj.attachEvent) // Microsoft | |
obj.attachEvent('on' + evt, fn); | |
}; | |
function removeEventSimple(obj, evt, fn) { | |
if (obj.removeEventListener) |
This file contains 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
/* | |
* jQuery autoResize (textarea auto-resizer) | |
* @copyright James Padolsey http://james.padolsey.com | |
* @version 1.04 | |
* | |
* cracked by icyleaf <[email protected]> | |
* Search and Find the keyword '[NEW ADDED]' for details. | |
*/ | |
(function($){ |
This file contains 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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains 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
#accessibility | |
###Todo | |
- input,select,textarea,fieldset -> aria-labelledby="[id]" | |
- position element -> tabindex="-1" | |
- focusable -> tabindex="0" | |
- add `role` attribute | |
- add `aria-` attribute |
This file contains 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
/* code */ | |
p code { | |
background: #efefef; | |
border: 1px solid #eaeaea; | |
font-family: monaco, monospace; | |
font-size: .75em; | |
padding: 2px 8px; | |
-webkit-border-radius: 3px; |
This file contains 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 links = $("#glossary li a"); | |
links.each(function() { | |
var linkWidth = $(this).outerWidth(); | |
var canvas = $("<canvas></canvas>"); | |
canvas.attr({width: linkWidth,height: 21}); | |
var context = canvas.get(0).getContext("2d"); | |
// Set up the rounded corners | |
context.lineWidth = 6; |
This file contains 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
http://semantic-ui.com/ Getting Started | Semantic UI | |
http://aliceui.org/ Alice - 写样式的更好方式 | |
http://baixing.github.io/Puerh/ Puerh - 百姓网 UI 库 | |
http://getuikit.com/ UIkit | |
http://metroui.org.ua/ Metro UI CSS | |
http://aozora.github.io/bootmetro/ bootmetro | |
http://bootsnipp.com/ Home | Bootsnipp.com | |
http://getbootstrap.com/2.3.2/ Bootstrap | |
http://alloyui.com/ AlloyUI | |
http://perka.github.io/backbone-ui/ Backbone UI |
This file contains 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
[Getting Started | Semantic UI](http://semantic-ui.com/ "Getting Started | Semantic UI") | |
[Alice - 写样式的更好方式](http://aliceui.org/ "Alice - 写样式的更好方式") | |
[Puerh - 百姓网 UI 库](http://baixing.github.io/Puerh/ "Puerh - 百姓网 UI 库") | |
[UIkit](http://getuikit.com/ "UIkit") | |
[Metro UI CSS](http://metroui.org.ua/ "Metro UI CSS") |
OlderNewer