-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathEvents.js
70 lines (45 loc) · 1.81 KB
/
Events.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
function ondance() { //to show the overlay as a block
document.getElementById("overlaydance").style.display = "block";
}
function offdance() { //to hide the overlay
document.getElementById("overlaydance").style.display = "none";
}
function onlit() { //different functions to avoid overlap of displayed text
document.getElementById("overlaylit").style.display = "block";
}
function offlit() { //different functions to avoid overlap of displayed text
document.getElementById("overlaylit").style.display = "none";
}
function onact() {
document.getElementById("overlayact").style.display = "block";
}
function offact() {
document.getElementById("overlayact").style.display = "none";
}
function ongame() {
document.getElementById("overlaygame").style.display = "block";
}
function offgame() {
document.getElementById("overlaygame").style.display = "none";
}
function onphoto() {
document.getElementById("overlayphoto").style.display = "block";
}
function offphoto() {
document.getElementById("overlayphoto").style.display = "none";
}
function onwin() {
document.getElementById("overlaywin").style.display = "block";
}
function offwin() {
document.getElementById("overlaywin").style.display = "none";
}
function registrationpage(){ //to open the linked page in a new window
window.open("registration.html");
}
function openNav() { //to open overlay from left to right with animation
document.getElementById("myNav").style.width = "100%";
}
function closeNav() { //to close overlay from left to right with animation
document.getElementById("myNav").style.width = "0%";
}