-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
702 lines (684 loc) · 36.7 KB
/
index.html
File metadata and controls
702 lines (684 loc) · 36.7 KB
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
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title class="pageTitle">Elza Browser</title>
<title>Elza Browser</title>
<meta name="title" content="Elza Browser">
<meta name="description" content="Private, fast and minimal web browser based on electron with builtin tor.">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://elzabrowser.com/">
<meta property="og:title" content="Elza Incognito Web Browser">
<meta property="og:description" content="Fast, Private & Minimal">
<meta property="og:image" content="https://elzabrowser.com/assets/icon-meta.png">
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@elzabrowser">
<meta name="twitter:url" content="https://elzabrowser.com/">
<meta name="twitter:image" content="https://elzabrowser.com/assets/icon-meta.png">
<meta name="twitter:title" content="Elza Incognito Web Browser" />
<meta name="twitter:description" content="Fast, Private & Minimal">
<meta name="twitter:app:country" content="IN">
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SM53C0V28P"></script>
<link rel="shortcut icon" href="./assets/elza-circle.webp">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500&display=swap">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="./assets/styles/main.css">
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-SM53C0V28P');
$(function ()
{
$('[data-toggle="tooltip"]').tooltip()
})
</script>
</head>
<body>
<div class="imageWrapper">
<div class="headerBackground">
<div class="contain">
<header>
<div class="logo">
<div class="appIconShadow">
<svg width="0" height="0">
<defs>
<clippath id="shape">
<path id="shape" class="cls-1"
d="M6181.23,233.709v-1.792c0-.5-0.02-1-0.02-1.523a24.257,24.257,0,0,0-.28-3.3,11.207,11.207,0,0,0-1.04-3.132,10.683,10.683,0,0,0-1.95-2.679,10.384,10.384,0,0,0-2.68-1.943,10.806,10.806,0,0,0-3.13-1.038,19.588,19.588,0,0,0-3.3-.285c-0.5-.017-1-0.017-1.52-0.017h-22.39c-0.51,0-1.01.017-1.53,0.017a24.041,24.041,0,0,0-3.3.285,11.009,11.009,0,0,0-3.13,1.038,10.491,10.491,0,0,0-4.62,4.622,10.893,10.893,0,0,0-1.04,3.132,19.2,19.2,0,0,0-.28,3.3c-0.02.5-.02,1-0.02,1.523v22.392c0,0.5.02,1,.02,1.524a24.257,24.257,0,0,0,.28,3.3,10.9,10.9,0,0,0,1.04,3.132,10.491,10.491,0,0,0,4.62,4.622,11.04,11.04,0,0,0,3.13,1.038,19.891,19.891,0,0,0,3.3.285c0.51,0.017,1.01.017,1.53,0.017h22.39c0.5,0,1-.017,1.52-0.017a24.221,24.221,0,0,0,3.3-.285,10.836,10.836,0,0,0,3.13-1.038,10.408,10.408,0,0,0,2.68-1.943,10.683,10.683,0,0,0,1.95-2.679,11.217,11.217,0,0,0,1.04-3.132,20.257,20.257,0,0,0,.28-3.3c0.02-.5.02-1,0.02-1.524v-20.6h0Z"
transform="translate(-6131 -218)"></path>
</clippath>
</defs>
</svg>
<img class="headerIcon" src="./assets/icon.png">
<div class="divider"></div>
</div>
<p class="headerName">Elza Browser</p>
</div>
<!-- <nav class="scroll">
<ul>
<li><a href=""
target="_self">What's New</a></li>
<li><a href="">Press Kit</a></li>
</ul>
</nav> -->
</header>
<div class="iphonePreview">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 0 0" style="position: absolute;">
<clippath id="screenMask" clipPathUnits="objectBoundingBox" transform="scale(0.00257, 0.00119)">
<path
d="M6490.24,1234.36H6216.28c-2.57,0-10.55-.07-12.07-0.07a87.524,87.524,0,0,1-12-1.03,40.051,40.051,0,0,1-11.4-3.79,38.315,38.315,0,0,1-16.82-16.84,39.948,39.948,0,0,1-3.78-11.42,72.257,72.257,0,0,1-1.04-12.02c-0.06-1.83-.06-5.56-0.06-5.56V452.125h0s0.06-11.391.06-12.086a87.9,87.9,0,0,1,1.04-12.025,39.843,39.843,0,0,1,3.78-11.413,38.283,38.283,0,0,1,16.82-16.847,39.762,39.762,0,0,1,11.4-3.785,71.909,71.909,0,0,1,12-1.037c16.99-.567,36.32-0.061,34.51-0.061,5.02,0,6.5,3.439,6.63,6.962a35.611,35.611,0,0,0,1.2,8.156,21.326,21.326,0,0,0,19.18,15.592c2.28,0.192,6.78.355,6.78,0.355H6433.7s4.5-.059,6.79-0.251a21.348,21.348,0,0,0,19.18-15.591,35.582,35.582,0,0,0,1.19-8.154c0.13-3.523,1.61-6.962,6.64-6.962-1.81,0,17.52-.5,34.5.061a71.923,71.923,0,0,1,12.01,1.038,39.832,39.832,0,0,1,11.4,3.784,38.283,38.283,0,0,1,16.82,16.844,40.153,40.153,0,0,1,3.78,11.413,87.844,87.844,0,0,1,1.03,12.023c0,0.695.06,12.084,0.06,12.084h0V1183.64s0,3.72-.06,5.55a72.366,72.366,0,0,1-1.03,12.03,40.2,40.2,0,0,1-3.78,11.41,38.315,38.315,0,0,1-16.82,16.84,40.155,40.155,0,0,1-11.4,3.79,87.669,87.669,0,0,1-12.01,1.03c-1.52,0-9.5.07-12.07,0.07"
transform="translate(-6159.12 -394.656)"></path>
</clippath>
</svg>
<div class="videoContainer hidden">
<video class="screenvideo" autoplay="autoplay" controls="controls">
</video>
</div>
<img class="iphoneScreen" src="./assets/elza.webp" alt="">
</div>
<div class="appInfo text-center">
<div class="appIconShadow ">
<svg width="0" height="0">
<defs>
<clippath id="shape120">
<path id="shape" class="cls-1"
d="M6821,495.533v-4.281c0-1.2-.04-2.4-0.04-3.642a57.7,57.7,0,0,0-.68-7.882,26.144,26.144,0,0,0-2.48-7.483,25.115,25.115,0,0,0-11.04-11.044,26.118,26.118,0,0,0-7.49-2.481,47.28,47.28,0,0,0-7.88-.68c-1.2-.04-2.4-0.04-3.64-0.04h-53.5c-1.2,0-2.4.04-3.64,0.04a57.813,57.813,0,0,0-7.88.68,26.323,26.323,0,0,0-7.49,2.481,25.115,25.115,0,0,0-11.04,11.044,26.144,26.144,0,0,0-2.48,7.483,47.313,47.313,0,0,0-.68,7.882c-0.04,1.2-.04,2.4-0.04,3.642v53.5c0,1.2.04,2.4,0.04,3.641a57.7,57.7,0,0,0,.68,7.883,26.137,26.137,0,0,0,2.48,7.482,25.115,25.115,0,0,0,11.04,11.044,26.261,26.261,0,0,0,7.49,2.481,47.28,47.28,0,0,0,7.88.68c1.2,0.04,2.4.04,3.64,0.04h53.5c1.2,0,2.4-.04,3.64-0.04a57.654,57.654,0,0,0,7.88-.68,26.057,26.057,0,0,0,7.49-2.481,25.115,25.115,0,0,0,11.04-11.044,26.137,26.137,0,0,0,2.48-7.482,47.316,47.316,0,0,0,.68-7.883c0.04-1.2.04-2.4,0.04-3.641V495.533h0Z"
transform="translate(-6701 -458)" filter="url(#f1)"></path>
</clippath>
</defs>
</svg>
<img class="appIconLarge" src="./assets/icon.webp">
</div>
<div class="appNamePriceContainer">
<h1 class="appName">Elza Browser<sup style="font-size: 12px;font-weight: 300;"><i> Beta</i></sup></h1>
<h2 class="appPrice">Free for Windows, Mac & Linux</h2>
</div>
<div class="appDescriptionContainer">
<p class="appDescription mb-0">
No Nonsense Web Browser
</p>
<p class="earlyaccess pb-5 mb-2" style="font-size: 14px;letter-spacing: 1.2px;">
Fast,
Private & Minimal</p>
</div>
<div id="app" v-cloak class="mt-0 pt-0 w-100">
<div v-if="currentComponent=='invite'">
<p class="earlyaccess">
</p>
<div class="search-container" v-bind:class="{ emailerror: failemailvalidation }">
<input v-model="invitecode" @input="checkinput()" type="text" class="search-box"
placeholder="INVITE CODE"
style="font-weight: 600;letter-spacing: 4px;text-transform: uppercase;">
<button v-on:click="checkinvitecode()" class="search-button">
<i v-if="serverdelay" class="spinner-border text-light"></i>
<span v-else>GET ELZA</span></button>
</div>
<div>
<p class="shortlink pt-4" v-on:click="currentComponent='waitlist'">
Reserve your spot on waiting list!
</p>
</div>
</div>
<div v-if="currentComponent=='waitlist'">
<p v-if="!waitlistjoined" class="earlyaccess">
early access
</p>
<div v-if="!waitlistjoined" class="search-container"
v-bind:class="{ emailerror: failemailvalidation }">
<input v-model="email" type="text" class="search-box" placeholder="Your best email...">
<button v-on:click="joinwaitlist" class="search-button"><i v-if="serverdelay"
class="spinner-border text-light"></i>
<span v-else>JOIN</span></button>
</div>
<div>
<p v-if="waitlistjoined" class="earlyaccess">
<span>Congrats! <br>You have joined the waiting list.</span>
</p>
</div>
<div v-if="!waitlistjoined">
<p class="shortlink pt-4" v-on:click="currentComponent='invite'">
Do you have an invite code?
</p>
</div>
</div>
<div v-if="currentComponent=='downloads'" class="text-center">
<a v-if="dlbuttonvisible" type="button" class="dlbutton btn btn-secondary btn-lg"
v-bind:href="downloadLink.auto" target="_self"> <i class="downloadIcon"
v-bind:class="downloadIcon">
</i> {{downloadText}}</a>
<p class="earlyaccess pt-5">
AVAILABLE FOR
</p>
<a v-bind:href="downloadLink.win" target="_self"
class="btn btn-dark download border-0 bg-transparent"><i class="fab fa-windows"
style="font-size: 30px;">
<p class="os">
WINDOWS
</p>
</i>
</a>
<a v-bind:href="downloadLink.lin" target="_self"
class="btn btn-dark download border-0 bg-transparent"><i v-bind:class="getDistroIcon()"
style="font-size: 30px;">
<p class="os">
LINUX
</p>
</i>
</a>
<a v-bind:href="downloadLink.mac" target="_self"
class="btn btn-dark download border-0 bg-transparent" data-toggle="tooltip"
title="Mac version is currently experimental."><i class="fab fa-apple"
style="font-size: 30px; color: grey;">
<p class="os">
MAC OS
</p>
</i>
</a>
<p class="earlyaccess pt-5">
</p>
</div>
<div v-if="currentComponent=='counter'">
<div class="countdown justify-content-center">
<div class="block">
<p class="digit">{{ days | two_digits }}</p>
<p class="text">Days</p>
</div>
<div class="block">
<p class="digit">{{ hours | two_digits }}</p>
<p class="text">Hours</p>
</div>
<div class="block">
<p class="digit">{{ minutes | two_digits }}</p>
<p class="text">Minutes</p>
</div>
<div class="block">
<p class="digit">{{ seconds | two_digits }}</p>
<p class="text">Seconds</p>
</div>
</div>
</div>
</div>
</div>
<div class="features">
<div class="feature">
<div>
<span class="fa-stack fa-1x">
<i class="iconBack fas fa-circle fa-stack-2x"></i>
<i class="iconTop fas fa-heart fa-stack-1x"></i>
</span>
</div>
<div class="featureText">
<h3>
Open Source
</h3>
<p>
Source code of Elza Browser will be available on Github under the GPvL3 license.
</p>
</div>
</div>
<div class="feature">
<div>
<span class="fa-stack fa-1x">
<i class="iconBack fas fa-circle fa-stack-2x"></i>
<i class="iconTop fas fa-mask fa-stack-1x"></i>
</span>
</div>
<div class="featureText">
<h3>
Private Browsing
</h3>
<p>
Browse Incognito 24/7 leaving no trace behind for others to steal.
</p>
</div>
</div>
<div class="feature">
<div>
<span class="fa-stack fa-1x">
<i class="iconBack fas fa-circle fa-stack-2x"></i>
<i class="iconTop fas fa-ghost fa-stack-1x"></i>
</span>
</div>
<div class="featureText">
<h3>
Onion Routing
</h3>
<p>
Inbuilt integration provides multi-layered encrypted browsing to beat surveillance. </p>
</div>
</div>
<div class="feature">
<div>
<span class="fa-stack fa-1x">
<i class="iconBack fas fa-circle fa-stack-2x"></i>
<i class="iconTop fas fa-user-secret fa-stack-1x"></i>
</span>
</div>
<div class="featureText">
<h3>
Privacy
</h3>
<p> We do not ourselves or let others collect, view, store or process any of your data. </p>
</div>
</div>
<div class="feature">
<div>
<span class="fa-stack fa-1x">
<i class="iconBack fas fa-circle fa-stack-2x"></i>
<i class="iconTop fas fa-user-shield fa-stack-1x"></i>
</span>
</div>
<div class="featureText">
<h3>
Security
</h3>
<p>
The browser has been sandboxed with no access to outside components.
</p>
</div>
</div>
<div class="feature">
<div>
<span class="fa-stack fa-1x">
<i class="iconBack fas fa-circle fa-stack-2x"></i>
<i class="iconTop fas fa-ban fa-stack-1x"></i>
</span>
</div>
<div class="featureText">
<h3>
Adblock
</h3>
<p>
Efficient blocking of ads, trackers, and annoyances.
</p>
</div>
</div>
<div class="feature">
<div>
<span class="fa-stack fa-1x">
<i class="iconBack fas fa-circle fa-stack-2x"></i>
<i class="iconTop fas fa-tachometer-alt fa-stack-1x"></i>
</span>
</div>
<div class="featureText">
<h3>
Performance
</h3>
<p>
High performance with top benchmark scores.
</p>
</div>
</div>
<div class="feature">
<div>
<span class="fa-stack fa-1x">
<i class="iconBack fas fa-circle fa-stack-2x"></i>
<i class="iconTop fas fa-drafting-compass fa-stack-1x"></i>
</span>
</div>
<div class="featureText">
<h3>
Design
</h3>
<p>
We intend to have a minimal design which would also give space for creativity as we go
on. </p>
</div>
</div>
<div id="accordion" class="w-100 m-5 p-5">
<div class="card border-0" href="#whyelza">
<a class="card-header border-0" href="#whyelza">
<a class="card-title text-dark" data-toggle="collapse" href="#whyelza">
Why Elza Browser? <i class="fas fa-angle-down float-right"></i>
</a>
</a>
<div id="whyelza" class="collapse" data-parent="#accordion">
<div class="card-body">
Elza is among the fastest to load web contents providing the best (for you) in the
industry privacy policy. Its built to be on always incognito with even tor
availability.
</div>
</div>
</div>
<div class="card border-0">
<a class="card-header border-0" href="#whenelza">
<a class="collapsed card-link text-dark" data-toggle="collapse" href="#whenelza">
When should I use Elza? <i class="fas fa-angle-down float-right"></i>
</a>
</a>
<div id="whenelza" class="collapse show" data-parent="#accordion">
<div class="card-body">
It's best to use as an incognito browser to keep your activities really private.
Elza is always on incognito with an option to turn on Tor which runs much faster
than even the Tor Browser.
</div>
</div>
</div>
<div class="card border-0">
<a class="card-header border-0" href="#isfree">
<a class="collapsed card-link text-dark" data-toggle="collapse" href="#isfree">
Is it free? <i class="fas fa-angle-down float-right"></i>
</a>
</a>
<div id="isfree" class="collapse" data-parent="#accordion">
<div class="card-body">
It's completely free in the current shape and form.
</div>
</div>
</div>
<div class="card border-0">
<a class="card-header border-0" href="#hiccup">
<a class="collapsed card-link text-dark" data-toggle="collapse" href="#hiccup">
Did you find any hiccup while downloading Elza? <i
class="fas fa-angle-down float-right"></i>
</a>
</a>
<div id="hiccup" class="collapse" data-parent="#accordion">
<div class="card-body">
We know, some might face issues in the installation. It's becasue we are yet to
purchase code signing certificates which facilitates smooth installation especially
for the Mac's and Windows. <a href="https://rzp.io/l/elzabrowser">You can play a
role here with your support</a>.
</div>
</div>
</div>
</div>
</div>
<footer>
<p class="footerText">Made in Kerala 🏖️ with 🔥 <span class="text-danger">❣</span>
</p>
<div class="footerIcons">
<a href="https://github.com/elzabrowser/elza">
<span class="fa-stack fa-1x">
<i class="socialIconBack fas fa-circle fa-stack-2x"></i>
<i class="socialIconTop fab fa-github fa-stack-1x"></i>
</span>
</a>
<a href="mailto:team@elzabrowser.com">
<span class="fa-stack fa-1x">
<i class="socialIconBack fas fa-circle fa-stack-2x"></i>
<i class="socialIconTop fas fa-envelope fa-stack-1x"></i>
</span>
</a>
</div>
<div class="footerLinks">
<a class="pl-2 pr-2" href="https://rzp.io/l/elzabrowser">Keep this
Project Alive</a>
<a class="pl-2 pr-2" href="./privacypolicy.html" target="_self">Privacy
Policy</a>
</div>
</footer>
</div>
</div>
</div>
<script>
var app = new Vue({
el: '#app',
data: {
currentComponent: "counter",
email: "",
date: "2021-01-01 00:00:00",
now: Math.trunc(new Date().getTime() / 1000),
invitecode: "",
serverdelay: false,
newcode: "",
waitlistjoined: false,
downloadLink: { win: "", lin: "", mac: "" },
failemailvalidation: false,
downloadText: "Download for Windows",
downloadIcon: "fab fa-windows",
dlbuttonvisible: true
},
created()
{
let uri = window.location.search.substring(1);
let params = new URLSearchParams(uri);
this.checkinvitecode(params.get("invitecode"))
let os = this.getOS()
if (os == "Windows")
{
this.downloadText = "Download for Windows"
this.downloadIcon = "fab fa-windows"
} else if (os == "Linux")
{
this.downloadText = "Download for Linux"
this.downloadIcon = this.getDistroIcon()
} else if (os == "Mac")
{
this.downloadText = "Download for Mac"
this.downloadIcon = "fab fa-apple"
} else
this.dlbuttonvisible = false
fetch('https://api.github.com/repos/elzabrowser/elza/releases/latest').then(stream => stream.json())
.then(data =>
{
this.downloadLink.win = data.assets.find(t => t.name.includes('Web')).browser_download_url
this.downloadLink.lin = data.assets.find(t => t.name.endsWith('.AppImage')).browser_download_url
this.downloadLink.mac = data.assets.find(t => t.name.endsWith('.dmg')).browser_download_url
let os = this.getOS()
if (os == "Windows")
{
this.downloadLink.auto = this.downloadLink.win
} else if (os == "Linux")
{
this.downloadLink.auto = this.downloadLink.lin
} else if (os == "Mac")
{
this.downloadLink.auto = this.downloadLink.mac
} else
{
this.downloadLink.auto = this.downloadLink.win
}
});
},
mounted()
{
this.currentComponent = 'downloads'
this.updateTime()
window.setInterval(() =>
{
this.updateTime()
}, 1000);
},
methods: {
updateTime()
{
this.now = Math.trunc(new Date().getTime() / 1000);
let diff = this.dateInMilliseconds - this.now
},
checkinvitecode: function (querycode)
{
if (this.currentComponent == 'counter')
if (querycode === undefined || querycode === null) return
else
this.invitecode = querycode
this.currentComponent = 'invite'
this.serverdelay = true
fetch('https://elza-invitecodes-api-e4ut767a4a-el.a.run.app/elza-apis/invite/?invitecode=' + this.invitecode)
.then(resp => resp.text()).then(text =>
{
if (text == 'false')
{
this.failemailvalidation = true
setTimeout(() =>
{
this.failemailvalidation = false
}, 3000);
}
else
{
this.newcode = text
this.currentComponent = 'downloads'
}
this.serverdelay = false
}).catch(error =>
{
this.failemailvalidation = true
this.serverdelay = false
setTimeout(() =>
{
this.failemailvalidation = false
}, 3000);
})
},
joinwaitlist: function ()
{
if (this.email == "")
{
this.failemailvalidation = true
setTimeout(() =>
{
this.failemailvalidation = false
}, 3000);
return
}
let s = new Date().toLocaleString();
let os = this.getOS()
let browser = this.getBrowser()
this.serverdelay = true
let url = 'https://elza-invitecodes-api-e4ut767a4a-el.a.run.app/elza-apis/waitlist/?email=' + this.email + '×tamp=' + s + '&browser=' + browser + '&os=' + os
fetch(url)
.then(stream => stream.text())
.then(data =>
{
this.serverdelay = false
console.log(data)
if (data == 'true')
{
this.waitlistjoined = true
} else
{
this.failemailvalidation = true
setTimeout(() =>
{
this.failemailvalidation = false
}, 3000);
}
})
.catch(error =>
{
this.failemailvalidation = true
setTimeout(() =>
{
this.failemailvalidation = false
}, 3000);
})
},
getBrowser: function ()
{
var test = function (regexp) { return regexp.test(window.navigator.userAgent) }
switch (true)
{
case test(/edg/i): return "Microsoft Edge";
case test(/trident/i): return "Microsoft Internet Explorer";
case test(/firefox|fxios/i): return "Mozilla Firefox";
case test(/opr\//i): return "Opera";
case test(/ucbrowser/i): return "UC Browser";
case test(/samsungbrowser/i): return "Samsung Browser";
case test(/chrome|chromium|crios/i): return "Google Chrome";
case test(/safari/i): return "Apple Safari";
default: return "Other";
}
},
getOS: function ()
{
var userAgent = window.navigator.userAgent,
platform = window.navigator.platform,
macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
iosPlatforms = ['iPhone', 'iPad', 'iPod'],
os = null;
if (macosPlatforms.indexOf(platform) !== -1)
{
os = 'Mac';
} else if (iosPlatforms.indexOf(platform) !== -1)
{
os = 'iOS';
} else if (windowsPlatforms.indexOf(platform) !== -1)
{
os = 'Windows';
} else if (/Android/.test(userAgent))
{
os = 'Android';
} else if (!os && /Linux/.test(platform))
{
os = 'Linux';
}
return os;
},
validateEmail: function (email)
{
if (this.blacklisted.some(v => this.email.includes(v))) { return false }
const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(String(email).toLowerCase());
},
getDistroIcon: function ()
{
if (window.navigator.userAgent.includes("Ubuntu")) return "fab fa-ubuntu"
if (window.navigator.userAgent.includes("Fedora")) return "fab fa-fedora"
if (window.navigator.userAgent.includes("SUSE")) return "fab fa-suse"
return "fab fa-linux"
},
data()
{
return {
now: Math.trunc(new Date().getTime() / 1000)
};
},
checkinput()
{
this.invitecode = this.invitecode.toUpperCase()
if (this.invitecode == 'ELZA') this.invitecode = 'ELZA-'
}
},
computed: {
dateInMilliseconds()
{
return Math.trunc(Date.parse(this.date) / 1000);
},
seconds()
{
return (this.dateInMilliseconds - this.now) % 60;
},
minutes()
{
return Math.trunc((this.dateInMilliseconds - this.now) / 60) % 60;
},
hours()
{
return Math.trunc((this.dateInMilliseconds - this.now) / 60 / 60) % 24;
},
days()
{
return Math.trunc((this.dateInMilliseconds - this.now) / 60 / 60 / 24);
}
},
filters: {
two_digits: function (value)
{
if (value < 0)
{
return '00';
}
if (value.toString().length <= 1)
{
return `0${value}`;
}
return value;
}
}
})
</script>
</body>
</html>