-
Notifications
You must be signed in to change notification settings - Fork 0
/
js.js
53 lines (42 loc) · 1.26 KB
/
js.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
function navBar(){
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
}
function profil() {
if (document.getElementById("profil").style.display=="none") {
document.getElementById("profil").style.display = "block";
}else{
document.getElementById("profil").style.display = "none";
}
}
function openForm() {
if (document.getElementById("connexion").style.display=="none") {
document.getElementById("connexion").style.display = "block";
}else{
document.getElementById("connexion").style.display = "none";
}
}
function closeForm() {
document.getElementById("connexion").style.display = "none";
}
function openForm2() {
if ( document.getElementById("inscription").style.display=="none") {
document.getElementById("inscription").style.display = "block";
}else{
document.getElementById("inscription").style.display = "none";
}
}
function closeForm2() {
document.getElementById("inscription").style.display = "none";
}