From 6d57bef819c8bedd106e0f1ac7777d36a3ff5d84 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 27 Nov 2014 15:26:28 +0900 Subject: school bell sound effect --- index.html | 1 + js/main.js | 7 +++++++ sounds/school_bell.mp3 | Bin 0 -> 54927 bytes 3 files changed, 8 insertions(+) create mode 100644 sounds/school_bell.mp3 diff --git a/index.html b/index.html index bc134b8..f874ccb 100644 --- a/index.html +++ b/index.html @@ -40,6 +40,7 @@ Toggle date style Klaxon + Bell One, two, three diff --git a/js/main.js b/js/main.js index 93f059c..190e7de 100644 --- a/js/main.js +++ b/js/main.js @@ -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 new file mode 100644 index 0000000..1b011dd Binary files /dev/null and b/sounds/school_bell.mp3 differ -- cgit v1.2.3