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
// Super amazing, cross browser property function, based on http://thewikies.com/ | |
// Found via http://johndyer.name/native-browser-get-set-properties-in-javascript/ | |
function addProperty(obj, name, onGet, onSet) { | |
// wrapper functions | |
var | |
oldValue = obj[name], | |
getFn = function () { | |
return onGet.apply(obj, [oldValue]); |
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 Hints & Tips | |
Compiled mainly from http://sharedfil.es/js-48hIfQE4XK.html | |
=========================================== | |
// onReady | |
document.addEventListener("DOMContentLoaded", function() { | |
// code... | |
}); |
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
.ir { border: 0; font: 0/0 a; text-shadow: none; color: transparent; background-color: transparent; } |
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
/* Desktop */ | |
/* Mobile in portrait */ | |
@media only screen and (max-width: 47.9375em) { | |
} | |
/* Mobile in Landscape */ | |
@media only screen and (min-width: 30em) and (max-width: 47.9375em) { |
NewerOlder