-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
28 lines (25 loc) · 1017 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
window.addEventListener("scroll",function() {
var navigation = document.querySelector("#main-menu");
navigation.classList.toggle("scroll", window.scrollY > 0);
})
let purification = document.querySelectorAll("#purification, .p-window2 .close-button a");
for(let button of purification) {
button.addEventListener("click", function(event) {
document.querySelector("body").classList.toggle("show-p-window1");
event.preventDefault();
});
}
let nature = document.querySelectorAll("#nature, .n-window2 .close-button a");
for(let button of nature) {
button.addEventListener("click", function(event) {
document.querySelector("body").classList.toggle("show-n-window1");
event.preventDefault();
});
}
let godRequiem = document.querySelectorAll("#godRequiem, .g-window2 .close-button a");
for(let button of godRequiem) {
button.addEventListener("click", function(event) {
document.querySelector("body").classList.toggle("show-g-window1");
event.preventDefault();
});
}