-
Notifications
You must be signed in to change notification settings - Fork 1
/
script.js
60 lines (36 loc) · 1.39 KB
/
script.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
54
55
56
57
function flip() {
document.querySelector('.flip-card-inner').style.transform = "rotateY(180deg)";
}
function flipAgain() {
document.querySelector('.flip-card-inner').style.transform = "rotateY(0deg)";
}
let eye = document.getElementById("eye-login");
let password = document.getElementById("password-login");
eye.onclick = function () {
if (password.type == "password") {
password.type = "text";
eye.className = "fa fa-eye";
eye.style.color = "cyan";
// password.style.border =" 1px solid cyan";
} else {
password.type = "password"
eye.className = "fa fa-eye-slash";
eye.style.color = "white";
// password.style.border =" 1px solid white";
}
}
let eye2 = document.getElementById("eye-signup");
let password2 = document.getElementById("password-signup");
eye2.onclick = function () {
if (password2.type == "password") {
password2.type = "text";
eye2.className = "fa fa-eye";
eye2.style.color = "cyan";
// password2.style.border =" 1px solid cyan";
} else {
password2.type = "password"
eye2.className = "fa fa-eye-slash";
eye2.style.color = "white";
// password2.style.border =" 1px solid white";
}
}