This file contains hidden or 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 propagate = function(callback, f) { | |
return function(err) { | |
if (err) { | |
callback(err); | |
return; | |
} | |
return f.apply(this, Array.prototype.slice.call(arguments, 1)); | |
}; | |
}; |
This file contains hidden or 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 queue = function(f) { | |
var queue = []; | |
var running = false; | |
var initiate = function() { | |
if (running || queue.length == 0) { | |
return; | |
} | |
running = true; |
This file contains hidden or 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 whichBrowser = function() { | |
var ua = navigator.userAgent, p = {}, b = {}, e = {}; | |
// detect platform | |
if (/Windows/.test(ua)) { | |
p.name = 'win'; | |
p.win = true; | |
} else if (/Mac/.test(ua)) { | |
p.name = 'mac'; | |
p.mac = true; |
This file contains hidden or 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(c){var a={};var b=function(d,e,f){if(a[d]){fn=a[d]}else{if(typeof e=="undefined"){return false}fn=a[d]=new Function("obj",'var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push("'+e.replace(/[\r\t\n]/g," ").replace(/\"/g,'\\"').split("<%").join("\t").replace(/((^|%>)[^\t]*)/g,"$1\r").replace(/\t=(.*?)%>/g,'",$1,"').split("\t").join('");').split("%>").join('p.push("').split("\r").join("")+"\");}return p.join('');")}if(typeof f!="undefined"){return fn(f)}else{return fn}};Sammy=Sammy||{};Sammy.Template=function(f,d){var e=function(h,i,g){if(typeof g=="undefined"){g=h}return b(g,h,c.extend({},this,i))};if(!d){d="template"}f.helper(d,e)}})(jQuery); |
This file contains hidden or 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 minDist = 100; | |
var target = document.getElementById('volatile'); | |
if (target == null) | |
return; | |
target.style.position = "relative"; | |
target.style.left = target.style.left || "0px"; | |
target.style.top = target.style.top || "0px"; |
NewerOlder