forked from CQIITKGP/CQIITKGP.github.io
-
Notifications
You must be signed in to change notification settings - Fork 10
/
secondpg.js
41 lines (36 loc) · 1.07 KB
/
secondpg.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
var aside= document.getElementById("mainAside");
var obj= document.getElementById("cntnt");
var obje= document.getElementById("cntn");
var objec= document.getElementById("cnt");
var object= document.getElementById("cn");
var objects= document.getElementById("c");
var bjects= document.getElementById("b1");
var asideOn = false;
document.getElementById("btton").addEventListener("click",function(){
if(asideOn){
aside.classList.toggle("Aside");
aside.style.left="-200px";
asideOn=false;
}else{
aside.classList.toggle("Aside");
aside.style.left="0px";
asideOn=true;
}
obj.classList.toggle("mar");
obje.classList.toggle("mar");
objec.classList.toggle("mar");
object.classList.toggle("mar");
objects.classList.toggle("mar");
bjects.classList.toggle("mar");
});
document.getElementById("btton2").addEventListener("click", function(){
var rightL = document.getElementById("rlist");
// var switched = false;
if(rightL.style.display === "none"){
rightL.style.display = "block";
}
else{
rightL.style.display = "none";
}
// rightL.classList.toggle("slide-in-right");
})