reaction hover events
This commit is contained in:
parent
30ee3aad6a
commit
d32a8ab02b
5 changed files with 93 additions and 16 deletions
|
@ -1473,7 +1473,7 @@ class Localuser{
|
|||
localStorage.setItem("Voice enabled","true")
|
||||
|
||||
}else{
|
||||
box.value=true;
|
||||
box.value=false;
|
||||
const checkbox=box.input.deref();
|
||||
if(checkbox){
|
||||
checkbox.checked=false;
|
||||
|
@ -1483,6 +1483,23 @@ class Localuser{
|
|||
localStorage.removeItem("Voice enabled");
|
||||
}
|
||||
}
|
||||
const box2=security.addCheckboxInput("Enable logging of bad stuff",()=>{},{initState:Boolean(localStorage.getItem("logbad"))});
|
||||
box2.onchange=(e)=>{
|
||||
if(e){
|
||||
if(confirm("this is meant for spacebar devs")){
|
||||
localStorage.setItem("logbad","true")
|
||||
|
||||
}else{
|
||||
box2.value=false;
|
||||
const checkbox=box2.input.deref();
|
||||
if(checkbox){
|
||||
checkbox.checked=false;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
localStorage.removeItem("logbad");
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
genSecurity();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue