🏳️🌈
- GitHub Staff
- http://digitarald.de
- @digitarald
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
module Murray | |
class Router | |
class << self | |
attr_reader :mapping | |
def map &block | |
@mapping = [] | |
instance_eval &block | |
self | |
end |
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
Element.implement({ | |
matchChild: function(selector){ | |
return this.getElements(selector, true).contains(this); | |
} | |
}); | |
myElement.match('div') // true | |
myElement.match('body div') // false | |
myElement.matchChild('div') // true |
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
/*= | |
description: "Short details, one line or multi-line." | |
license: MIT # shorthand or url | |
author: "Harald Kirschner <mail@digitarald.de>" # array or single string | |
require: ["more:Element.Position", "more:Natives/*"] # filename, namespace:*, namespace[version]:folder/filename | |
provide: ["Assets/close-button.gif"] # more entities | |
*/ | |
var SimplePlugin= new Class({ ... |
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: Harald Kirschner -- digitarald.de | |
author: Thomas Aylott -- SubtleGradient.com |
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: Harald Kirschner -- digitarald.de | |
author: Thomas Aylott -- SubtleGradient.com |
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
/* | |
--- | |
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
/* | |
--- | |
name: DomReady | |
description: Contains the custom event domready. | |
license: MIT-style license. | |
requires: [Browser, Element, Element.Event] |
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
Dragger.prototype = { | |
// Use touch for supported devices, rest with mouse | |
eventNames: ('ontouchstart' in window) ? { | |
start: 'touchstart', | |
move: 'touchmove', | |
stop: 'touchend' | |
} : { | |
start: 'mousedown', | |
move: 'mousemove', |
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 lost = { | |
loc : "Island", | |
get location () { | |
return this.loc; | |
}, | |
set location(val) { | |
this.loc = val; | |
} | |
}; | |
lost.location = "Another island"; |
OlderNewer