20 lines
741 B
JavaScript
20 lines
741 B
JavaScript
|
|
||
|
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!");
|
||
|
}
|
||
|
|