-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
34 lines (29 loc) · 869 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
29
30
31
32
33
34
document.querySelector(".banners").style.display = 'none'
let prev_page = 'type'
let info = {
'type':'noset',
'tech':'noset',
'band':0
}
let init = document.getElementsByClassName(prev_page)[0]
init.style.display = 'grid'
page = (page='type',change=undefined) => {
a = document.getElementsByClassName(page)[0]
if (a != undefined) {
document.getElementsByClassName(prev_page)[0].classList.remove('apear')
setTimeout(() => {
document.querySelectorAll('body>article').forEach(a=>{a.style.display = 'none'})
a.style.display='grid'
setTimeout(()=>{
a.classList.add('apear')
},201)
}, 201);
if (change!=undefined) {
info[prev_page]=change
}
prev_page = page
}
}
setTimeout(() => {
init.classList.add('apear')
}, 200);