-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.js
38 lines (25 loc) · 1.05 KB
/
sidebar.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
//Sidebar LINES-------------------------------------------------------------------------------------------------------------------------------------
// toggle functiono hides/shows LINES Sidebar
function x() {
var sidebarLin = document.getElementById("sidebarLine")
if(sidebarLin.style.display === "inline-block") {
sidebarLin.style.display = "none";
} else {
sidebarLin.style.display = "inline-block";
}
var legendLin = document.getElementsById('legendLin')
if(legendLin.style.display === 'inline-block') {
legendLin.style.display = 'none';
} else {
legendLin.style.display = 'inline-block';
}
}
//Sidebar NETWORK------------------------------------------------------------------------------------------------------------------------------------
function y() {
var sidebarSub = document.getElementById("sidebarSuburb")
if(sidebarSub.style.display === "inline-block") {
sidebarSub.style.display = "none";
} else {
sidebarSub.style.display = "inline-block";
}
}