reaction hover events

This commit is contained in:
MathMan05 2024-12-15 22:08:07 -06:00
parent 30ee3aad6a
commit d32a8ab02b
5 changed files with 93 additions and 16 deletions

View file

@ -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();