diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2014-11-27 15:29:03 +0900 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2014-11-27 15:29:03 +0900 |
commit | 8ed795e0cfc00e416d17e4f339823806e778a67a (patch) | |
tree | 745be0ae63ff0387192d6d11a0e24e476309e3be | |
parent | 6d57bef819c8bedd106e0f1ac7777d36a3ff5d84 (diff) | |
download | schoolclock-8ed795e0cfc00e416d17e4f339823806e778a67a.tar.gz |
bind 'd' to toggle date style
-rw-r--r-- | index.html | 2 | ||||
-rw-r--r-- | js/main.js | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -38,7 +38,7 @@ <div class="navbar-collapse collapse"> <form class="navbar-form navbar-right" role="form"> <a id="date-toggle" class="btn btn-default btn-lg - active">Toggle date style</a> + active">Toggle <u>d</u>ate style</a> <a id="klaxon" class="btn btn-default btn-lg active"><u>K</u>laxon</a> <a id="bell" class="btn btn-default btn-lg active"><u>B</u>ell</a> <a id="one-two-three" class="btn btn-default btn-lg active"><u>O</u>ne, two, three</a> @@ -4,7 +4,6 @@ * - rework use of global variables and functions into OO idioms * - initialise time wasting clock from storage in OO idiom rather * than just stray function call - * - bind a key to toggle the date */ $.ionSound({ @@ -74,6 +73,7 @@ function timeWastingClockToggle() $(document).bind('keydown', 't', timeWastingClockToggle); $(document).bind('keydown', 'j', timeWastingClockToggle); $(document).bind('keydown', 'space', timeWastingClockToggle); +$(document).bind('keydown', 'd', toggleDateStyle); $(document).bind('keydown', 'k', function (){$.ionSound.play("klaxon");}); $(document).bind('keydown', 'o', function (){$.ionSound.play("onetwothree");}); |