button js
Guest 2,541 14th Mar, 2021
const startBtn = document.querySelector(".start-game");
const game = document.querySelector(".game");
const active = document.querySelector(".active");
const nav = document.querySelector(".container__nav");
const iBox = document.querySelector(".i-box");
startBtn.addEventListener("click", function() {
game.classList.toggle("active");
startBtn.classList.toggle("deactive");
nav.classList.toggle("deactive")
});
iBox.addEventListener("click", function() {
nav.classList.toggle("container__nav-active");
})
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
- Always favorable prices for services such assensual massag in New Yourk
Java | 1 | 17 minutes ago
- Untitled
Markup | 6 | 7 hours ago
- bakus
Python | 6 | 7 hours ago
- brak balansu
Markup | 7 | 8 hours ago
- Fallout Shelter
SQL | 11 | 16 hours ago
- Untitled
Markup | 13 | 19 hours ago
- Керамзит 5 10
Elixir | 12 | 20 hours ago