summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2014-12-10 14:23:29 +0900
committerSean Whitton <spwhitton@spwhitton.name>2014-12-10 14:23:29 +0900
commit703261b49e658f488e8d8e69e49b00aecd129dcf (patch)
tree718db0ae704051fe495f72821a63426ad41bfe85
parentef88f77c5faaf0611360760d9ba81dc139168f2c (diff)
downloadschoolclock-703261b49e658f488e8d8e69e49b00aecd129dcf.tar.gz
two new sound effects
-rw-r--r--index.html2
-rw-r--r--js/main.js12
-rw-r--r--sounds/sit_down_quickly.mp3bin0 -> 20061 bytes
-rw-r--r--sounds/too_noisy.mp3bin0 -> 20061 bytes
4 files changed, 14 insertions, 0 deletions
diff --git a/index.html b/index.html
index a737b00..ab9d899 100644
--- a/index.html
+++ b/index.html
@@ -42,6 +42,8 @@
<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>
+ <a id="too-noisy" class="btn btn-default btn-lg active">Too noisy</a>
+ <a id="sit-down-quickly" class="btn btn-default btn-lg active">Sit down quickly</a>
</form>
</div><!--/.navbar-collapse -->
</div>
diff --git a/js/main.js b/js/main.js
index 8c6160a..ed2aa69 100644
--- a/js/main.js
+++ b/js/main.js
@@ -148,6 +148,12 @@ $.ionSound({
name: "onetwothree",
},
{
+ name: "too_noisy",
+ },
+ {
+ name: "sit_down_quickly",
+ },
+ {
name: "school_bell",
}
],
@@ -319,6 +325,12 @@ $(document).ready(function(){
$('#one-two-three').button();
$('#one-two-three').click(function (){$.ionSound.play("onetwothree");});
+ $('#too-noisy').button();
+ $('#too-noisy').click(function (){$.ionSound.play("too_noisy");});
+
+ $('#sit-down-quickly').button();
+ $('#sit-down-quickly').click(function (){$.ionSound.play("sit_down_quickly");});
+
$('#timeWastingClockGo').button();
$('#timeWastingClockGo').click(timeWastingClock.toggle);
diff --git a/sounds/sit_down_quickly.mp3 b/sounds/sit_down_quickly.mp3
new file mode 100644
index 0000000..b55c5bc
--- /dev/null
+++ b/sounds/sit_down_quickly.mp3
Binary files differ
diff --git a/sounds/too_noisy.mp3 b/sounds/too_noisy.mp3
new file mode 100644
index 0000000..1ec1195
--- /dev/null
+++ b/sounds/too_noisy.mp3
Binary files differ