-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhomepage.html
586 lines (502 loc) · 24.2 KB
/
homepage.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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
<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.0">
<meta name="description" content="Lang Study is a customizable studying program from Lye Software that prioritizes your privacy and is completely free.">
<meta name="keywords" content="Lang, Study, Lang Study, langstudy, langstudy tech, lang study tech, langstudy.tech, lang, language, lye software, Lye Software, quizlet, memrise, flashcard, flashcards, quiz, test, convert from quizlet, export from quizlet">
<meta name="author" content="Nate Vemuri">
<meta name="author" content="Ryan Pineda">
<link rel="icon" href="assets/logos/lang-wheat.png">
<title>Lang Study: Empowering All Through Education</title>
<link rel="stylesheet" href="css/stylesheet.css">
<script src="javascript/homepage.js"></script>
<script src="javascript/Studysheet.js"></script>
<script src="javascript/utils.js"></script>
<script src="javascript/httpGet.js"></script>
<script src="javascript/loadBalancer.js"></script>
<script src="javascript/LangError.js"></script>
<script src="javascript/Notification.js"></script>
<style>
#studysheetFlexContainer::-webkit-scrollbar {
display: none !important;
}
.snowflakeContainer {
width: 100vw;
height: 100vh;
overflow: hidden;
position: absolute;
top: 0;
left: 0;
pointer-events: none;
}
.button {
width: auto;
padding: 15px;
}
.createStudysheetOverlay {
z-index: 1000;
right: 0;
bottom: 0;
height: 75px;
width: 75px;
display: block;
margin: 25px;
}
.body {
color: var(--primary-light);
overflow-y: visible;
/* height: calc(84vh - 72px); */
/* background-color: orange; */
}
body {
background: linear-gradient(180deg, #001945 35.94%, #000011 100%);
background-attachment: fixed;
background-color: var(--primary-dark);
}
#contentContainer {
margin-top: 30px;
z-index: 100;
-ms-overflow-style: none !important; /* IE and Edge */
scrollbar-width: none !important; /* Firefox */
}
#welcomeText {
z-index: 100;
}
#studysheetFlexContainer {
-webkit-box-shadow:0px 0px 20px 0px black;
-moz-box-shadow: 0px 0px 20px 0px black;
box-shadow: 0px 0px 20px 0px black;
border-radius: 20px 20px 20px 20px;
flex:1.1;
gap: 0;
max-width: 500px !important;
width: 90vw;
height: 55vh;
overflow-y: scroll;
}
.sheetEntry {
width: 100%;
color: white;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 15px;
box-sizing: border-box;
transition: background-color 0.125s ease-in-out;
}
.sheetEntry > div > svg {
stroke: white;
fill: white;
}
.sheetEntry:hover {
background-color: rgba(255, 255, 255, 0.25);
}
.studysheetInfoContainer {
-webkit-box-shadow:0px 0px 20px 0px black;
-moz-box-shadow: 0px 0px 20px 0px black;
box-shadow: 0px 0px 20px 0px black;
flex:0.4;
display: flex;
flex-direction: column;
align-items: center;
max-width: 500px !important;
height: 50vh;
width: 90vw;
background-color: wheat;
border: 1px solid var(--primary-light);
}
.studysheetName {
margin-left: 10px;
color:black;
}
.studysheetEdit {
height: 20px;
width: 20px;
stroke: var(--primary-dark);
fill: var(--primary-dark);
}
.studysheetDelete {
height: 30px;
width: 30px;
stroke: var(--primary-light);
/* fill: var(--primary-light); */
}
#termCount {
font-size: 100px;
line-height: 1.1;
}
.studysheetInfoPanel {
border: 1px solid black;
box-sizing: border-box;
padding: 10px;
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}
.studysheetOption {
width: 30%;
color: var(--primary-dark);
box-sizing: border-box;
padding: 10px;
border-radius: 25px;;
}
#homeusername {
color: white;
font-weight:bold;
}
.selected {
/* background-color: var(--primary-light) !important; */
background-color: white !important;
color: var(--primary-dark) !important;
stroke: var(--primary-dark) !important;
fill: var(--primary-dark) !important;
z-index: 10;
/*-webkit-box-shadow: 0px 0px 50px 0px var(--primary-light);
-moz-box-shadow: 0px 0px 50px 0px var(--primary-light);
box-shadow: 0px 0px 50px 0px var(--primary-light);*/
}
.selected div {
background-color: inherit !important;
color: var(--primary-dark) !important;
stroke: var(--primary-dark) !important;
fill: var(--primary-dark) !important;
}
.selected svg {
background-color: inherit !important;
color: var(--primary-dark) !important;
stroke: var(--primary-dark) !important;
fill: var(--primary-dark) !important;
}
#feedbackUI #feedbackUIInputContainer {
display: none;
}
#feedbackUI:hover #feedbackUIInputContainer {
display: flex;
opacity: 1;
animation: fadeIn 0.25s ease-in-out;
}
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
#welcomeTextMobile {
display: none;
margin-top: 30px;
margin-bottom: 30px;
}
@media (max-width: 1100px) {
.studysheetInfoContainer {
display: none;
}
}
@media (max-width: 700px) {
#welcomeText {
display: none;
}
#feedbackUI {
display: none;
}
.createStudysheetOverlay {
display: none;
}
#contentContainer {
margin: 0;
width: 100%;
}
#bodyContent {
margin: 0 !important;
}
#welcomeTextMobile {
display: block;
}
}
.lightWhiteBackdrop{
background-color: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
pointer-events: all;
}
.loadWhiteBackground{
background-color: rgba(255, 255, 255, 0.5);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
pointer-events: all;
}
.notif{
transition:0.5s;
padding:10px;
border-radius:400px;
cursor:pointer;
}
.notif:hover{
background-color: white;
}
.notifBox{
display: flex;
justify-content: flex-start;
align-items: flex-start;
flex-wrap: wrap;
padding: 10px;
}
.notifBox > h3 {
min-width: 300px;
text-align: left;
}
.notifBox > p {
flex: 1;
flex-basis: 300px;
}
.hasUnreads{
transition:0.5s;
animation: unreads 1s ease-in-out infinite;
}
@keyframes unreads{
0%{
opacity: 0%;
}
50%{
opacity: 100%;
}
100%{
opacity: 0%;
}
}
.hasUnreads:hover{
animation:none;
}
</style>
</head>
<body onload="getLibraryList()">
<!-- <body onload="window.location.href='other/mait.html'"> -->
<h1 style="display:none;">Welcome to Lang Study! Lang Study is a customizable studying program from Lye Software that prioritizes your privacy and is completely free.</h1>
<div class="content">
<div id="header" class="header horizontalFlex">
<div style="cursor:pointer;">
<img style="height: 10vh;" src="assets/logos/FullLangLogo.png" alt='Lang Logo'>
</div>
<div id="homeusername" class="noverticalshow button verticalFlex" style="cursor: pointer" onclick="window.location.href='settings.html'">Loading your name...</div>
</div>
<div class="functionRow horizontalFlex" style="justify-content: start;">
<div class="functionRowItem">
Create
<div class="functionRowItemContents" style="z-index:500;">
<div onclick="window.location.href='creator.html'">New Studysheet</div>
<div onclick="window.location.href='notes.html'">From Notes</div>
<!-- <div onclick="window.location.href='quizletconvert.html'">From Quizlet</div> -->
</div>
</div>
<div class="functionRowItem" style="display:none;" id="localAdvanced">
Local
<div class="functionRowItemContents" style="z-index:500;">
<div>Not Available Currently</div>
<!-- <div onclick="window.location.href='train.html'">Train</div>
<div onclick="window.location.href='mastery.html'">Mastery</div>
<div onclick="window.location.href='multiplechoice.html'">Multiple Choice</div>
<div onclick="window.location.href='flashcardsnewtml'">Flashcards</div>
<div onclick="window.location.href='practestnew.html'">Practice Test</div> -->
</div>
</div>
<div class="functionRowItem">
Settings
<div class="functionRowItemContents" style="z-index:500;">
<div onclick="window.open('https://lye.software/manageuser')">Account Settings</div>
<div onclick="window.location.href='settings.html'">Lang Settings</div>
</div>
</div>
<div class="functionRowItem">
About
<div class="functionRowItemContents" style="z-index:500;">
<div onclick="window.location.href='about.html'">About Lang</div>
<div onclick="window.location.href='langlegal.html'">Legal & Credits</div>
<div onclick="window.location.href='langAssistantFAQ.html'">About Lang Assistant</div>
</div>
</div>
<div class="functionRowItem">
Contact Us
<div class="functionRowItemContents" style="z-index:500;">
<a href="https://github.com/LYE-software/Lang/issues">Visit our GitHub</a>
<a href="mailto:[email protected]" >Email Us</a>
<a href="https://discord.gg/FtdtvkdfHy" >Join us on Discord</a>
<a href="https://instagram.com/studylangtech\" >Follow us on Instagram</a>
<a href="https://youtube.com/@studylangtech">Subscribe to our YouTube</a>
</div>
</div>
<notdiv class="flexSpacer"></notdiv>
<div class="notif hasUnreads" style="margin-right:3vh;" id="notif" onclick="openNotifs()">
<img src="assets/icons/notifications.png" style="height:3vh;">
</div>
</div>
<div id="bodyContent" class="body centerFlex verticalFlex" style="justify-content: center; margin-top: 50px;">
<div id="welcomeText" class="horizontalFlex noverticalshow" style="justify-content: center; max-width: 100vw; flex-wrap: wrap;">
<div style="color: white; margin: 0; margin-right: 0;" class="centerText headerText">Your</div>
<div style="color: white; margin: 0; margin-left: 1vw;" class="centerText headerText">Studysheets</div>
</div>
<div id="welcomeTextMobile">
<div style="color: white; margin: 0; margin-right: 0;" class="centerText headerText">Home</div>
</div>
<div id="contentContainer" style="position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center;">
<div id="loadingscreen" class="verticalFlex loadWhiteBackground" style="transition: all 0.25s ease-in-out; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 250; border: 1px solid var(--primary-light); border-radius:20px;">
<div>
<img class="animatedLoader" src="assets/logos/lang-wheat.png" alt="Loading">
</div>
</div>
<div id="studysheetFlexContainer" class="lightWhiteBackdrop">
</div>
<div class="studysheetInfoContainer noverticalshow" style="border-radius:0px 20px 20px 0px">
<div class="flexSpacer"></div>
<div class="verticalFlex">
<div id="termCount" style="color:black;"></div>
<div style="margin-bottom: 10px; color:black;">Total Term and Definition Pairs</div>
</div>
<div class="flexSpacer"></div>
<div style="width: 100%;">
<div class="studysheetInfoPanel" style="color:black;">
<div>Last Modified: </div>
<div id="lastModified">~</div>
</div>
<div class="studysheetInfoPanel" style="border-top: none; color:black;">
<div>Created: </div>
<div id="created">~</div>
</div>
<div class="studysheetInfoPanel" style="border-top: none; color:black;">
<div>Created By: </div>
<div id="createdBy">~</div>
</div>
</div>
<div class="flexSpacer"></div>
<div class="horizontalFlex" style="width: 100%;">
<div class="flexSpacer"></div>
<div class="studysheetOption verticalFlex newbutton" style="cursor:pointer;" onclick="goToSSPage()">
Study
</div>
<div class="flexSpacer"></div>
<div class="studysheetOption verticalFlex newbutton" style="cursor:pointer;" onclick="showDeletePopup()">
Delete
</div>
<div class="flexSpacer"></div>
</div>
<div class="flexSpacer"></div>
</div>
</div>
</div>
</div>
<!--
<div id="betaBlocker" class="popupContainer" style="display:flex; opacity:100; pointer-events: all;">
<div class="verticalFlex centerFlex lightGlow centerText popup">
<img src="assets/logos/FullLangLogo.png" style="height:10vh; margin: 10px;" alt='Lang Logo'>
<div style="margin-top: 10px; color:red;">You are on <strong>beta.langstudy.tech</strong></div>
<div style="margin-top: 10px;">This version of Lang will not be as stable as normal Lang. If you need reliability, please go to https://langstudy.tech</div>
<div style="margin-top: 10px;">Press OK if you wish to proceed to Lang Beta.</div>
<div class="button buttonHoverDark horizontalFlex centerFlex" style="width: 25%; margin-bottom: 0; background-color:red;" onclick="hideElement(document.getElementById('betaBlocker'))">Ok</div>
<div class="button buttonHoverDark horizontalFlex centerFlex" style="width: 25%;" onclick="window.location.href='https://langstudy.tech'">Go to Stable</div>
<div style="font-size: 10px;">While all account activity should sync between Lang versions, Lye Software is not accountable for any loss of data as a result of using Lang Beta.</div>
</div>
</div> -->
<div class="createStudysheetOverlay absolute noverticalshow" onclick="window.location.href='creator.html'" style="z-index: 900;">
<img src="assets/icons/Lang Edit Icon.svg" style="z-index: 900; position:absolute; right:0; bottom:0; height:10vh; cursor: pointer;" alt='Edit'></img>
</div>
<div id="feedbackUI" class="absolute noverticalshow" style="bottom:0; left:0; z-index: 900;">
<div id="feedbackUIInputContainer" class="lightGlow verticalFlex whitebackdrop" style="width: 350px; margin: 20px; margin-bottom: 0px; z-index: 1000; border-radius: 25px; padding: 15px; box-sizing: border-box">
<div style="background-color: var(--primary-dark); color: var(--primary-light); float: right; text-align: left; padding: 10px; border-radius: 20px;">Have any feedback or suggestions for Lang? Send us a message here!</div>
<div class="horizontalFlex" style="width:100%;">
<input id="feedbackInput" style="font-size: 15px; font-family: 'Poppins' sans-serif; width: 100%; height: 50px; border-top-left-radius: 20px; border-bottom-left-radius: 20px; border: none; margin-top: 10px; padding: 5px;" placeholder="Enter your issue here">
<button onclick="sendFeedback()" style="height: 50px; width: 25%; margin: 0; margin-top: 10px; padding: 0; border: 0; background-color: white; border-top-right-radius: 25px; border-bottom-right-radius: 25px; font-family: 'Poppins' sans-serif;">Send</button>
</div>
</div>
<svg style="stroke:white; fill:white;" height="12vh" version="1.1" viewBox="0 0 700 700" xmlns="http://www.w3.org/2000/svg">
<path d="m466.67 93.332h-233.34c-18.562 0-36.367 7.375-49.496 20.504-13.129 13.129-20.504 30.934-20.504 49.496v186.67c0 18.566 7.375 36.371 20.504 49.496 13.129 13.129 30.934 20.504 49.496 20.504v60.336c-0.015625 6.2266 2.457 12.203 6.875 16.594 4.4141 4.3906 10.402 6.8359 16.629 6.7852 6.1484-0.003906 12.035-2.4844 16.328-6.8789l76.836-76.836h116.67c18.562 0 36.367-7.375 49.496-20.504 13.129-13.125 20.504-30.93 20.504-49.496v-186.67c0-18.562-7.375-36.367-20.504-49.496-13.129-13.129-30.934-20.504-49.496-20.504zm-87.5 239.17c0 7.7344-3.0742 15.152-8.543 20.625-5.4727 5.4688-12.891 8.543-20.625 8.543s-15.152-3.0742-20.625-8.543c-5.4688-5.4727-8.543-12.891-8.543-20.625s3.0742-15.152 8.543-20.625c5.4727-5.4688 12.891-8.543 20.625-8.543s15.152 3.0742 20.625 8.543c5.4688 5.4727 8.543 12.891 8.543 20.625zm-5.8359-145.83v70c0 8.3359-4.4453 16.039-11.664 20.207s-16.117 4.168-23.336 0-11.664-11.871-11.664-20.207v-70c0-8.3359 4.4453-16.039 11.664-20.207 7.2188-4.168 16.117-4.168 23.336 0 7.2188 4.168 11.664 11.871 11.664 20.207z"/>
</svg>
</div>
<div class="popupContainer" id="notificationPopup">
<div class="popup" style="width:700px; max-width: 90vw;">
<img src="assets/icons/closeCircle.svg" style="height:30px; cursor:pointer;" onclick="hideElement(document.getElementById('notificationPopup'))">
<div style="overflow-y:scroll; height:400px; border-radius: 25px;">
<div class="horizonalFlex centerFlex" style="display:flex; margin:10px;">
<img src="assets/icons/notifications.png" style="height:5vh;">
</div>
<h2 style="text-align: center;font-size: 30px; margin: 10px;">Notifications</h2>
<div class="notifBox">
<h3>New Train Features!</h3>
<p>Train has been upgraded: Now your progress is saved! Additionally, error complaints were addressed and have been fixed.</i></p>
</div>
<div class="notifBox">
<h3>Flashcards fixed!</h3>
<p>Flashcards has been updated to fix some errors with rapid movement through cards. Also, it has a pretty animation now!</i></p>
</div>
<div class="notifBox">
<h3>December is here!</h3>
<p>Lang's background has once again been updated to match the December timeframe. Enjoy the snow, and good luck on finals!<br><br><i>If you do not like the snow, it causes performance issues, or you live in a place where it is not winter right now, feel free to disable the backgrounds in settings.</i></p>
</div>
<div class="notifBox">
<h3>Changes coming soon.</h3>
<p>I thought we'd give you a heads up for some new things we are working on for Lang:<br><br><strong>Practice Test Styles</strong>- Make a practice test in the style of an AP FRQ, MCQ, or anything you can think of!</p>
</div>
<div class="notifBox">
<h3>We're working on it!</h3>
<p>Huge thank-yous to everyone using Lang and reporting errors in the bug / feedback reporter. We see your messages and are working on them. Train's patch has already rolled out and Practice Test is getting upgrades soon. New features are on their way!</p>
</div>
<div class="notifBox">
<h3>Thank you for using Lang!</h3>
<p>Thank you for signing up to Lang! Your support allows us to continue providing this service free for all.</p>
</div>
</div>
</div>
</div>
</body>
<script src="javascript/popup.js"></script>
<script>
const amountOfNotifications = 9;
Notification.checkIfUnreads();
function firstSignIn() {
window.location.href="onboarding-new.html";
}
function enableSnow() {
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
//link.href = 'css/snow.css';
// link.href = 'css/fireflies.css';
//link.href='css/leaves.css';
link.href='css/springleaves.css'
document.getElementsByTagName('HEAD')[0].appendChild(link);
var container = document.createElement("div");
container.classList.add("snowflakeContainer");
container.classList.add("leaves");
container.id="leaves"
document.body.appendChild(container);
for (var i = 0; i < 40; i++) {
var snowflake = document.createElement("i");
snowflake.classList.add("snowflake");
// snowflake.classList.add("firefly");
container.appendChild(snowflake);
}
}
function openNotifs(){
window.localStorage.setItem("notifs", amountOfNotifications);
document.getElementById("notif").className = "notif";
showElement(document.getElementById('notificationPopup'))
}
// if localstorage tag japan is set to true
if (window.localStorage.getItem("japan") == "true") {
/*--leaf-color-1: #309900;
--leaf-color-2: #005600;
--leaf-color-3: #309900;
--leaf-color-4: #8a4e0a;
--leaf-color-5: #990;
--leaf-color-6: #564500;*/
colors = ["#FFC0CB", "#FF69B4", "#FF1493", "#DB7093", "#C71585", "#FF1493"];
for (var i = 1; i < 7; i++) {
document.documentElement.style.setProperty(`--leaf-color-${i}`, colors[i-1]);
}
}
</script>
</html>
<!-- Copyright © 2024 Lye Software, Inc.®. All rights reserved. Lang is intellectual property of Nate Vemuri.
Lang and Lang Study are copyrights of Lye Software, Inc. Lye Software, Inc. has a royalty-free license to the Lang book logo.
Lye, Lye Software, and all Lye Software iconography are copyrights of Lye Software, Inc. -->