-
Notifications
You must be signed in to change notification settings - Fork 1
/
reset.html
132 lines (130 loc) · 2.98 KB
/
reset.html
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html>
<head>
<title>Reset password</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap" rel="stylesheet">
<link rel='icon' href='https://lb123658.github.io/tea/img/favicon.png' type='image/png'/>
<style>
body {
background: #2F3137;
}
* {
font-family: 'Montserrat', sans-serif;
user-select: none;
-webkit-user-select: none;
color: white;
}
#logo {
position: absolute;
top: 20px;
left: 20px;
width: 200px;
height: 50px;
border-radius: 15px;
background: #5765F2;
border: none;
font-size: 30px;
font-weight: bold;
color: white;
cursor: default;
}
#logo:hover {
border-radius: 7px;
}
#noscript {
position: absolute;
top: 40%;
font-size: 25px;
margin: 0px 50px 0px 50px;
}
#directions {
position: absolute;
top: 20%;
font-size: 20px;
margin: 0px 50px 0px 50px;
width: 360px;
visibility: hidden;
}
.input {
width: 350px;
height: 35px;
font-size: 22px;
background: transparent;
border-style: solid;
border-color: #2F3137 #2F3137 grey #2F3137;
margin-top: 40px;
}
.input:focus {
outline-width: 0;
border-color: #2F3137 #2F3137 white #2F3137;
}
#submit {
width: 150px;
height: 45px;
font-size: 22px;
border-radius: 15px;
background: #5765F2;
border: none;
font-weight: bold;
color: white;
cursor: default;
margin-top: 60px;
opacity: 0.6;
pointer-events: none;
}
#submit:hover {
border-radius: 7px;
}
#tea {
position: absolute;
bottom: 0px;
right: 0px;
width: 100%;
user-select: none;
z-index: -1;
max-height: 650px;
}
input {
-webkit-user-select: auto;
}
#password {
pointer-events: none;
}
</style>
</head>
<body>
<button id="logo" onclick="changePage()">TeaBag</button>
<noscript id="noscript">Please turn on JavaScript to play TeaBag</noscript>
<div id="directions">
<p id="p">Reset your TeaBag password</p>
<input type="text" autocomplete="off" class="input" placeholder="Enter your username" id="username" onkeyup="username()">
<br>
<input type="password" autocomplete="off" class="input" placeholder="Create a new password" id="password" onkeyup="verify()">
<button id="submit" onclick="signin()">Continue</button>
</div>
<!-- photo on side -->
<img src="https://raw.githubusercontent.com/LB123658/tea/main/img/login.png" id="tea">
<script>
document.getElementById("directions").style.visibility = "visible";
document.getElementById("username").focus();
function signin() {
localStorage.setItem("account", document.getElementById("username").value + ":" + document.getElementById("password").value);
location.replace("https://lb123658.github.io/tea");
}
function verify() {
document.getElementById("submit").style.pointerEvents = "auto";
document.getElementById("submit").style.opacity = "1";
}
function username() {
if (document.getElementById("username").value == localStorage.getItem("account").split(":")[0]) {
document.getElementById("password").style.pointerEvents = "auto";
document.getElementById("password").focus();
}
}
function changePage() {
location.replace("https://lb123658.github.io/tea");
}
</script>
</body>
</html>