View debounce.js
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
// no leading call, only trailing | |
function debounce(callback, timeout, _time) { | |
timeout = timeout || 100; | |
return function debounce() { | |
window.clearTimeout(_time); | |
_time = window.setTimeout(callback, timeout); | |
} | |
} |
View index.js
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 on_resize(namespace, callback, t) { | |
$(window).on('resize.' + namespace, function () { | |
clearTimeout(t); | |
t = setTimeout(callback, 100); | |
}); | |
return callback; | |
} |
View fast-bind.js
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(proto, Object) { | |
'use strict' | |
var originalBind = proto.bind | |
Object.defineProperty(proto, 'bind', { | |
value: function bind(context) { | |
var callback = this | |
return arguments.length === 1 ? function () { return callback.apply(context, arguments) } : originalBind.apply(callback, arguments) | |
} | |
}) | |
}(Function.prototype, Object) |
View .gitignore
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
node_modules/ |
View dabblet.css
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
@keyframes parade{ | |
0% { | |
} | |
50% { | |
left: -100px; | |
transform: rotate(-50deg); | |
} | |
75% { | |
} | |
100% { |
View dabblet.css
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
#torwart { | |
position: relative; | |
top: -20.5em; | |
left: 13.5em; | |
} | |
#torwart > img { | |
height: 14em; | |
} |
View dabblet.css
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
.clock{ | |
/* The .clock div. Created dynamically by jQuery */ | |
background-color:#252525; | |
height:200px; | |
width:200px; | |
position:relative; | |
overflow:hidden; | |
float:left; | |
} |
View dabblet.css
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
@import url('http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css'); | |
@import url('http://fonts.googleapis.com/css?family=Handlee'); | |
body { | |
background: url('img/noise.png'); | |
} | |
#usermenu { | |
position: absolute; | |
right: 0; | |
left: auto !important; |