diff --git a/views/html/html.tpl b/views/html/html.tpl index 8767d5fa..f1b56ffe 100644 --- a/views/html/html.tpl +++ b/views/html/html.tpl @@ -37,8 +37,9 @@ - - + + + @@ -103,6 +104,7 @@ + diff --git a/www/js/notification.js b/www/js/notification.js new file mode 100644 index 00000000..b322fc21 --- /dev/null +++ b/www/js/notification.js @@ -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(); +}); diff --git a/www/sounds/notification.mp3 b/www/sounds/notification.mp3 new file mode 100644 index 00000000..97de20bc Binary files /dev/null and b/www/sounds/notification.mp3 differ