forked from Jainex17/biography
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjavascript.js
More file actions
33 lines (30 loc) · 907 Bytes
/
Copy pathjavascript.js
File metadata and controls
33 lines (30 loc) · 907 Bytes
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
// sidebar open close js code
let navLinks = document.querySelector(".nav-links");
let menuOpenBtn = document.querySelector(".navbar .bx-menu");
let menuCloseBtn = document.querySelector(".nav-links .bx-x");
menuOpenBtn.onclick = function () {
navLinks.style.left = "0";
};
menuCloseBtn.onclick = function () {
navLinks.style.left = "-100%";
};
// sidebar submenu open close js code
let bollyactArrow = document.querySelector(".bollyact-arrow");
bollyactArrow.onclick = function () {
navLinks.classList.toggle("show1");
};
let cbArrow = document.querySelector(".cb-arrow");
cbArrow.onclick = function () {
navLinks.classList.toggle("show3");
};
//select js
$(function () {
// bind change event to select
$("#dynamic_select").on("change", function () {
var url = $(this).val();
if (url) {
window.location = url;
}
return false;
});
});