MojoFrontend/scripts/cheat.js

18 lines
637 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();
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;
2022-05-04 20:12:44 +00:00
});