Widget:Hotkey: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 13: | Line 13: | ||
}); | }); | ||
timer2.set({ time: 5000, autostart: true}); | timer2.set({ time: 5000, autostart: true}); | ||
$(document).keypress( | $(document).keypress(actionTaken) | ||
$(document).click(actionTaken) | |||
}); | }); | ||
function actionTaken(event){ | |||
if(!timer1.isActive){ | |||
}); | timer1.play(); | ||
} | } | ||
timer2.reset(); | |||
} | |||
</script> | </script> | ||
</includeonly> | </includeonly> |