-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
90 lines (76 loc) · 2.34 KB
/
app.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
const images = document.querySelector(".images");
const burger = document.querySelector(".burger");
const firstImg = document.querySelector(".img1");
const secondImg = document.querySelector(".img2");
const thirdImg = document.querySelector(".img3");
const fourthImg = document.querySelector(".img4");
const fifthImg = document.querySelector(".img5");
const sixthImg = document.querySelector(".img6");
const seventhImg = document.querySelector(".img7");
const eighthImg = document.querySelector(".img8");
const ninthImg = document.querySelector(".img9");
const tenthImg = document.querySelector(".img10");
function image1Function() {
firstImg.style.display = "block";
images.style.opacity = "0.2";
burger.style.display = "block";
}
function burgerFunction() {
firstImg.style.display = "none";
secondImg.style.display = "none";
thirdImg.style.display = "none";
fourthImg.style.display = "none";
fifthImg.style.display = "none";
sixthImg.style.display = "none";
seventhImg.style.display = "none";
eighthImg.style.display = "none";
ninthImg.style.display = "none";
tenthImg.style.display = "none";
images.style.opacity = "1";
burger.style.display = "none";
}
function image2Function() {
secondImg.style.display = "block";
images.style.opacity = "0.2";
burger.style.display = "block";
}
function image3Function() {
thirdImg.style.display = "block";
images.style.opacity = "0.2";
burger.style.display = "block";
}
function image4Function() {
fourthImg.style.display = "block";
images.style.opacity = "0.2";
burger.style.display = "block";
}
function image5Function() {
fifthImg.style.display = "block";
images.style.opacity = "0.2";
burger.style.display = "block";
}
function image6Function() {
sixthImg.style.display = "block";
images.style.opacity = "0.2";
burger.style.display = "block";
}
function image7Function() {
seventhImg.style.display = "block";
images.style.opacity = "0.2";
burger.style.display = "block";
}
function image8Function() {
eighthImg.style.display = "block";
images.style.opacity = "0.2";
burger.style.display = "block";
}
function image9Function() {
ninthImg.style.display = "block";
images.style.opacity = "0.2";
burger.style.display = "block";
}
function image10Function() {
tenthImg.style.display = "block";
images.style.opacity = "0.2";
burger.style.display = "block";
}