-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathscript.js
More file actions
83 lines (40 loc) · 1.36 KB
/
Copy pathscript.js
File metadata and controls
83 lines (40 loc) · 1.36 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
let nav_btn = document.getElementById("nav-btn");
let nav = document.querySelector("nav");
let navlist = document.querySelector('.navbar-list');
// console.log(nav_btn)
// console.log(navlist)
var navopen = 0;
// console.log(navopen);
nav_btn.addEventListener('click', () => {
// open.style.display = none;
// open.style.display = "none";
// nav.style.display = "none";
// nav.style.height = '100%';
// navlist.style.display = "none";
// nav_btn.style.display = "none";
if (navopen == 0) {
nav.style.height = '100vh';
// nav_btn.style.display = "none";
console.log(navopen);
nav_btn.classList.remove("fa-bars");
nav_btn.classList.add("fa-xmark");
navlist.style.display = "flex";
// close_nav.style.display = "none";
// console.log(navlist)
navopen = 1;
}
else {
// nav.classList
nav_btn.classList.add("fa-bars");
nav_btn.classList.remove("fa-xmark");
nav.style.height = 'auto';
navlist.style.display = "none";
// nav_btn.style.display = "block";
// close_nav.style.display = "block";
navopen = 0;
}
})
// music.addEventListener('timeupdate', () => {
// progress = parseInt((music.currentTime / music.duration) * 100);
// myProgressbar.value = progress;
// })