Permalink
Browse files

Added manually Richard's changes to my own clone.

  • Loading branch information...
1 parent a290a76 commit d5681b3ad35518fcca47ec079375dd2ec736b0f4 Paul Maxan committed Mar 29, 2012
Showing with 11 additions and 2 deletions.
  1. +8 −2 public/index.html
  2. +3 −0 public/js/app.js
  3. BIN public/media/bell.mp3
  4. BIN public/media/bell.ogg
View
@@ -29,8 +29,8 @@
<div id="rocket" class="header" style="background: #FFD720;">
<img src="/rocket-md-right-small.png">
<span> IRC #nodester </span>
- <span class="off" id="nickLabel">nick</span>
- <button type="button" class="btn btn-settings off" id="btnTones">Enable tones</button>
+ <span id="nickLabel">nick</span>
+ <button type="button" class="btn btn-settings" id="btnTones">Enable tones</button>
</div>
<div id="top_section">
<div id="nick_list">
@@ -50,6 +50,12 @@
</div>
</div>
</div>
+
+<audio preload="auto" autobuffer id="notification">
+ <source src="media/bell.mp3" />
+ <source src="media/bell.ogg" />
+</audio>
+
<div id="js">
<script src="//code.jquery.com/jquery.js" type="text/javascript"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.1/underscore-min.js" type="text/javascript"></script>
View
@@ -113,6 +113,9 @@ $(document).ready(function(){
if (regexp.test(message)){
Tinycon.setBubble(++window.counter);
row_class='gold';
+ if (c.getTonesEnabled() == true) {
+ document.getElementById('notification').play();
+ }
} else {
row_class='default';
}
View
Binary file not shown.
View
Binary file not shown.

0 comments on commit d5681b3

Please sign in to comment.