Skip to content

Instantly share code, notes, and snippets.

@thams017
Last active March 4, 2016 05:35
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 thams017/5943486894711307d34d to your computer and use it in GitHub Desktop.
Save thams017/5943486894711307d34d to your computer and use it in GitHub Desktop.
To decrements time
function decTime() {
var res = parseInt(jQuery("#timer").val());
if (res !== 0) {
res = res - 1;
jQuery("#timer").val(res);
} else {
clearInterval(intervalId);
hideR();
hideD();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment