-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjs.js
48 lines (40 loc) · 1.23 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
function openmenu()
{
document.getElementById("side-menu").style.display="block";
document.getElementById("menu-btn").style.display="none";
document.getElementById("close-btn").style.display="block";
}
function closemenu()
{
document.getElementById("side-menu").style.display="none";
document.getElementById("menu-btn").style.display="block";
document.getElementById("close-btn").style.display="none";
}
function show_password() {
let x = document.getElementById("password");
let y = document.getElementById("hide1");
let z = document.getElementById("hide2");
if (x.type === "password") {
x.type = "text";
y.style.display ="none";
z.style.display="block";
} else {
x.type = "password";
y.style.display ="block";
z.style.display="none";
}
}
function show_password2() {
let x = document.getElementById("password2");
let y = document.getElementById("hide1_1");
let z = document.getElementById("hide2_2");
if (x.type === "password") {
x.type = "text";
y.style.display ="none";
z.style.display="block";
} else {
x.type = "password";
y.style.display ="block";
z.style.display="none";
}
}