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
/* HTML5 elements for IE | |
* more reference from: http://remysharp.com/2009/01/07/html5-enabling-script/ | |
*/ | |
(function(){ | |
var e = 'abbr article aside audio bb datagrid datalist details dialog eventsource figure footer header mark menu meter nav output progress section time video'.split(' '); | |
var i = e.length; | |
while (i--) document.createElement(e[i]); | |
})(); |
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
LAlt & x::Send ^x | |
LAlt & c::Send ^c | |
LAlt & v::Send ^v | |
LAlt & s::Send ^s | |
LAlt & w::Send ^w | |
LAlt & q::Send !{F4} | |
LAlt & f::Send ^f | |
LAlt & t::Send ^t | |
LAlt & z::Send ^z | |
LAlt & r::Send ^r |
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
a {-webkit-transition-duration: .33s; -webkit-transition-property: color, background;} |
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
javascript:void(function(){var link=document.getElementsByTagName("link");for(var i=0,len=link.length;i<len;i++){var l=link[i];if(l&&((l.href.indexOf(".css")>-1||l.rel=="stylesheet"))){l.parentNode.removeChild(l)}}var style=document.getElementsByTagName("style");for(var i=0,len=style.length;i<len;i++){var s=style[i];if(s){s.parentNode.removeChild(s)}}var iecss=document.createElement("link");iecss.setAttribute("rel","stylesheet");iecss.setAttribute("href","http://forabeautifulweb.com/demo/2009/05/21/ie6.0.2.css");document.getElementsByTagName("head")[0].appendChild(iecss);}()); |
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
/* | |
* Idea from http://james.padolsey.com/javascript/stringprototypeextract/ | |
*/ | |
String.implement({ | |
extract: function(regex, n){ | |
n = (n===undefined) ? 0 : n; | |
if (!regex.global) return this.match(regex)[n] || ''; | |
var match, extracted = []; |
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
/* | |
* Luhn algorithm number checker - (c) 2005-2008 shaman - www.planzero.org | |
* Ported to Mootools by Chee Aun - http://cheeaun.com/ | |
* http://planzero.org/code/bits/viewcode.php?src=luhn_check.js | |
* http://en.wikipedia.org/wiki/Luhn_algorithm | |
*/ | |
String.implement({ | |
isValidLuhn: 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
Browser.Engines.trident = function(){ | |
return (!window.ActiveXObject) ? false : ((window.XMLHttpRequest) ? ((Browser.Features.query) ? 6 : 5) : 4); | |
} |