Created
May 30, 2014 15:38
-
-
Save abhishekkr/99487708040ea340ce8f to your computer and use it in GitHub Desktop.
some quick replicated javascript functions for light offline tryouts
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
// dumb non-jquery delay for quick offline tryouts | |
function delay(milliseconds) { | |
var _start = new Date().getTime(); | |
for (;;) { | |
var _now = new Date().getTime(); | |
if ((_now - _start) > milliseconds){ | |
break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment