forked from TwoGenius/HacktoberFest2022
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
20 lines (18 loc) · 690 Bytes
/
Copy pathscript.js
File metadata and controls
20 lines (18 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// alert("hii")
// console.log("running")
// this is to check if its working fine
document.querySelector('.cross').style.display = 'none'
document.querySelector('.hamBurger').addEventListener("click",()=>{
document.querySelector('.sidebar').classList.toggle('sidebarGo');
if(document.querySelector('.sidebar').classList.contains('sidebarGo'))
{
document.querySelector('.ham').style.display='inline'
document.querySelector('.cross').style.display='none'
}
else{
document.querySelector('.ham').style.display='none'
setTimeout(()=>{
document.querySelector('.cross').style.display='inline'
},350);
}
})