diff --git a/assets/sounds/rick.mp3 b/assets/sounds/rick.mp3 new file mode 100644 index 0000000..a6a1c94 Binary files /dev/null and b/assets/sounds/rick.mp3 differ diff --git a/script_foreground.js b/script_foreground.js index 6b678ea..f8fb40b 100644 --- a/script_foreground.js +++ b/script_foreground.js @@ -3,7 +3,7 @@ let options = { "sound-select":"rick roll", "watch-time": 4, "possible-alerts": [ - {name:"rick roll", file:'alert2'}, + {name:"rick roll", file:'rick'}, {name:"soft beep", file:'alert1'} ] }; @@ -79,10 +79,9 @@ function appendTool(html){ el.addEventListener("input", handleChange); // prevent return and overspacing on contenteditable features el.addEventListener("keypress", function(e){ - if (e.target.innerHTML.length>2){ + if (e.target.innerHTML.length>2 || isNaN(String.fromCharCode(e.which)) || e.which==13){ e.preventDefault(); }; - if (isNaN(String.fromCharCode(e.which))) e.preventDefault(); }); }); }); diff --git a/styles.css b/styles.css index b2a15f0..22fb050 100644 --- a/styles.css +++ b/styles.css @@ -28,18 +28,26 @@ display:inline-block; } #waiting{ - color: coral; + cursor: pointer; + color: #DC5960; +} +#waiting:hover{ + color: #dc596093; } #watching-branch{ display: none; } .ask-opt{ + cursor: pointer; padding:0px; margin:0px; color: #5FB4D8; height: 25px; } +.ask-opt:hover{ + color: #5fb4d871; +} #two { display: none; }