diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2014-11-27 15:26:28 +0900 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2014-11-27 15:26:28 +0900 |
commit | 6d57bef819c8bedd106e0f1ac7777d36a3ff5d84 (patch) | |
tree | 65623b2336293129621d8da0ca0094dab5269871 | |
parent | 2b815cd604177d1a01b829bbd42a49d4f3d7a76f (diff) | |
download | schoolclock-6d57bef819c8bedd106e0f1ac7777d36a3ff5d84.tar.gz |
school bell sound effect
-rw-r--r-- | index.html | 1 | ||||
-rw-r--r-- | js/main.js | 7 | ||||
-rw-r--r-- | sounds/school_bell.mp3 | bin | 0 -> 54927 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="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> </form> </div><!--/.navbar-collapse --> @@ -20,6 +20,9 @@ $.ionSound({ }, { name: "onetwothree", + }, + { + name: "school_bell", } ], // volume: 0.5, @@ -74,6 +77,7 @@ $(document).bind('keydown', 'space', timeWastingClockToggle); $(document).bind('keydown', 'k', function (){$.ionSound.play("klaxon");}); $(document).bind('keydown', 'o', function (){$.ionSound.play("onetwothree");}); +$(document).bind('keydown', 'b', function (){$.ionSound.play("school_bell");}); function activityClockGo($seconds) { @@ -178,6 +182,9 @@ $(document).ready(function(){ $('#klaxon').button(); $('#klaxon').click(function (){$.ionSound.play("klaxon");}); + $('#bell').button(); + $('#bell').click(function (){$.ionSound.play("school_bell");}); + $('#one-two-three').button(); $('#one-two-three').click(function (){$.ionSound.play("onetwothree");}); diff --git a/sounds/school_bell.mp3 b/sounds/school_bell.mp3 Binary files differnew file mode 100644 index 0000000..1b011dd --- /dev/null +++ b/sounds/school_bell.mp3 |