mirror of
https://github.com/SpikeHD/MojoFrontend.git
synced 2024-11-25 18:15:26 +00:00
18 lines
637 B
JavaScript
18 lines
637 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();
|
|
document.getElementById("tab-1").onclick = genQuickCommand;
|
|
document.getElementById("tab-2").onclick = genAvatar;
|
|
document.getElementById("tab-3").onclick = genWeapon;
|
|
document.getElementById("tab-4").onclick = genReli;
|
|
}); |