mirror of
https://github.com/elisspace/AskAssist.git
synced 2026-08-29 15:33:47 +00:00
minor tweaks to the rick
This commit is contained in:
BIN
assets/sounds/rick.mp3
Normal file
BIN
assets/sounds/rick.mp3
Normal file
Binary file not shown.
@@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
10
styles.css
10
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user