diff --git a/www/assets/js/data.js b/www/assets/js/data.js index c413fab3..e21a7d66 100644 --- a/www/assets/js/data.js +++ b/www/assets/js/data.js @@ -63,6 +63,7 @@ var LASTCHATTIME = 0; var FOCUSED = true; var PAGETITLE = "CyTube"; var TITLE_BLINK; +var CHATSOUND = new Audio("assets/sounds/boop.wav"); var KICKED = false; var NAME = readCookie("cytube_uname"); var SESSION = readCookie("cytube_session"); @@ -118,7 +119,8 @@ var USEROPTS = { ignore_channeljs : getOrDefault("ignore_channeljs", false), sort_rank : getOrDefault("sort_rank", false), sort_afk : getOrDefault("sort_afk", false), - default_quality : getOrDefault("default_quality", "#quality_auto") + default_quality : getOrDefault("default_quality", "#quality_auto"), + boop : gerOrDefault("boop", false) }; var NO_WEBSOCKETS = USEROPTS.altsocket; diff --git a/www/assets/js/util.js b/www/assets/js/util.js index 982fee5a..e3015986 100644 --- a/www/assets/js/util.js +++ b/www/assets/js/util.js @@ -614,6 +614,12 @@ function showOptionsMenu() { blink.prop("checked", USEROPTS.blink_title); addOption("Chat Notice", blinkcontainer); + var boopcontainer = $("