forked from treehack/treehack.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
myscripts.js
50 lines (42 loc) · 1.31 KB
/
myscripts.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
$(".email").on("change keyup paste", function () {
if ($(this).val()) {
$(".icon-paper-plane").addClass("next");
} else {
$(".icon-paper-plane").removeClass("next");
}
});
$(".next-button").hover(function () {
$(this).css("cursor", "pointer");
});
$(".next-button.email").click(function () {
console.log("Something");
$(".email-section").addClass("fold-up");
$(".password-section").removeClass("folded");
});
$(".password").on("change keyup paste", function () {
if ($(this).val()) {
$(".icon-lock").addClass("next");
} else {
$(".icon-lock").removeClass("next");
}
});
$(".next-button").hover(function () {
$(this).css("cursor", "pointer");
});
$(".next-button.password").click(function () {
console.log("Something");
$(".password-section").addClass("fold-up");
$(".repeat-password-section").removeClass("folded");
});
$(".repeat-password").on("change keyup paste", function () {
if ($(this).val()) {
$(".icon-repeat-lock").addClass("next");
} else {
$(".icon-repeat-lock").removeClass("next");
}
});
$(".next-button.repeat-password").click(function () {
console.log("Something");
$(".repeat-password-section").addClass("fold-up");
$(".success").css("marginTop", 0);
});