-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjavascript.js
53 lines (49 loc) · 1.54 KB
/
javascript.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
42
43
44
45
46
47
48
49
50
51
52
53
function openSearch() {
document.getElementById("loppensearchbar").style.display = "block";
}
function closeSearch() {
document.getElementById("loppensearchbar").style.display = "none";
}
var coll = document.getElementsByClassName("menu");
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function () {
this.classList.toggle("active");
var nav = this.nextElementSibling;
if (nav.style.maxHeight) {
nav.style.maxHeight = null;
} else {
nav.style.maxHeight = nav.scrollHeight + "px";
}
});
}
function kalendar_open() {
document.getElementById("id_dropdown-content").style.display = "block";
}
function genre_open() {
document.getElementById("id_dropdown-content1").style.display = "block";
}
function billeder_open() {
document.getElementById("id_dropdown-content2").style.display = "block";
}
function info_open() {
document.getElementById("id_dropdown-content3").style.display = "block";
}
function kontakt_open() {
document.getElementById("id_dropdown-content4").style.display = "block";
}
function menu_open() {
document.getElementById("id_dropdown-content5").style.display = "block";
}
function kalendar_close() {
document.getElementById("id_dropdown-content").style.display = "none";
}
function genre_close() {
document.getElementById("id_dropdown-content1").style.display = "none";
}
function billeder_close() {
document.getElementById("id_dropdown-content2").style.display = "none";
}
function menu_close() {
document.getElementById("id_dropdown-content5").style.display = "none";
}