2022-05-04 20:12:44 +00:00
|
|
|
|
|
|
|
document.addEventListener("DOMContentLoaded", ()=> {
|
2022-05-05 02:01:01 +00:00
|
|
|
var toolset = document.getElementsByClassName("toolset")[0];
|
2022-05-04 20:12:44 +00:00
|
|
|
var panel = document.getElementById("panel");
|
2022-05-05 02:01:01 +00:00
|
|
|
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();
|
2022-05-10 06:21:24 +00:00
|
|
|
// genItem();
|
|
|
|
// genMonster();
|
2022-05-05 02:01:01 +00:00
|
|
|
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-10 06:21:24 +00:00
|
|
|
document.getElementById("tab-5").onclick = genItem;
|
|
|
|
document.getElementById("tab-6").onclick = genMonster;
|
2022-05-04 20:12:44 +00:00
|
|
|
});
|