add sound to notifications (implements #98)

This commit is contained in:
oliver 2015-05-13 16:38:36 +02:00
commit 2d2a95cc75
3 changed files with 23 additions and 2 deletions

19
www/js/notification.js Normal file
View file

@ -0,0 +1,19 @@
/**
* Notification functions.
*/
/**
* Play notification, if audio-element is present.
*/
function notify()
{
var notifySound = $("#notify-sound");
if(notifySound) {
notifySound.get(0).play();
}
}
$(function() {
// Play notification
notify();
});