This repository has been archived on 2023-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
nemu-old/test.js

20 lines
741 B
JavaScript
Raw Normal View History

2023-03-17 02:18:29 +00:00
var configuratorButton = document.getElementById("configurator-button");
var configuratorModal = document.getElementById("configurator-modal");
configuratorButton.onclick = onConfiguratorButtonClick;
var isConfiguratorShown = false;
function onConfiguratorButtonClick(event) {
if(isConfiguratorShown == false) {
configuratorModal.style.display = "block";
isConfiguratorShown = true;
console.log("Showing Configurator-Modal!");
return;
}
configuratorModal.style.display = "none";
isConfiguratorShown = false;
console.log("Hiding Configurator-Modal!");
}