Skip to content

Instantly share code, notes, and snippets.

@jaxbot
Created April 1, 2015 19:41
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 jaxbot/392bebc9ae89f6e5d321 to your computer and use it in GitHub Desktop.
Save jaxbot/392bebc9ae89f6e5d321 to your computer and use it in GitHub Desktop.
$("#thebutton").on("click", function(t) {
t.preventDefault(), t.stopPropagation();
if (e.hasClass("pressed"))
return;
r.thebutton._countdownInterval = window.clearInterval(r.thebutton._countdownInterval), r.thebutton._setTimer(6e4);
var n = {seconds: $("#thebutton-timer").val(),prev_seconds: r.thebutton._msgSecondsLeft,tick_time: r.thebutton._tickTime,tick_mac: r.thebutton._tickMac};
$.request("press_button", n, function(e) {
console.log(e)
}), e.addClass("pressed").removeClass("unlocked"), r.thebutton.pulse()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment