-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
executable file
·31 lines (25 loc) · 870 Bytes
/
main.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
29
30
31
const creditModalJs = document.getElementById("credit-modal-id");
const creditBtn = document.getElementById("credit-id");
const creditExit = document.getElementById("credit-close");
creditBtn.onclick = function() {
creditModalJs.style.display = "block";
}
creditExit.onclick = function() {
creditModalJs.style.display = "none";
}
window.onclick = function(event) {
if (event.target === creditModalJs) {
creditModalJs.style.display = "none";
} else if (event.target === wikiModalJs) {
wikiModalJs.style.display = "none";
}
}
const wikiModalJs = document.getElementById("wiki-db-modal-id");
const wikiBtn = document.getElementById("wiki-db-id");
const wikiExit = document.getElementById("wiki-db-close");
wikiBtn.onclick = function() {
wikiModalJs.style.display = "block";
}
wikiExit.onclick = function() {
wikiModalJs.style.display = "none";
}