-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
36 lines (28 loc) · 1.03 KB
/
main.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
// javascript to open modal1 on button click
var elems = document.querySelectorAll('.modal');
var instances = M.Modal.init(elems, { dismissible: true });
var instance = M.Modal.getInstance(elems[0]);
function kontakt() {
instance.open();
}
function wydarzenia()
{
document.getElementById('glowne').classList.add("hide")
document.getElementById('wydarzenia').classList.remove("hide")
document.getElementById('mail').classList.add("hide")
document.getElementById('wroc').classList.remove("hide")
}
function inne()
{
document.getElementById('glowne').classList.add("hide")
document.getElementById('inne').classList.remove("hide")
document.getElementById('mail').classList.add("hide")
document.getElementById('wroc').classList.remove("hide")
}
function przyroda()
{
document.getElementById('glowne').classList.add("hide")
document.getElementById('przyroda').classList.remove("hide")
document.getElementById('mail').classList.add("hide")
document.getElementById('wroc').classList.remove("hide")
}