side panel
parent
e8afdfdfc8
commit
055b47e92b
@ -0,0 +1,14 @@
|
|||||||
|
const showInfo = document.getElementById("show-info");
|
||||||
|
const infoPanel = document.getElementById("info-panel");
|
||||||
|
|
||||||
|
showInfo.addEventListener("click", (e) => {
|
||||||
|
if (infoPanel.classList.contains("active")) {
|
||||||
|
infoPanel.classList.remove("active");
|
||||||
|
showInfo.classList.remove("active");
|
||||||
|
showInfo.innerHTML = "?";
|
||||||
|
} else {
|
||||||
|
infoPanel.classList.add("active");
|
||||||
|
showInfo.classList.add("active");
|
||||||
|
showInfo.innerHTML = "X";
|
||||||
|
}
|
||||||
|
});
|
Loading…
Reference in New Issue