Idle Commander - The Dev
Coder
Well, there is a little bit of javascript in here but when a popup in my game shows I want to disable all other things on the screen and make them not respond and create a little tint over everything but the popup. And when the user closes the popup everything resumes. I have no idea I tried to file with js but had no luck.
The popup is here https://idle-command.netlify.app/ click on the pickaxe from the shop and inspect. Here is the js for that one popup.
The popup is here https://idle-command.netlify.app/ click on the pickaxe from the shop and inspect. Here is the js for that one popup.
JavaScript:
let sellOrePop = null;
function sellOre() {
if(sellOrePop === null) {
document.getElementById("soldOre").style.display = "block";
sellOrePop = true;
}
else {
document.getElementById("soldOre").style.display = "none";
sellOrePop = null;
}
}