-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
295 lines (295 loc) · 10.9 KB
/
index.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link async rel="stylesheet" href="/VITE/css/fonts.css?version=[-version-number-]" />
<link rel="stylesheet" href="/VITE/css/common.css?version=[-version-number-]" />
<link rel="stylesheet" href="/VITE/css/theme.css?version=[-version-number-]" />
<link rel="stylesheet" href="/VITE/css/signon.css?version=[-version-number-]" />
<link rel="stylesheet" href="/VITE/css/stars.css?version=[-version-number-]" />
<link rel="apple-touch-icon" href="/VITE/img/icon/app/icon-maskable-72x72.png" />
<link rel="apple-touch-icon" href="/VITE/img/icon/app/icon-maskable-96x96.png" />
<link rel="apple-touch-icon" href="/VITE/img/icon/app/icon-maskable-128x128.png" />
<link rel="apple-touch-icon" href="/VITE/img/icon/app/icon-maskable-144x144.png" />
<link rel="apple-touch-icon" href="/VITE/img/icon/app/icon-maskable-152x152.png" />
<link rel="apple-touch-icon" href="/VITE/img/icon/app/icon-maskable-192x192.png" />
<link rel="apple-touch-icon" href="/VITE/img/icon/app/icon-maskable-384x384.png" />
<link rel="apple-touch-icon" href="/VITE/img/icon/app/icon-maskable-512x512.png" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<meta name="theme-color" id="theme-light-color" id="theme-light-color" content="#1D55A8" />
<meta name="theme-color" id="theme-light-color" content="#1D55A8" />
<style>
#back-button {
display: none;
}
#progress-bar {
margin-left: 0 !important;
}
</style>
<link
rel="shortcut icon"
href="//sandervonk.github.io/VITE/img/icon/app/icon-512x512.png"
type="image/png"
/>
<meta
name="description"
content="Conjugate French verbs, learn new tenses, or practice existing ones, all 100% free with VITE! French tools!"
/>
<meta itemprop="name" content="VITE! Mobile" />
<meta
itemprop="description"
content="Conjugate French verbs, learn new tenses, or practice existing ones, all 100% free with VITE! French tools!"
/>
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="VITE! Mobile" />
<meta
name="twitter:description"
content="Conjugate French verbs, learn new tenses, or practice existing ones, all 100% free with VITE! French tools!"
/>
<meta name="twitter:image:src" content="/VITE/img/social-img/social-twitter.png" />
<meta name="og:title" content="VITE! Mobile" />
<meta
name="og:description"
content="Conjugate French verbs, learn new tenses, or practice existing ones, all 100% free with VITE! French tools!"
/>
<meta name="og:image" content="/VITE/img/social-img/social-og.png" />
<meta name="og:url" content="svonk.me/VITE/" />
<meta name="og:site_name" content="VITE! French Conjugation Practice" />
<meta name="og:type" content="website" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "EducationalOrganization",
"name": "VITE! French Practice",
"alternateName": "VITE!",
"url": "https://svonk.me/VITE/",
"logo": "https://sandervonk.github.io/VITE/img/icon/app/icon-512x512.png",
"sameAs": ["https://sander.vonk.one/VITE/", "http://github.com/sandervonk/VITE"]
}
</script>
<script async src="//www.googletagmanager.com/gtag/js?id=G-5GF8MRX85G"></script>
<script>
function gtag() {
dataLayer.push(arguments);
}
(window.dataLayer = window.dataLayer || []),
gtag("js", new Date()),
gtag("config", "G-5GF8MRX85G");
</script>
<title>VITE! - Login</title>
</head>
<body>
<header>
<button id="back-button" class="progress-button"></button>
<div id="progress-bar">
<div id="progress-fill"><div id="progress-fill-accent"></div></div>
</div>
</header>
<div id="title-text">Get Started</div>
<div id="auth-box">
<form id="auth-form">
<div class="box" id="signup-box">
<label for="email-input">Email</label><br /><input
type="email"
autocomplete="email"
id="email-input"
name="email"
/><br /><label for="password-input">Passcode</label><br /><input
type="password"
style="margin-bottom: 0"
autocomplete="new-password"
id="password-input"
name="password"
/>
<p
onclick="resetEmail()"
class="secondary"
style="margin: 0; text-decoration: underline; margin-left: 20px; margin-bottom: 25px"
>
Forgot Passcode
</p>
<div id="submit-buttons">
<input
class="box-button"
id="signup"
type="submit"
value="Sign Up"
style="margin-right: 5px; margin-bottom: 0"
/>
<input
class="box-button"
id="login"
type="submit"
value="Log In"
style="
margin-left: 5px;
background-color: var(--button-bg);
border-color: var(--button-border);
"
/>
</div>
</div>
<div id="provider-login" class="login-margin">
<input
id="oauth-login"
class="login-skip box box-button fullborder"
value="Login with Google"
type="submit"
formaction="./app/"
/><input
id="github-login"
class="login-skip box box-button fullborder"
value=""
type="submit"
formaction="./app/"
/><input
id="facebook-login"
class="login-skip box box-button fullborder"
value=""
type="submit"
formaction="./app/"
/><input
id="twitter-login"
class="login-skip box box-button fullborder"
value=""
type="submit"
formaction="./app/"
/>
</div>
<div id="extended-options" class="login-margin">
<input
id="guest-login"
onclick="auth.signInAnonymously()"
class="login-skip box box-button fullborder"
value="Continue as Guest"
type="button"
/><input
id="school-login"
onclick="eduSignup()"
class="login-skip box-button fullborder primary center"
value="Student / Teacher"
title="Student / Teacher Signup"
type="button"
/>
<div id="group-icon" class="color-mask"></div>
</div>
<div id="education-options" style="display: none">
<input
id="edu-back"
type="button"
class="box-button fullborder"
onclick='window.location.href="./"'
/>
<input
id="join-code"
type="text"
name="join-code"
class="box"
placeholder="Class Code [go back to change this]"
/>
<input id="code-submit" type="button" class="box fullborder" />
</div>
</form>
<div id="verification-box" class="inactive box">
<div id="verification-email" class="box secondary">[email protected]</div>
<div id="submit-buttons">
<input id="change-email" type="button" class="box-button" value="Change" /><input
id="send-verification"
type="button"
class="box-button"
value="Send Verification"
/>
</div>
</div>
</div>
<div id="bg-items">
<div id="bg-stars"></div>
<div id="earth-illustration">
<object
alt="Earth Illustration"
class="earth-illustration-img"
data="/VITE/img/earth-new.svg"
type="image/svg+xml"
></object>
<div id="earth-clouds" class="earth-illustration-img"></div>
</div>
</div>
</body>
<script src="/VITE/js/util.js?version=[-version-number-]"></script>
<script src="//www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
<script src="//www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>
<script src="//www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script>
<script src="//www.gstatic.com/firebasejs/8.10.0/firebase-messaging.js"></script>
<script>
const config = {
apiKey: "AIzaSyCZelR1HSbmcPf70rTI5Ig02yasL8RSdPw",
authDomain: "vite-practice.firebaseapp.com",
projectId: "vite-practice",
storageBucket: "vite-practice.appspot.com",
messagingSenderId: "559659689480",
appId: "1:559659689480:web:417819295e1ad204e193bd",
measurementId: "G-61KY0KX892",
};
firebase.initializeApp(config);
const auth = firebase.auth(),
db = firebase.firestore(),
messaging = firebase.messaging();
// database
db.settings({ timestampsInSnapshots: !0, merge: true });
var userDoc = function () {
return db.collection("users").doc(auth.getUid());
};
// messaging
messaging
.requestPermission()
.then(() => {
return messaging.getToken();
})
.then((token) => {
// console.log("Token Is : " + token);
})
.catch((err) => {
console.warn("No permission to send push", err);
});
messaging.onMessage((payload) => {
console.log("Message received. ", payload);
new Toast(
`<div class="push-notification-text"><div style="padding-bottom:.25em; font-weight: bold;">${payload.notification.title}</div><span style="font-size: .9em">${payload.notification.body}</span></div>`,
"default",
4000000 + payload.notification.body.length * 20,
"/VITE/img/icon/concern-icon.svg"
);
});
</script>
<script src="/VITE/js/auth.js?version=[-version-number-]"></script>
<script>
//*STARS
var limit = window.matchMedia("(orientation: landscape)").matches ? 150 : 75, // Max number of stars
body = document.body;
loop = {
start: function () {
for (var i = 0; i <= limit; i++) {
var star = this.newStar();
star.style.top = this.rand() * 100 + "%";
star.style.left = this.rand() * 100 + "%";
star.style.webkitAnimationDelay = this.rand() + "s";
star.style.mozAnimationDelay = this.rand() + "s";
document.getElementById("bg-stars").appendChild(star);
}
},
//to get random number
rand: function () {
return Math.random();
},
//creating html dom for star
newStar: function () {
var d = document.createElement("div");
d.innerHTML = '<figure class="star"></figure>';
return d.firstChild;
},
};
loop.start();
</script>
</html>