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
// Load live.js on local envs only | |
// Make sure the path is right and your dev env passes the test. | |
/* Delete these characters to disable it temporarily -> */ | |
(function() { | |
if(/^https?:\/\/(localhost|127.0.0.1)|^file:\/\/\//.test(document.location.href)) { | |
var live = document.createElement('script'); | |
live.src = 'js/live.js'; | |
var s = document.getElementsByTagName('script')[0]; | |
s.parentNode.insertBefore(live, s); |
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
/* | |
--- | |
source: http://gist.github.com/133677 | |
provides: document.write | |
description: MooTools based document.write replacement | |
requires: MooTools | |
author: Thomas Aylott -- SubtleGradient.com | |
thanks: Daniel Steigerwald -- daniel.steigerwald.cz |
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
/** | |
* Classify.js | |
* A simple implementation of a Class native in Javascript with support for private and public methods and properties. | |
* Inspired by MooTools Class.js and by the Module Javascript design pattern (for private and public methods and properties) | |
* | |
* Zohar Arad. February 2011 | |
* | |
* Usage: | |
* | |
* var MyClass = new Class({ |
NewerOlder