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:(function(){var b="inurl:reddit.com",a="http://www.searchreddit.com/",c=/\/r\/[\w\.]+\//.exec(document.location.pathname);b=(c)?b+c[0]:"";window.location=a+"?s="+b})(); |
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 el = null; | |
describe('Element.getRotation', { | |
before_each: function() { el = new Element('div'); }, | |
'should return correct values': function() { | |
el.setStyle('-webkit-transform', 'rotate(0deg)'); | |
value_of(el.getRotation()).should_be(0); | |
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() { | |
var keys = new Hash({ 16: false, 18: false }); // Shift + Option/Alt keys | |
if (Browser.Platform.win) { keys[17] = false; } // Control key | |
if (Browser.Platform.mac) { keys[91] = false; } // Command Key | |
window.addEvent('domready', function() { | |
$(document.body).addEvents({ | |
'keydown': function(e) { | |
if (keys.has(e.code)) { keys[e.code] = 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
/** | |
* Script: | |
* Screensaver.js - Screensaver functionality written in MooTools. | |
* | |
* License: | |
* MIT-style license. | |
* | |
* Author: | |
* Jose Prado | |
* |
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
// Nano Loader | |
(function() { | |
nano = { | |
v: "1.0", | |
load: function(u, cb) { | |
var s = document.createElement('script'); | |
s.type = 'text/javascript'; | |
s.src = u; | |
s.onload = cb; | |
s.onreadystatechange = function() { |
NewerOlder