Skip to content

Instantly share code, notes, and snippets.

@abhishekkr
Created May 30, 2014 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhishekkr/99487708040ea340ce8f to your computer and use it in GitHub Desktop.
Save abhishekkr/99487708040ea340ce8f to your computer and use it in GitHub Desktop.
some quick replicated javascript functions for light offline tryouts
// 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