-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patha.js
More file actions
151 lines (138 loc) · 6.19 KB
/
a.js
File metadata and controls
151 lines (138 loc) · 6.19 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
const left = document.querySelector('.left');
const cent = document.querySelector('.cent');
const right = document.querySelector('.right');
const cont1 = document.querySelector('.cont1');
const cont2 = document.querySelector('.cont2');
const cont3 = document.querySelector('.cont3');
left.addEventListener('mouseover', () => {
let opacity = 1;
left.style.width = '100%';
cent.style.width = '0%';
right.style.width = '0%';
cont1.style.opacity = 1;
cont1.style.height = '100%';
cont1.style.width = '100%';
document.querySelectorAll('.imgimg')[1].style.width = 0;
document.querySelectorAll('.imgimg')[2].style.width = 0;
// document.querySelectorAll('.imgimg')[0].style.opacity = 0;
document.querySelector('.cent').style.border = 'none';
});
left.addEventListener('mouseout', () => {
left.style.width = '33.333%';
cent.style.width = '33.333%';
right.style.width = '33.333%';
cont1.style.opacity = 0;
cont1.style.height = '0%';
cont1.style.width = '0%';
document.querySelectorAll('.imgimg')[1].style.width = s;
document.querySelectorAll('.imgimg')[2].style.width = s;
document.querySelectorAll('.imgimg')[0].style.opacity = 1;
document.querySelector('.cent').style.borderRight = '#696969 5px solid';
document.querySelector('.cent').style.borderLeft = '#696969 5px solid';
});
cent.addEventListener('mouseover', () => {
cent.style.width = '100%';
left.style.width = '0%';
right.style.width = '0%';
cont2.style.opacity = 1;
cont2.style.height = '100%';
cont2.style.width = '100%';
document.querySelectorAll('.imgimg')[0].style.width = 0;
document.querySelectorAll('.imgimg')[2].style.width = 0;
// document.querySelectorAll('.imgimg')[1].style.opacity = 0;
document.querySelector('.cent').style.border = 'none';
});
cent.addEventListener('mouseout', () => {
cent.style.width = '33.333%';
left.style.width = '33.333%';
right.style.width = '33.333%';
cont2.style.opacity = 0;
cont2.style.height = '0%';
cont2.style.width = '0%';
document.querySelectorAll('.imgimg')[0].style.width = s;
document.querySelectorAll('.imgimg')[2].style.width = s;
document.querySelectorAll('.imgimg')[1].style.opacity = 1;
document.querySelector('.cent').style.borderRight = '#696969 5px solid';
document.querySelector('.cent').style.borderLeft = '#696969 5px solid';
});
right.addEventListener('mouseover', () => {
right.style.width = '100%';
cent.style.width = '0%';
left.style.width = '0%';
cont3.style.height = '100%';
cont3.style.width = '100%';
cont3.style.opacity = 1;
document.querySelectorAll('.imgimg')[0].style.width = 0;
document.querySelectorAll('.imgimg')[1].style.width = 0;
// document.querySelectorAll('.imgimg')[2].style.opacity = 0;
document.querySelector('.cent').style.border = 'none';
});
right.addEventListener('mouseout', () => {
right.style.width = '33.333%';
cent.style.width = '33.333%';
left.style.width = '33.333%';
cont3.style.opacity = 0;
cont3.style.height = '0%';
cont3.style.width = '0%';
document.querySelectorAll('.imgimg')[0].style.width = s;
document.querySelectorAll('.imgimg')[1].style.width = s;
document.querySelectorAll('.imgimg')[2].style.opacity = 1;
document.querySelector('.cent').style.borderRight = '#696969 5px solid';
document.querySelector('.cent').style.borderLeft = '#696969 5px solid';
});
document.querySelector('.info1').onclick = () => {
document.querySelector('.pop').style.opacity = '1';
document.querySelector('.pop').style.height = '80%';
document.querySelector('.pop').style.width = '80%';
document.querySelector('.hor').style.display = 'block';
document.querySelector('body').style.overflow = 'hidden';
};
document.querySelector('.info2').onclick = () => {
document.querySelector('.pop').style.opacity = '1';
document.querySelector('.pop').style.height = '80%';
document.querySelector('.pop').style.width = '80%';
document.querySelector('.md').style.display = 'block';
document.querySelector('body').style.overflow = 'hidden';
};
document.querySelector('.info3').onclick = () => {
document.querySelector('.pop').style.opacity = '1';
document.querySelector('.pop').style.height = '80%';
document.querySelector('.pop').style.width = '80%';
document.querySelector('.Equinox').style.display = 'block';
document.querySelector('body').style.overflow = 'hidden';
};
document.querySelectorAll('.close')[0].onclick = () => {
// document.querySelector('.pop').style.display = 'none';
document.querySelector('.Equinox').style.display = 'none';
document.querySelector('.md').style.display = 'none';
document.querySelector('.hor').style.display = 'none';
document.querySelector('body').style.overflow = 'auto';
document.querySelector('.pop').style.opacity = '0';
document.querySelector('.pop').style.height = '0%';
document.querySelector('.pop').style.width = '0%';
};
document.querySelectorAll('.close')[1].onclick = () => {
// document.querySelector('.pop').style.display = 'none';
document.querySelector('.Equinox').style.display = 'none';
document.querySelector('.md').style.display = 'none';
document.querySelector('.hor').style.display = 'none';
document.querySelector('body').style.overflow = 'auto';
document.querySelector('.pop').style.opacity = '0';
document.querySelector('.pop').style.height = '0%';
document.querySelector('.pop').style.width = '0%';
};
document.querySelectorAll('.close')[2].onclick = () => {
// document.querySelector('.pop').style.display = 'none';
document.querySelector('.Equinox').style.display = 'none';
document.querySelector('.md').style.display = 'none';
document.querySelector('.hor').style.display = 'none';
document.querySelector('body').style.overflow = 'auto';
document.querySelector('.pop').style.opacity = '0';
document.querySelector('.pop').style.height = '0%';
document.querySelector('.pop').style.width = '0%';
};
console.log(screen.height);
let s = left.offsetWidth;
document.querySelectorAll('.imgimg')[0].style.width = s;
document.querySelectorAll('.imgimg')[1].style.width = s;
document.querySelectorAll('.imgimg')[2].style.width = s;