-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1793 lines (1789 loc) · 86.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
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
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang=en>
<head>
<meta charset=UTF-8>
<meta name=viewport content='width=device-width, initial-scale=1.0'>
<title>Nexus OS</title>
<link rel=icon href=https://icons.getbootstrap.com/assets/icons/box.svg>
<link href=https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css rel=stylesheet integrity=sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9 crossorigin=anonymous>
</head>
<style>
body {
background: #00b4ff;
color: #333;
font: 100% Lato, Arial, Sans Serif;
height: 100vh;
margin: 0;
padding: 0;
overflow-x: hidden;
}
#background-wrap {
bottom: 0;
left: 0;
position: fixed;
right: 0;
top: 0;
z-index: -1;
}
@-webkit-keyframes animateBubble {
0% {
margin-top: 1000px;
}
100% {
margin-top: -100%;
}
}
@-moz-keyframes animateBubble {
0% {
margin-top: 1000px;
}
100% {
margin-top: -100%;
}
}
@keyframes animateBubble {
0% {
margin-top: 1000px;
}
100% {
margin-top: -100%;
}
}
@-webkit-keyframes sideWays {
0% {
margin-left:0px;
}
100% {
margin-left:50px;
}
}
@-moz-keyframes sideWays {
0% {
margin-left:0px;
}
100% {
margin-left:50px;
}
}
@keyframes sideWays {
0% {
margin-left:0px;
}
100% {
margin-left:50px;
}
}
.x1 {
-webkit-animation: animateBubble 25s linear infinite, sideWays 2s ease-in-out infinite alternate;
-moz-animation: animateBubble 25s linear infinite, sideWays 2s ease-in-out infinite alternate;
animation: animateBubble 25s linear infinite, sideWays 2s ease-in-out infinite alternate;
left: -5%;
top: 5%;
-webkit-transform: scale(0.6);
-moz-transform: scale(0.6);
transform: scale(0.6);
}
.x2 {
-webkit-animation: animateBubble 20s linear infinite, sideWays 4s ease-in-out infinite alternate;
-moz-animation: animateBubble 20s linear infinite, sideWays 4s ease-in-out infinite alternate;
animation: animateBubble 20s linear infinite, sideWays 4s ease-in-out infinite alternate;
left: 5%;
top: 80%;
-webkit-transform: scale(0.4);
-moz-transform: scale(0.4);
transform: scale(0.4);
}
.x3 {
-webkit-animation: animateBubble 28s linear infinite, sideWays 2s ease-in-out infinite alternate;
-moz-animation: animateBubble 28s linear infinite, sideWays 2s ease-in-out infinite alternate;
animation: animateBubble 28s linear infinite, sideWays 2s ease-in-out infinite alternate;
left: 10%;
top: 40%;
-webkit-transform: scale(0.7);
-moz-transform: scale(0.7);
transform: scale(0.7);
}
.x4 {
-webkit-animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
-moz-animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
left: 20%;
top: 0;
-webkit-transform: scale(0.3);
-moz-transform: scale(0.3);
transform: scale(0.3);
}
.x5 {
-webkit-animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
-moz-animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
left: 30%;
top: 50%;
-webkit-transform: scale(0.5);
-moz-transform: scale(0.5);
transform: scale(0.5);
}
.x6 {
-webkit-animation: animateBubble 21s linear infinite, sideWays 2s ease-in-out infinite alternate;
-moz-animation: animateBubble 21s linear infinite, sideWays 2s ease-in-out infinite alternate;
animation: animateBubble 21s linear infinite, sideWays 2s ease-in-out infinite alternate;
left: 50%;
top: 0;
-webkit-transform: scale(0.8);
-moz-transform: scale(0.8);
transform: scale(0.8);
}
.x7 {
-webkit-animation: animateBubble 20s linear infinite, sideWays 2s ease-in-out infinite alternate;
-moz-animation: animateBubble 20s linear infinite, sideWays 2s ease-in-out infinite alternate;
animation: animateBubble 20s linear infinite, sideWays 2s ease-in-out infinite alternate;
left: 65%;
top: 70%;
-webkit-transform: scale(0.4);
-moz-transform: scale(0.4);
transform: scale(0.4);
}
.x8 {
-webkit-animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
-moz-animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
left: 80%;
top: 10%;
-webkit-transform: scale(0.3);
-moz-transform: scale(0.3);
transform: scale(0.3);
}
.x9 {
-webkit-animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
-moz-animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
left: 90%;
top: 50%;
-webkit-transform: scale(0.6);
-moz-transform: scale(0.6);
transform: scale(0.6);
}
.x10 {
-webkit-animation: animateBubble 26s linear infinite, sideWays 2s ease-in-out infinite alternate;
-moz-animation: animateBubble 26s linear infinite, sideWays 2s ease-in-out infinite alternate;
animation: animateBubble 26s linear infinite, sideWays 2s ease-in-out infinite alternate;
left: 80%;
top: 80%;
-webkit-transform: scale(0.3);
-moz-transform: scale(0.3);
transform: scale(0.3);
}
.bubble {
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
-webkit-box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2), inset 0px 10px 30px 5px rgba(255, 255, 255, 1);
-moz-box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2), inset 0px 10px 30px 5px rgba(255, 255, 255, 1);
box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2), inset 0px 10px 30px 5px rgba(255, 255, 255, 1);
height: 200px;
position: absolute;
width: 200px;
}
.bubble:after {
background: -moz-radial-gradient(center, ellipse cover, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 70%); /* FF3.6+ */
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(255,255,255,0.5)), color-stop(70%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
background: -webkit-radial-gradient(center, ellipse cover, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 70%); /* Chrome10+,Safari5.1+ */
background: -o-radial-gradient(center, ellipse cover, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 70%); /* Opera 12+ */
background: -ms-radial-gradient(center, ellipse cover, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 70%); /* IE10+ */
background: radial-gradient(ellipse at center, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0) 70%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80ffffff', endColorstr='#00ffffff',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
-webkit-box-shadow: inset 0 20px 30px rgba(255, 255, 255, 0.3);
-moz-box-shadow: inset 0 20px 30px rgba(255, 255, 255, 0.3);
box-shadow: inset 0 20px 30px rgba(255, 255, 255, 0.3);
content: "";
height: 180px;
left: 10px;
position: absolute;
width: 180px;
}
#flex-nav {
overflow: hidden;
display: flex;
}
#app {
opacity: 0.7;
}
body {
background-image: linear-gradient(to left, blue, #00ffff);
color: white;
font-family: Calibri;
height: 100%;
width: 100%;
overflow: hidden;
font-family: Arial, sans-serif;
background-size: cover;
}
button,.nav-link {
background: 0;
color: white;
border-color: none;
border-width: 0;
cursor: pointer;
}
tr,table {
cursor: pointer;
background: black;
color: white;
}
#loading {
background-color: white;
width: 100%;
height: 3px;
position: absolute;
top: 55px;
left: 0;
}
#slider {
width: 30px;
position: absolute;
top: 0;
place-items: center;
height: 100%;
opacity: 0.7;
background: #000072;
right: 0;
display: grid;
}
#slide-text,.sliding-text {
transform: rotate(-90deg);
}
#message {
position: absolute;
top: 50px;
left: 0;
height: 75%;
width: 100%;
place-items: center;
display: grid;
}
#app,#new-app {
position: absolute;
top: -50000px;
left: -50000px;
width: 80%;
height: 70%;
background-color: black;
border-radius: 10px;
border: 1px solid #ffffff;
overflow-x: auto;
overflow-y: auto;
cursor: move;
}
.win-com {
position: absolute;
right: 10px;
top: 10px;
}
#top-head {
position: absolute;
top: 10px;
left: 10px;
font-family: Arial;
}
#header {
position: absolute;
top: 0;
left: 0;
height: 20px;
width: 100%;
}
#main {
position: absolute;
top: 50px;
left: 0;
height: 75%;
width: 100%;
place-items: center;
overflow: auto;
}
textarea {
background: 0;
border-color: none;
color: white;
border-width: none;
width: 80%;
height: 50%;
font-family: Calibri;
font-size: 14px;
}
#applications_desktop {
position: absolute;
bottom: 5px;
left: 0;
width: 100%;
height: 30px;
place-items: center;
display: grid;
margin: 5px;
}
#cir-img {
width: 30px;
height: 30px;
border-radius: 15px;
background: 0;
cursor: pointer;
}
input {
background: 0;
opacity: 0.7;
color: white;
border-color: white;
border-radius: 50px;
height: 25px;
}
.overlay {
position: absolute;
top: -50000px;
left: -50000px;
width: 100%;
height: 100%;
background: 0;
place-items: center;
display: grid;
}
.dialog-box {
position: fixed;
top: 25%;
width: 95%;
height: 50%;
background: black;
border-radius: 30px;
display: block;
place-items: center;
opacity: 0.7;
}
.permission-button {
margin: 30px;
background: 0;
border-color: white;
border-width: 1px;
color: white;
border-radius: 5px;
}
#settings {
position: absolute;
top: -50000px;
left: -50000px;
width: 100%;
height: 100%;
display: grid;
place-items: center;
}
#win-settings {
position: absolute;
background: black;
color: white;
border-radius: 30px;
width: 80%;
height: 50%;
top: 25%;
display: grid;
place-items: center;
opacity: 0.7;
}
#flotter {
width: 100%;
height: 16px;
position: absolute;
left: 0;
top: 53px;
place-items: center;
display: grid;
margin: 5px;
}
code{
background: white;
color: black;
border-color: black;
border-width: 1px;
border-radius: 3px;
}
#right-click{
position: absolute;
top: -50000px;
left: -50000px;
width: 150px;
height: fit-content;
background-color: black;
opacity: 0.7;
border-radius: 10px;
border-color: white;
border-width: 1px;
}
#lockscreen{
background-image: linear-gradient(to right, cyan, blue);
color: white;
position: absolute;
top: -50000px;
left: -50000px;
width: 100%;
height: 100%;
display: grid;
place-items: center;
}
@keyframes lockopener {
0%{
top:0;
left: 0;
}
100%{
top: -50000px;
left: 0;
}
}
</style>
<body>
<nav class='navbar navbar-expand-lg' data-bs-theme=dark>
<div class=container-fluid>
<a class=navbar-brand href>Nexus OS</a>
<button class=navbar-toggler type=button data-bs-toggle=collapse data-bs-target=#navbarNav aria-controls=navbarNav aria-expanded=false aria-label='Toggle navigation'>
<span class=navbar-toggler-icon></span>
</button>
<div class='collapse navbar-collapse' id=navbarNav>
<ul class=navbar-nav>
<li class=nav-item>
<a class='nav-link active' id="ip">IP: --</a>
</li>
<li class=nav-item>
<a class='nav-link active' id=cpu-load></a>
</li>
<li class=nav-item>
<a class='nav-link active' id=memory-remaining></a>
</li>
<li class=nav-item>
<a class='nav-link active' id=Storage></a>
</li>
</ul>
</div>
</div>
</nav>
<div id=loading></div>
<div id=message>
<div id=new>
<h1>
<i class='bi bi-box'></i>
<svg xmlns=http://www.w3.org/2000/svg width=50 height=50 fill=currentColor class='bi bi-box' viewBox='0 0 16 16'>
<path d='M8.186 1.113a.5.5 0 0 0-.372 0L1.846 3.5 8 5.961 14.154 3.5 8.186 1.113zM15 4.239l-6.5 2.6v7.922l6.5-2.6V4.24zM7.5 14.762V6.838L1 4.239v7.923l6.5 2.6zM7.443.184a1.5 1.5 0 0 1 1.114 0l7.129 2.852A.5.5 0 0 1 16 3.5v8.662a1 1 0 0 1-.629.928l-7.185 2.874a.5.5 0 0 1-.372 0L.63 13.09a1 1 0 0 1-.63-.928V3.5a.5.5 0 0 1 .314-.464L7.443.184z'/>
</svg>
Nexus OS
</h1>
<p>Virtual Operating System for everyone</p>
</div>
</div>
<div id=app>
<div id=hearder>
<b id=top-head class=Win-title_Nexus>Nexus OS - App</b>
<div class=win-com>
<button onclick="min_win()">_</button>
<button onclick="expand_win()">
<i class="bi bi-square"></i>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-square" viewBox="0 0 16 16">
<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>
</svg>
</button>
<button onclick=closeapp()>X</button>
</div>
</div>
<div id=main>
<b>Empty...</b>
</div>
</div>
<div id=new-app>
<div id=hearder>
<b id=top-head>Phonix Browser</b>
<div class=win-com>
<button onclick="min_browser()">_</button>
<button onclick="expand_browser()">
<i class="bi bi-square"></i>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-square" viewBox="0 0 16 16">
<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>
</svg>
</button>
<button onclick=closebrowser()>X</button>
</div>
</div>
<div id=main>
<iframe id=google src='https://www.google.com/search?igu=1' width=90% height=75% frameborder=0 style=position:absolute;left:15px;top:0></iframe>
<div style=position:absolute;left:10px;bottom:55px>
<button onclick=googlehomepage()>
<i class="bi bi-house"></i>
<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 fill=currentColor class="bi bi-house" viewBox="0 0 16 16">
<path d="M8.707 1.5a1 1 0 0 0-1.414 0L.646 8.146a.5.5 0 0 0 .708.708L2 8.207V13.5A1.5 1.5 0 0 0 3.5 15h9a1.5 1.5 0 0 0 1.5-1.5V8.207l.646.647a.5.5 0 0 0 .708-.708L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.707 1.5ZM13 7.207V13.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V7.207l5-5 5 5Z"/>
</svg>
</button>
<input type=url id=urlforiframe placeholder='Search URL here...'>
<button onclick=searchurl()>
<i class="bi bi-search"></i>
<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 fill=currentColor class="bi bi-search" viewBox="0 0 16 16">
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>
</svg>
</button>
</div>
</div>
</div>
<div id=applications_desktop>
<div>
<button onclick=openapp()>
<i class='bi bi-box'></i>
<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 fill=currentColor class='bi bi-box' viewBox='0 0 16 16'>
<path d='M8.186 1.113a.5.5 0 0 0-.372 0L1.846 3.5 8 5.961 14.154 3.5 8.186 1.113zM15 4.239l-6.5 2.6v7.922l6.5-2.6V4.24zM7.5 14.762V6.838L1 4.239v7.923l6.5 2.6zM7.443.184a1.5 1.5 0 0 1 1.114 0l7.129 2.852A.5.5 0 0 1 16 3.5v8.662a1 1 0 0 1-.629.928l-7.185 2.874a.5.5 0 0 1-.372 0L.63 13.09a1 1 0 0 1-.63-.928V3.5a.5.5 0 0 1 .314-.464L7.443.184z'/>
</svg>
</button>
<button onclick=Browser() id=cir-img>
<i class='bi bi-search'></i>
<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 fill=currentColor class='bi bi-search' viewBox='0 0 16 16'>
<path d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/>
</svg>
</button>
<button onclick=terminal() id=cir-img>
<i class='bi bi-terminal'></i>
<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 fill=currentColor class='bi bi-terminal' viewBox='0 0 16 16'>
<path d='M6 9a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 9zM3.854 4.146a.5.5 0 1 0-.708.708L4.793 6.5 3.146 8.146a.5.5 0 1 0 .708.708l2-2a.5.5 0 0 0 0-.708l-2-2z'/>
<path d='M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2zm12 1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h12z'/>
</svg>
</button>
<button onclick=NovaStreamIDE() id=cir-img>
<i class='bi bi-code-square'></i>
<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 fill=currentColor class='bi bi-code-square' viewBox='0 0 16 16'>
<path d='M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z'/>
<path d='M6.854 4.646a.5.5 0 0 1 0 .708L4.207 8l2.647 2.646a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 0 1 .708 0zm2.292 0a.5.5 0 0 0 0 .708L11.793 8l-2.647 2.646a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708 0z'/>
</svg>
</button>
<button onclick=ImageIdentifier()>
<i class='bi bi-image'></i>
<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 fill=currentColor class='bi bi-image' viewBox='0 0 16 16'>
<path d='M6.002 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/>
<path d='M2.002 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2h-12zm12 1a1 1 0 0 1 1 1v6.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062L1.002 12V3a1 1 0 0 1 1-1h12z'/>
</svg>
</button>
<button onclick="batterydetails()">
<i class='bi bi-battery-full'></i>
<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 fill=currentColor class='bi bi-battery-full' viewBox='0 0 16 16'>
<path d='M2 6h10v4H2V6z'/>
<path d='M2 4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H2zm10 1a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h10zm4 3a1.5 1.5 0 0 1-1.5 1.5v-3A1.5 1.5 0 0 1 16 8z'/>
</svg>
<b id=percentage></b>
</button>
<button onclick="date()">
<p id="datetime"></p>
</button>
<button id="user-info" onclick="signInWithGoogle()">
<i class="bi bi-person-circle"></i>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-circle" viewBox="0 0 16 16">
<path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/>
<path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"/>
</svg>
</button>
</div>
</div>
<div id=slider>
<button id=slide-text onclick=recent()>
<i class='bi bi-square'></i>
<svg xmlns=http://www.w3.org/2000/svg width=15 height=15 fill=currentColor class='bi bi-square' viewBox='0 0 16 16'>
<path d='M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z'/>
</svg>
</button>
<button id=slide-text onclick=home()>
<i class='bi bi-circle'></i>
<svg xmlns=http://www.w3.org/2000/svg width=15 height=15 fill=currentColor class='bi bi-circle' viewBox='0 0 16 16'>
<path d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/>
</svg>
</button>
<button id=slide-text onclick=backscreen()>
<i class='bi bi-caret-left'></i>
<svg xmlns=http://www.w3.org/2000/svg width=18 height=18 fill=currentColor class='bi bi-caret-left' viewBox='0 0 16 16'>
<path d='M10 12.796V3.204L4.519 8 10 12.796zm-.659.753-5.48-4.796a1 1 0 0 1 0-1.506l5.48-4.796A1 1 0 0 1 11 3.204v9.592a1 1 0 0 1-1.659.753z'/>
</svg>
</button>
</div>
<div id=settings>
<div id=win-settings>
<div style=position:absolute;top:10px;right:10px>
<button onclick=closesettings()>x</button>
</div>
<div>
<button onclick=showPermissionDialog()>Request Permissions</button>
<button onclick=changewallpaper()>Change wallpaper</button>
<button onclick=cleardata()>Clear Data</button>
</div>
</div>
</div>
<div class=overlay id=permissionDialog>
<div class=dialog-box>
<h3 style=margin:15px>Required Permissions</h3>
<b>Click to Allow permissions</b>
<button class=permission-button onclick=requestCameraPermission()>Camera</button>
<button class=permission-button onclick=requestMicrophonePermission()>Microphone</button>
<button class=permission-button onclick=closePermissionDialog()>Close</button>
</div>
</div>
<div id=flotter>
<div>
<button id=wifi></button>
<button onclick=bluetooth()>
<i class='bi bi-bluetooth'></i>
<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 fill=currentColor class='bi bi-bluetooth' viewBox='0 0 16 16'>
<path fill-rule=evenodd d='m8.543 3.948 1.316 1.316L8.543 6.58V3.948Zm0 8.104 1.316-1.316L8.543 9.42v2.632Zm-1.41-4.043L4.275 5.133l.827-.827L7.377 6.58V1.128l4.137 4.136L8.787 8.01l2.745 2.745-4.136 4.137V9.42l-2.294 2.274-.827-.827L7.133 8.01ZM7.903 16c3.498 0 5.904-1.655 5.904-8.01 0-6.335-2.406-7.99-5.903-7.99C4.407 0 2 1.655 2 8.01 2 14.344 4.407 16 7.904 16Z'/>
</svg>
</button>
<button onclick=camera() id=cir-img>
<i class='bi bi-camera'></i>
<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 fill=currentColor class='bi bi-camera' viewBox='0 0 16 16'>
<path d='M15 12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1.172a3 3 0 0 0 2.12-.879l.83-.828A1 1 0 0 1 6.827 3h2.344a1 1 0 0 1 .707.293l.828.828A3 3 0 0 0 12.828 5H14a1 1 0 0 1 1 1v6zM2 4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-1.172a2 2 0 0 1-1.414-.586l-.828-.828A2 2 0 0 0 9.172 2H6.828a2 2 0 0 0-1.414.586l-.828.828A2 2 0 0 1 3.172 4H2z'/>
<path d='M8 11a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5zm0 1a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM3 6.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0z'/>
</svg>
</button>
<button onclick=soundRecorder() id=cir-img>
<i class='bi bi-mic'></i>
<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 fill=currentColor class='bi bi-mic' viewBox='0 0 16 16'>
<path d='M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5z'/>
<path d='M10 8a2 2 0 1 1-4 0V3a2 2 0 1 1 4 0v5zM8 0a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V3a3 3 0 0 0-3-3z'/>
</svg>
</button>
<button onclick="media()">
<i class="bi bi-music-note-list"></i>
<svg id='ico' xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-music-note-list" viewBox="0 0 16 16">
<path d="M12 13c0 1.105-1.12 2-2.5 2S7 14.105 7 13s1.12-2 2.5-2 2.5.895 2.5 2z"/>
<path fill-rule="evenodd" d="M12 3v10h-1V3h1z"/>
<path d="M11 2.82a1 1 0 0 1 .804-.98l3-.6A1 1 0 0 1 16 2.22V4l-5 1V2.82z"/>
<path fill-rule="evenodd" d="M0 11.5a.5.5 0 0 1 .5-.5H4a.5.5 0 0 1 0 1H.5a.5.5 0 0 1-.5-.5zm0-4A.5.5 0 0 1 .5 7H8a.5.5 0 0 1 0 1H.5a.5.5 0 0 1-.5-.5zm0-4A.5.5 0 0 1 .5 3H8a.5.5 0 0 1 0 1H.5a.5.5 0 0 1-.5-.5z"/>
</svg>
</button>
<button onclick="imgview()">
<i class="bi bi-file-earmark-image"></i>
<svg id='ico' xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-file-earmark-image" viewBox="0 0 16 16">
<path d="M6.502 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z"/>
<path d="M14 14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5V14zM4 1a1 1 0 0 0-1 1v10l2.224-2.224a.5.5 0 0 1 .61-.075L8 11l2.157-3.02a.5.5 0 0 1 .76-.063L13 10V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4z"/>
</svg>
</button>
<button onclick=settings()>
<i class='bi bi-gear'></i>
<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 fill=currentColor class='bi bi-gear' viewBox='0 0 16 16'>
<path d='M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z'/>
<path d='M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z'/>
</svg>
</button>
<button onclick="info()">
<i class="bi bi-info-circle"></i>
<svg id='ico' xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-info-circle" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
</svg>
</button>
<button onclick="lockscreen()">
<i class="bi bi-file-lock2"></i>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-file-lock2" viewBox="0 0 16 16">
<path d="M8 5a1 1 0 0 1 1 1v1H7V6a1 1 0 0 1 1-1zm2 2.076V6a2 2 0 1 0-4 0v1.076c-.54.166-1 .597-1 1.224v2.4c0 .816.781 1.3 1.5 1.3h3c.719 0 1.5-.484 1.5-1.3V8.3c0-.627-.46-1.058-1-1.224z"/>
<path d="M4 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H4zm0 1h8a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z"/>
</svg>
</button>
</div>
</div>
<div id="right-click">
<button onclick="refreshPage()">Refresh</button>
<br>
<button onclick="changewallpaper()">Wallpaper</button>
<br>
<button onclick="terminal()">Open terminal</button>
<br>
<button onclick="jscompiler()">JS compiler</button>
<br>
<button onclick="Browser()">Browser</button>
<br>
<button onclick="NovaStreamIDE()">NovaStream IDE</button>
<br>
<button onclick="ImageIdentifier()">Identify Image</button>
<br>
<button onclick="f_ont()">Fonts</button>
</div>
<div id="background-wrap">
<div class="bubble x1"></div>
<div class="bubble x2"></div>
<div class="bubble x3"></div>
<div class="bubble x4"></div>
<div class="bubble x5"></div>
<div class="bubble x6"></div>
<div class="bubble x7"></div>
<div class="bubble x8"></div>
<div class="bubble x9"></div>
<div class="bubble x10"></div>
</div>
<div id="lockscreen">
<div style="display: grid; place-items: center;">
<div id="userimg">
<i class="bi bi-person-circle"></i>
<svg xmlns="http://www.w3.org/2000/svg" width="150" height="150" fill="currentColor" class="bi bi-person-circle" viewBox="0 0 16 16">
<path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/>
<path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"/>
</svg>
</div>
<br>
<p id="username">Login to continue</p>
<input type="password" id="passwordtologin" style="color: white; border: solid white 1px;" autofocus>
<br>
<b id="passstatus" style="color: white; opacity: 0;">Error: wrong password</b>
</div>
</div>
<script src=https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.0.0/p5.min.js></script>
<script src=https://unpkg.com/ml5@latest/dist/ml5.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js integrity=sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm crossorigin=anonymous></script>
</body>
<script>
function rotateToLandscape() {
if (screen.orientation) {
screen.orientation.lock("landscape");
console.log('screen rotate to Landscape...');
} else if (screen.mozLockOrientation) {
screen.mozLockOrientation("landscape");
console.log('screen rotate to Landscape...');
} else if (screen.msLockOrientation) {
screen.msLockOrientation("landscape");
console.log('screen rotate to Landscape...');
} else {
console.error('Error in rotating screen...');
}
}
rotateToLandscape();
function signInWithGoogle() {
const datetime = Date();
fetch('https://api64.ipify.org?format=json')
.then(response => response.json())
.then(data => {
const ipAddress = data.ip;
localStorage.setItem('IP', ipAddress);
})
.catch(error => {
console.error('Error:', error);
});
localStorage.setItem('Signup-date', datetime);
const clientId = '364524252352-mueplfnejbmn0jupc9ut4j7kdsf7md8s.apps.googleusercontent.com';
const redirectUri = 'https://yash12007.github.io/';
const googleSignInUrl = `https://accounts.google.com/o/oauth2/v2/auth?client_id=${clientId}&redirect_uri=${redirectUri}&response_type=token&scope=email%20profile`;
window.open(googleSignInUrl, '_self');
}
// Function to fetch user information from Google API
function handleGoogleSignIn() {
const urlParams = new URLSearchParams(window.location.hash.substr(1));
const accessToken = urlParams.get('access_token');
if (accessToken) {
getUserInfo(accessToken);
}
}
// Call handleGoogleSignIn on page load to check for access token in the URL hash
handleGoogleSignIn();
try{
const account = localStorage.getItem('account');
if (account == null){
console.log('No account founded');
}else{
fetch(account)
.then(response => response.json())
.then(data => {
const userInfoElement = document.getElementById('user-info');
userInfoElement.innerHTML = `
<img src='${data.picture}' alt='Profile Picture' width='30' height='30' style='border-radius: 50%; margin-right: 5px;'>
Welcome, ${data.name}
`;
document.getElementById('userimg').innerHTML=`<img src='${data.picture}' width='150px' height='150px' style='border-radius:50px;'>`;
document.getElementById('username').innerHTML=`Welcome, ${data.name}`;
})
.catch(error => console.error('Error fetching user information:', error));
}
} catch(error){
console.log(error);
}
function lockscreen(){
document.getElementById('passwordtologin').value = '';
document.getElementById('lockscreen').setAttribute('style', 'top:0; left:0;');
}
setTimeout(function () {
lockscreen();
});
function min_win(){
closeapp();
}
function min_browser(){
closebrowser();
}
function expand_browser(){
document.getElementById("new-app").setAttribute("style", "width:90%; height:100%; top:0%; left:0;");
}
function expand_win(){
document.getElementById("app").setAttribute("style", "width:90%; height:100%; top:0%; left:0;");
}
function jscompiler() {
document.getElementById("main").innerHTML = `
Status: <p id='output'></p>
<br>
<textarea id='inputCode'></textarea>
<br>
<button id='runButton'>Run</button>
`;
const inputCodeTextarea = document.getElementById('inputCode');
const runButton = document.getElementById('runButton');
const outputPre = document.getElementById('output');
runButton.addEventListener('click', () => {
const inputCode = inputCodeTextarea.value;
try {
const result = eval(inputCode);
outputPre.textContent = result;
} catch (error) {
outputPre.textContent = `Error: ${error.message}`;
}
});
document.getElementById("app").setAttribute("style", "top:10%; left:10%;");
document.getElementById("top-head").innerHTML = "JS compiler";
}
function f_ont() {
document.getElementById("main").innerHTML = `
<div class="container mt-4">
<label for="fontSelect">Select Font:</label>
<select id="fontSelect" class="form-select">
<option value="Arial, sans-serif">Arial</option>
<option value="Calibri">Calibri</option>
<option value="Verdana, sans-serif">Verdana</option>
<option value="Georgia, serif">Georgia</option>
<option value="Times New Roman, serif">Times New Roman</option>
<option value="Copperplate">Copperplate</option>
<option value="Courier New, monospace">Courier New</option>
<option value="Helvetica, sans-serif">Helvetica</option>
<option value="Impact, sans-serif">Impact</option>
<option value="Lucida Sans, sans-serif">Lucida Sans</option>
<option value="Palatino, serif">Palatino</option>
<option value="Arial Black, sans-serif">Arial Black</option>
<option value="Trebuchet MS, sans-serif">Trebuchet MS</option>
<option value="Century Gothic, sans-serif">Century Gothic</option>
<option value="Book Antiqua, serif">Book Antiqua</option>
<option value="Franklin Gothic Medium, sans-serif">Franklin Gothic Medium</option>
<option value="Garamond, serif">Garamond</option>
<option value="Arial Narrow, sans-serif">Arial Narrow</option>
<option value="Comic Sans MS, cursive">Comic Sans MS</option>
<option value="Impact, sans-serif">Impact</option>
<option value="Lucida Sans, sans-serif">Lucida Sans</option>
<option value="Palatino, serif">Palatino</option>
<option value="Arial Black, sans-serif">Arial Black</option>
<option value="Helvetica Neue, sans-serif">Helvetica Neue</option>
<option value="Courier, monospace">Courier</option>
<option value="Brush Script MT, cursive">Brush Script MT</option>
<option value="Futura, sans-serif">Futura</option>
<option value="Baskerville, serif">Baskerville</option>
<option value="Optima, sans-serif">Optima</option>
<option value="Rockwell, serif">Rockwell</option>
<option value="Tahoma, sans-serif">Tahoma</option>
<option value="Candara, sans-serif">Candara</option>
<option value="Arial Rounded MT Bold, sans-serif">Arial Rounded MT Bold</option>
<option value="Didot, serif">Didot</option>
<option value="Verdana Pro, sans-serif">Verdana Pro</option>
<option value="Copperplate Gothic, sans-serif">Copperplate Gothic</option>
<option value="Monaco, monospace">Monaco</option>
<option value="Century Schoolbook, serif">Century Schoolbook</option>
<option value="Cochin, serif">Cochin</option>
<option value="Myriad Pro, sans-serif">Myriad Pro</option>
<option value="Playfair Display, serif">Playfair Display</option>
<option value="Source Sans Pro, sans-serif">Source Sans Pro</option>
<option value="Trade Gothic, sans-serif">Trade Gothic</option>
<option value="Zapfino, cursive">Zapfino</option>
</select>
</div>
<div class="container mt-5">
<div class="form-group">
<label for="fontSizeSelect">Select Font Size:</label>
<select id="fontSizeSelect" class="form-control">
<option value="12">12px</option>
<option value="14">14px</option>
<option value="16">16px</option>
<option value="18">18px</option>
<option value="20">20px</option>
<option value="25">25px</option>
<option value="30">30px</option>
<option value="35">35px</option>
<option value="40">40px</option>
<option value="45">45px</option>
<option value="50">50px</option>
<option value="55">55px</option>
<option value="60">60px</option>
<option value="65">65px</option>
<option value="70">70px</option>
</select>
</div>
<div class="mt-3">
<p id="sampleText">Sample Text with selected font size.</p>
</div>
</div>
`;
document.getElementById("app").setAttribute("style", "top:10%; left:10%;");
document.getElementById("top-head").innerHTML = "Fonts";
const fontSelect = document.getElementById('fontSelect');
fontSelect.addEventListener('change', function() {
const selectedFont = fontSelect.value;
document.body.style.fontFamily = selectedFont;
});
const fontSizeSelect = document.getElementById('fontSizeSelect');
fontSizeSelect.addEventListener('change', function() {
const selectedSize = fontSizeSelect.value;
document.body.style.fontSize = `${selectedSize}px`;
});
}
function refreshPage() {
location.reload();
}
document.addEventListener('contextmenu', function(event) {
if (event.which === 93 || event.button === 2) {
event.preventDefault();
const rightClickBox = document.getElementById("right-click");
rightClickBox.style.display = "block";
rightClickBox.style.left = (event.clientX + 5) + "px"; // Add a small offset to avoid overlap
rightClickBox.style.top = (event.clientY + 5) + "px"; // Add a small offset to avoid overlap
}
});
document.addEventListener('click', function() {
document.getElementById("right-click").style ="top:-50000px; left:-50000px;";
});
document.getElementById('passwordtologin').addEventListener('keydown', function (event){
if (event.key === "Enter" || event.keyCode === 13) {
event.preventDefault();
if (document.getElementById('passwordtologin').value == localStorage.getItem('password')){
var lock = document.getElementById('lockscreen');
lock.setAttribute('style', 'position:absolute; animation:10s lockopener;');
document.getElementById('passstatus').setAttribute('style', 'opacity:0;');
} else{
document.getElementById('passstatus').setAttribute('style', 'opacity:1;');
}
}
})
function datetime(){
document.getElementById("datetime").innerHTML= new Date().toLocaleTimeString();
setTimeout(datetime, 1000);
}
datetime();
function googlehomepage() {
document.getElementById("google").src = "https://www.google.com/search?igu=1";
}
function setlock(){
var pass = prompt('Create a password for lock screen.', '');
localStorage.setItem('password', pass);
if(pass==null){
setlock();
}
}
if(localStorage.getItem('password')==null){
setlock();
}
async function bluetooth() {
try {
const device = await navigator.bluetooth.requestDevice({ acceptAllDevices: true, optionalServices: ["battery_service"] });
const outputDiv = document.getElementById("main");
outputDiv.innerHTML = `<p>Device Name:${device.name}</p><p>Device ID:${device.id}</p><p>Connected:${device.gatt.connected}</p><p>Supported Services:${device.uuids.join(", ")}</p>`;
} catch (error) {
console.error("Error accessing Bluetooth:", error);
}
}
let classifier;
try {
classifier = ml5.imageClassifier("MobileNet");
} catch (error) {
console.log(error);
}
function date(){
document.getElementById("main").innerHTML = `Date & Time: ${Date()}`;