MojoFrontend/scripts/cheat.js
2022-05-09 23:21:24 -07:00

22 lines
781 B
JavaScript

document.addEventListener("DOMContentLoaded", ()=> {
var toolset = document.getElementsByClassName("toolset")[0];
var panel = document.getElementById("panel");
toolset.onclick = (e)=> {
if (e.target != toolset && e.target.tagName == "LABEL") {
panel.innerHTML = ""; // clear the panel
}
}
genQuickCommand();
// genWeapon();
// genAvatar();
// genReli();
// genItem();
// genMonster();
document.getElementById("tab-1").onclick = genQuickCommand;
document.getElementById("tab-2").onclick = genAvatar;
document.getElementById("tab-3").onclick = genWeapon;
document.getElementById("tab-4").onclick = genReli;
document.getElementById("tab-5").onclick = genItem;
document.getElementById("tab-6").onclick = genMonster;
});