MojoFrontend/scripts/cheat.js

22 lines
781 B
JavaScript
Raw Normal View History

2022-05-04 20:12:44 +00:00
document.addEventListener("DOMContentLoaded", ()=> {
var toolset = document.getElementsByClassName("toolset")[0];
2022-05-04 20:12:44 +00:00
var panel = document.getElementById("panel");
toolset.onclick = (e)=> {
if (e.target != toolset && e.target.tagName == "LABEL") {
panel.innerHTML = ""; // clear the panel
2022-05-04 20:12:44 +00:00
}
}
2022-05-09 04:20:23 +00:00
genQuickCommand();
// genWeapon();
// genAvatar();
// genReli();
// genItem();
// genMonster();
document.getElementById("tab-1").onclick = genQuickCommand;
2022-05-09 04:20:23 +00:00
document.getElementById("tab-2").onclick = genAvatar;
2022-05-05 06:00:20 +00:00
document.getElementById("tab-3").onclick = genWeapon;
2022-05-09 04:20:23 +00:00
document.getElementById("tab-4").onclick = genReli;
document.getElementById("tab-5").onclick = genItem;
document.getElementById("tab-6").onclick = genMonster;
2022-05-04 20:12:44 +00:00
});