43 lines
No EOL
1.4 KiB
JavaScript
Vendored
43 lines
No EOL
1.4 KiB
JavaScript
Vendored
dropContent = function dropContent() {
|
|
var x = document.getElementById("sideNavID");
|
|
var y = document.getElementById("menuID");
|
|
if (x.className === "dropMenu" && y.className === "sideNavMenu") {
|
|
x.className += " active";
|
|
y.className += " active";
|
|
} else {
|
|
x.className = "dropMenu";
|
|
y.className = "sideNavMenu";
|
|
}
|
|
}
|
|
|
|
dropLoginInfo = function dropLoginInfo() {
|
|
var x = document.getElementById("mainNav");
|
|
var y = document.getElementById("loginNav");
|
|
if (y.className === "dropdown-content-mobile") {
|
|
y.className += " resp";
|
|
x.className = "navbar-links";
|
|
} else {
|
|
y.className = "dropdown-content-mobile";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
showContent = function showContent() {
|
|
var current = document.getElementById("current");
|
|
var next = document.getElementById("next");
|
|
var currentbtn = document.getElementById("currentbtn");
|
|
var nextbtn = document.getElementById("nextbtn");
|
|
if (current.className === "container-main__content bounceInLeft animated active") {
|
|
current.className = "container-main__content bounceInLeft animated";
|
|
currentbtn.className = "container-main__tab"
|
|
next.className += " active";
|
|
nextbtn.className += " active";
|
|
|
|
} else {
|
|
next.className = "container-main__content bounceInLeft animated";
|
|
nextbtn.className = "container-main__tab"
|
|
current.className += " active";
|
|
currentbtn.className += " active";
|
|
}
|
|
} |