-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjavas.js
40 lines (33 loc) · 1.65 KB
/
javas.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
document.getElementById("show").addEventListener("click", function() {
document.getElementById("create-form").style.display = "block";
});
document.getElementById("close-form").addEventListener("click", function(){
document.getElementById("create-form").style.display = "none";
document.getElementById("hide-for-sign-in1").style.display = "block";
document.getElementById("hide-for-sign-in2").style.display = "block";
document.getElementById("update").textContent === "Create Account"
document.getElementById("update1").textContent === "Create Account";
});
document.getElementById("sign-in").addEventListener("click", function() {
if(document.getElementById("hide-for-sign-in1").style.display = "block"){
document.getElementById("hide-for-sign-in1").style.display = "none";
} else{
document.getElementById("hide-for-sign-in1").style.display = "block";
}
if(document.getElementById("hide-for-sign-in2").style.display = "block"){
document.getElementById("hide-for-sign-in2").style.display = "none";
} else{
document.getElementById("hide-for-sign-in2").style.display = "block";
}
if(document.getElementById("update").textContent = "Create Account"){
document.getElementById("update").textContent = "Sign In";
}
else{
document.getElementById("update").textContent = "Create Account"
}
if(document.getElementById("update1").textContent ="Create Account"){
document.getElementById("update1").textContent = "Sign In";
} else {
document.getElementById("update1").textContent = "Create Account";
}
});