diff options
author | Sean Whitton <spw+git@sdf.org> | 2014-11-12 14:48:02 +0900 |
---|---|---|
committer | Sean Whitton <spw+git@sdf.org> | 2014-11-12 14:48:02 +0900 |
commit | 29a618e315bc3a60cde3caeee76d851b2fd5d261 (patch) | |
tree | da4e333e6b687c05bb1c590f61e772105a8ba77b /js | |
parent | 33ceed50e3f44368d989ae9aabac9033a40f9c51 (diff) | |
download | schoolclock-29a618e315bc3a60cde3caeee76d851b2fd5d261.tar.gz |
improve hotkey choice
Diffstat (limited to 'js')
-rw-r--r-- | js/main.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -51,19 +51,21 @@ function timeWastingClockToggle() { if ($timeWastingClockRunning) { - $('#timeWastingClockGo').html('Start timer (Hotkey: j)'); + $('#timeWastingClockGo').html('Start <u>t</u>imer'); timeWastingClock.stop(); $timeWastingClockRunning = false; } else { - $('#timeWastingClockGo').html('Stop timer (Hotkey: j)'); + $('#timeWastingClockGo').html('Stop <u>t</u>imer'); timeWastingClock.start(); $timeWastingClockRunning = true; } } +$(document).bind('keydown', 't', timeWastingClockToggle); $(document).bind('keydown', 'j', timeWastingClockToggle); + $(document).bind('keydown', 'k', function (){$.ionSound.play("klaxon");}); function activityClockGo($seconds) |