diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2014-11-27 15:05:54 +0900 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2014-11-27 15:05:54 +0900 |
commit | b87df7d90c2e4e151da6e03327e779f9bab3b3e1 (patch) | |
tree | c5a03d7e1ce1ca011e358ae6072a87c112494761 | |
parent | 5784b33936855531d20010f5fb34d9fad3cfa3c4 (diff) | |
download | schoolclock-b87df7d90c2e4e151da6e03327e779f9bab3b3e1.tar.gz |
"one, two, three" sound effect
-rw-r--r-- | index.html | 1 | ||||
-rw-r--r-- | js/main.js | 7 | ||||
-rw-r--r-- | sounds/onetwothree.mp3 | bin | 0 -> 43466 bytes |
3 files changed, 8 insertions, 0 deletions
@@ -40,6 +40,7 @@ <a id="date-toggle" class="btn btn-default btn-lg active">Toggle date style</a> <a id="klaxon" class="btn btn-default btn-lg active"><u>K</u>laxon</a> + <a id="one-two-three" class="btn btn-default btn-lg active"><u>O</u>ne, two, three</a> </form> </div><!--/.navbar-collapse --> </div> @@ -16,6 +16,9 @@ $.ionSound({ }, { name: "cheonjae", + }, + { + name: "onetwothree", } ], // volume: 0.5, @@ -69,6 +72,7 @@ $(document).bind('keydown', 'j', timeWastingClockToggle); $(document).bind('keydown', 'space', timeWastingClockToggle); $(document).bind('keydown', 'k', function (){$.ionSound.play("klaxon");}); +$(document).bind('keydown', 'o', function (){$.ionSound.play("onetwothree");}); function activityClockGo($seconds) { @@ -164,6 +168,9 @@ $(document).ready(function(){ $('#klaxon').button(); $('#klaxon').click(function (){$.ionSound.play("klaxon");}); + $('#one-two-three').button(); + $('#one-two-three').click(function (){$.ionSound.play("onetwothree");}); + $('#timeWastingClockGo').button(); $('#timeWastingClockGo').click(timeWastingClockToggle); diff --git a/sounds/onetwothree.mp3 b/sounds/onetwothree.mp3 Binary files differnew file mode 100644 index 0000000..1bcb8c5 --- /dev/null +++ b/sounds/onetwothree.mp3 |