mirror of
https://github.com/SpikeHD/MojoFrontend.git
synced 2024-11-29 02:57:26 +00:00
13 lines
453 B
JavaScript
13 lines
453 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
|
|
}
|
|
console.log(e.target);
|
|
}
|
|
genQuickCommand();
|
|
document.getElementById("tab-1").onclick = genQuickCommand;
|
|
}); |