-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
901 lines (802 loc) · 53.4 KB
/
index.html
File metadata and controls
901 lines (802 loc) · 53.4 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chilling at</title>
<!-- meta -->
<meta name="description" content="Chill at - A place to relax and enjoy the ambiance.">
<meta name="author" content="Croc-Prog-github">
<meta name="keywords" content="Chill, Relax, Ambiance, Nature, Soundboard">
<meta name="theme-color" content="#000000">
<!-- Calendar -->
<link href="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.8/main.min.css" rel="stylesheet"/>
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.8/main.min.js"></script>
<!-- Emoji -->
<style>
@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');
</style>
<!-- External -->
<script type="module" src="/calendar.js"></script>
<!-- Research engnine -->
<script async src="https://cse.google.com/cse.js?cx=6684f0c35d1ef49a1"></script>
</head>
<body style="background: black; overflow: hidden; width: fit-content;">
<header style="display: none; justify-content: space-between; margin-bottom: 5px; user-select: none;">
<bar style="display: flex; align-items: center; background: white; padding: 2px;">
<div title="Streak">1<emoji>🔥</emoji></div>
<span style="margin-inline: 3px;">|</span>
<div style="margin-inline: 3px; padding-block: 0px;">Add Shortcut</div>
</bar>
<bar style="display: flex;"></bar>
</header>
<div style="display: grid; grid-template-columns: 1% 99%;">
<div id="slidebar_menu" style="z-index: 1; flex-direction: row;">
<slidebar style="display: flex; flex-direction: column; width: 3%; max-width: max-content; min-width: 37px; /*z-index: 0; position: relative;*/">
<div style="display: flex; flex-direction: column; align-items: center; border-radius: 10px; background: white; padding-block: 3px;">
<img class="icons" src="/assets/icons/place.svg" alt="🌍" title="Spaces" onclick="Pannel('Space')" style="padding-inline: 6px; padding-block: 3px;">
<img class="icons" src="/assets/icons/sound.svg" alt="🔈" title="Sounds" onclick="Pannel('Sound')" style="padding-inline: 6px; padding-block: 3px;">
<img class="icons" src="/assets/icons/calendar.svg" alt="📅" title="Calendar" onclick="Pannel('Calendar')" style="padding-inline: 6px; padding-block: 3px;">
</div>
<div style="display: flex; flex-direction: column; align-items: center; border-radius: 10px; background: white; padding-block: 3px; margin-top: 5px;">
<img class="icons" src="/assets/icons/Timer.svg" alt="⏲️" title="Timer" style="padding-inline: 6px; padding-block: 3px;">
<img class="icons" src="/assets/icons/checklist.svg" alt="☑️" title="Tasks" style="padding-inline: 6px; padding-block: 3px;">
<img class="icons" src="/assets/icons/sticky_note.svg" alt="🗒️" title="Note" style="padding-inline: 6px; padding-block: 3px;">
<img class="icons" src="/assets/icons/play.svg" alt="▶️" title="Media player" onclick="if(document.getElementById('media_player_window').style.display == 'none'){document.getElementById('media_player_window').style.display = 'block'}else{document.getElementById('media_player_window').style.display = 'none'}" style="padding-inline: 6px; padding-block: 3px;">
<img class="icons" src="/assets/icons/lightbulb.svg" alt="💡" title="Advise" onclick="if(document.getElementById('Daily_Advise').style.display == 'none'){document.getElementById('Daily_Advise').style.display = 'block'}else{document.getElementById('Daily_Advise').style.display = 'none'}" style="padding-inline: 6px; padding-block: 3px;">
<img class="icons" src="/assets/icons/web_explore.svg" alt="🛜" title="Web research" onclick="if(document.getElementById('WebResearch').style.display == 'none'){document.getElementById('WebResearch').style.display = 'block'}else{document.getElementById('WebResearch').style.display = 'none'}" style="padding-inline: 6px; padding-block: 3px;">
</div>
</slidebar>
<div id="menu" style="width: 22%; height: 640px; min-width: 245px; max-width: 455px; background: white; border-radius: 10px; padding: 4.5px; /*z-index: 0; position: relative;*/">
<div style="overflow-y: auto; height: -webkit-fill-available; overflow-x: hidden;">
<div id="scenery" style="display: block;">
<h3>Scenery</h3>
<p hidden>
<strong>Scenery's Audio</strong>
<input type="range" min="0" max="100" value="0" style="width: 100%;">
<input type="search" placeholder="Search..." style="width: 100%; padding: 2px; border-radius: 5px; border: 1px solid #ccc; margin-bottom: 5px;">
</p>
<p style="margin-block: 0; display: flex;">
<strong>Background fill</strong>
<div>
<span>Contain</span>
<input type="range" min="0" max="1" value="0" oninput="if(this.value==1){document.getElementById('background_img').style.objectFit='contain'}else{document.getElementById('background_img').style.objectFit='cover'}" style="width: 30px; accent-color: auto;">
<span>Cover</span>
</div>
</p>
<div>
<details open>
<summary>Nature & forest</summary>
<div style="display: flex; flex-wrap: wrap;">
<img src="https://www.icegif.com/wp-content/uploads/icegif-5597.gif" alt="Nature & forest" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/cc/19/2f/cc192f34efa4ea33fc486f6e90b8d0fb.gif" alt="Nature & forest" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/6d/fa/a3/6dfaa33c74a191458912f8be7e154b04.gif" alt="Nature & forest" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/17/a9/31/17a931c22b62d290adb1030837e03d23.gif" alt="Nature & forest" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/1f/58/32/1f5832186ffd64058efad2a3a810d006.gif" alt="Nature & forest" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/60/d8/44/60d844679e07db517c19fdc5dd7af089.gif" alt="Nature & forest" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/24/0e/fe/240efe847207c99054b362fc9c7995a9.gif" alt="Nature & forest" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://mir-s3-cdn-cf.behance.net/project_modules/source/ac1dd511481791.560f87b10d097.gif" alt="Nature & forest" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://mir-s3-cdn-cf.behance.net/project_modules/source/1aacd211481791.560f867dabbbd.gif" alt="Nature & forest" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://uploads-us-west-2.insided.com/adobedme-en/attachment/1608948_Nature_061.gif" alt="Nature & forest" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="" alt="Nature & forest" class="SceneryIcons" onclick="ChangeBackground(this.src);">
</div>
</details>
<details>
<summary>Sky & landscape</summary>
<div style="display: flex; flex-wrap: wrap;">
<img src="https://i.pinimg.com/originals/d7/e7/81/d7e781b32269a8a82b500c1a9dc97733.gif" alt="Sky & landscape" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/c6/14/23/c6142319baaa6280f31d2fcb92557783.gif" alt="Sky & landscape" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.makeagif.com/media/12-06-2016/agrhvF.gif" alt="Sky & landscape" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/39/e6/74/39e67457b2ea6906abb5cc4c97d2419f.gif" alt="Sky & landscape" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="" alt="Sky & landscape" class="SceneryIcons" onclick="ChangeBackground(this.src);">
</div>
</details>
<details>
<summary>Animals</summary>
<div style="display: flex; flex-wrap: wrap;">
<img src="https://cdn.pixabay.com/animation/2024/10/16/09/27/09-27-16-122_512.gif" alt="Animals" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="" alt="Animals" class="SceneryIcons" onclick="ChangeBackground(this.src);">
</div>
</details>
<details>
<summary>City</summary>
<div style="display: flex; flex-wrap: wrap;">
<img src="https://secondcropcreative.com/perfectloops/images/The-Lion-City-II-Majulah.gif" alt="City" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://64.media.tumblr.com/a83e8c7b1576a1e6ec6b49aea480b497/e1ea13f09d41a12d-d8/s500x750/ebbd18ee69dec47203071fa0848d1c6a649c8856.gif" alt="City" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.gifer.com/QHJ.gif" alt="City" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/28/86/71/2886713deb0207537e144acfd85b8eaa.gif" alt="City" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://community.adobe.com/t5/image/serverpage/image-id/62387i88E258CC27F30FF0/image-size/large?v=v2&px=999" alt="City" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.gifer.com/StEb.gif" alt="City" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://t3hz0r.com/post/photoshop-smoothly-looping-gif-tutorial/crossfade_method.gif" alt="City" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.imgur.com/yB0rP0s.gif" alt="City" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/52/a0/18/52a018a9981b1908678d9aa3b82d6445.gif" alt="City" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/ce/33/4f/ce334f7f6b259c77c49ac1a0fa931102.gif" alt="City" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://giffiles.alphacoders.com/567/5674.gif" alt="City" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://64.media.tumblr.com/171664230092480d1114ffde87a1e50e/tumblr_pewdu6lTFL1toe0eco1_500.gif" alt="City" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://www.ignant.com/wp-content/uploads/2014/04/Rebecca-Mock_02.gif" alt="City" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="" alt="City" class="SceneryIcons" onclick="ChangeBackground(this.src);">
</div>
</details>
<details>
<summary>Pixel Art</summary>
<div style="display: flex; flex-wrap: wrap;">
<img src="https://i.imgur.com/F6NZsjA.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://img.itch.zone/aW1nLzE1MTA4ODY0LmdpZg==/original/Xs1pQh.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/68/31/45/6831454cf213ed7ffa541fe666fa9cf8.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://images.squarespace-cdn.com/content/v1/551a19f8e4b0e8322a93850a/ed563e40-c82c-4e0f-a3a7-a7f076c30811/Full_Scene.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.imgur.com/HdUXkZH.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.imgur.com/2fpaXej.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.imgur.com/poL3syP.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.imgur.com/7OykyHz.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.imgur.com/gBxP6oJ.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.imgur.com/xsMoGLV.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/0c/80/f6/0c80f63edb502914226a3a3f8010762f.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/af/3a/ef/af3aef3f7edf0294bdecd2b9d0115146.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/93/f0/4b/93f04b4b1103cc4e6410bb4f831acb6c.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/9e/40/70/9e40708b7f7b6d11ab3d4f8d7a03de15.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://mir-s3-cdn-cf.behance.net/project_modules/fs/223e6792880429.5e569ff84ebef.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/ae/1a/32/ae1a3228917786b1c62c8f4ee9a827fe.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/a0/bf/31/a0bf31b06c55ec7098e7233835be1169.gif" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="" alt="Pixel Art" class="SceneryIcons" onclick="ChangeBackground(this.src);">
</div>
</details>
<details>
<summary>Abstract</summary>
<div style="display: flex; flex-wrap: wrap;">
<img src="https://i.redd.it/5bdk9ixr2b701.gif" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/55/2e/c1/552ec189475f1d337391b02d6b0b9965.gif" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.gifer.com/origin/98/98e7c3d1b54978e7bb68d269ea1037d3_w200.gif" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://media3.giphy.com/media/3oriNZuNzeTbtJvKs8/200w.gif?cid=6c09b952xr890pbb929rifvdurskdb31aevl26sse941o3uv&ep=v1_gifs_search&rid=200w.gif&ct=g" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://media4.giphy.com/media/LZQ7nyyPa0KevNUQtK/200w.gif?cid=6c09b952mmp4j7mazju3sdd154dsnvqkpyf2p2qx9yn1bzsu&ep=v1_gifs_search&rid=200w.gif&ct=g" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://media.giphy.com/media/jcckJbNsK0nLy/giphy.gif" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/4b/20/e0/4b20e05879b68f413efca4c6dd4ae13a.gif" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.redd.it/8u3dtryd4br61.gif" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://opengameart.org/sites/default/files/tunnelconstant.gif" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/5e/33/fe/5e33feded0d56e84f9bf4a6552d11465.gif" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.gifer.com/embedded/download/7saq.gif" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://media3.giphy.com/media/v1.Y2lkPTc5MGI3NjExcnU0MjBueXBzbXc5MW5uaW5uOTMyb2tnZjFtMDAzazN1bnBiM244ZCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/sPD0WMaCidlM9E2Nl8/giphy.gif" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://lapsedtime.com/wp-content/uploads/2016/03/water.gif" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://metro.co.uk/wp-content/uploads/2015/06/spyrogif-gif-art-is-strangely-relaxing-spiral.gif?w=350" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://media2.giphy.com/media/NLwQZlo5wA8su4kYhL/giphy.gif?cid=6c09b952ujafcepd9dofdj5mh80aoy409s3jmdj78bkf1qhm&ep=v1_internal_gif_by_id&rid=giphy.gif&ct=g" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/23/c1/c6/23c1c66f9b7c9920900c3aab35e01a65.gif" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/cc/76/00/cc76001626665f0520178a084a38effd.gif" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://mir-s3-cdn-cf.behance.net/project_modules/source/88c90c94022901.5e73cebf75c5d.gif" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="" alt="Abstract" class="SceneryIcons" onclick="ChangeBackground(this.src);">
</div>
</details>
<details>
<summary>Space</summary>
<div style="display: flex; flex-wrap: wrap;">
<img src="https://i.giphy.com/sJvz8Qnfly3BOuotGx.webp" alt="Space" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/6e/8c/79/6e8c794b1919e2f5a364252867543d93.gif" alt="Space" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/1b/d1/df/1bd1dfc8b21c6cae4bc716673c2e2469.gif" alt="Space" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://media.tenor.com/xFPr9-XjNF4AAAAM/aurora-from-iss.gif" alt="Space" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.pinimg.com/originals/fb/10/7b/fb107b269528be7b59115210c0a3cc79.gif" alt="Space" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="https://i.makeagif.com/media/5-08-2016/pfxReu.gif" alt="Space" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="" alt="Space" class="SceneryIcons" onclick="ChangeBackground(this.src);">
<img src="" alt="Space" class="SceneryIcons" onclick="ChangeBackground(this.src);">
</div>
</details>
<details hidden>
<summary>Videos</summary>
<img src="https://i.ytimg.com/vi/zTK9DhM6OQc/hq720.jpg?sqp=-oaymwFBCNAFEJQDSFryq4qpAzMIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB8AEB-AH-CYAC0AWKAgwIABABGBMgKih_MA8=&rs=AOn4CLDW6T-43ArPFOdpOKwT3fvmpJLBcg" alt="Sky" class="SceneryIcons_Video">
</details>
</div>
</div>
<div id="soundboard" style="display: none;">
<h3>Soundboard</h3>
<p hidden>
<strong>Space's Audio</strong>
<input type="range" min="0" max="100" value="50" style="width: 100%;">
</p>
<p>
<strong><emoji>📻</emoji>Radio</strong>
<select onchange="document.getElementById('radio_iframe').src = this.value" style="width: 100%;">
<option value="suzume_lofi" hidden>Suzume lofi (https://youtu.be/vEM_DwPEnwY)</option>
<option value="null" selected>--OFF--</option>
<optgroup label="LofiGirl">
<option value="https://www.youtube-nocookie.com/embed/4xDzrJKXOOY?autoplay=1&controls=0">Lofi Synthwave (chill/gaming)</option>
<option value="https://www.youtube-nocookie.com/embed/S_MOd40zlYU?autoplay=1&controls=0">Lofi deep ambient (escape/dream)</option>
<option value="https://www.youtube-nocookie.com/embed/jfKfPfyJRdk?autoplay=1&controls=0">Lofi HipHop (study/relax)</option>
</optgroup>
<optgroup label="ChillHop">
<option value="https://www.youtube-nocookie.com/embed/7NOSDKb0HlU?autoplay=1&controls=0">ChillHop Radio beats (study/relax)</option>
<option value="https://www.youtube-nocookie.com/embed/5yx6BWlEVcY?autoplay=1&controls=0">Chillhop Radio jazzy</option>
</optgroup>
</select>
</p>
<p>
<strong>Ambiance</strong>
<div>
<div style="overflow-x: hidden;">
<span><emoji>☔</emoji>Soft rain out</span>
<audio src="/out_rain.mp3" volume="0.0" controls autoplay loop controlslist="noplaybackrate nofullscreen nostop nodownload play" style="pointer-events: none; display: none;"></audio>
<input type="range" min="0" max="100" value="0" step="4" id="SoftRainOut_inp" style="width: 99%;" onload="CaricaDaSS(this.id);" oninput="const audio = this.parentElement.querySelector('audio'); audio.volume = this.value / 100; audio.play(); SalveInSS(this.id, this.value);">
</div>
<div style="overflow-x: hidden;">
<span><emoji>🌧️</emoji>Deep rain indoor</span>
<audio src="/deep_indoor_rain.mp3" volume="0.0" controls autoplay loop controlslist="noplaybackrate nofullscreen nostop nodownload play" style="pointer-events: none; display: none;"></audio>
<input type="range" min="0" max="100" value="0" step="4" id="DeepIndoorRain_inp" style="width: 99%;" onload="CaricaDaSS(this.id);" oninput="const audio = this.parentElement.querySelector('audio'); audio.volume = this.value / 100; audio.play(); SalveInSS(this.id, this.value);">
</div>
<div style="overflow-x: hidden;">
<span><emoji>🔥</emoji>Fire</span>
<audio src="/fireplace.mp3" volume="0.0" controls autoplay loop controlslist="noplaybackrate nofullscreen nostop nodownload play" style="pointer-events: none; display: none;"></audio>
<input type="range" min="0" max="100" value="0" step="4" id="Fire_inp" style="width: 99%;" onload="CaricaDaSS(this.id);" oninput="const audio = this.parentElement.querySelector('audio'); audio.volume = this.value / 100; audio.play(); SalveInSS(this.id, this.value);">
</div>
<div style="overflow-x: hidden;">
<span><emoji>⌨️</emoji>Keyboard</span>
<audio src="/keyboard.mp3" volume="0.0" controls autoplay loop controlslist="noplaybackrate nofullscreen nostop nodownload play" style="pointer-events: none; display: none;"></audio>
<input type="range" min="0" max="100" value="0" step="4" id="Keyboard_inp" style="width: 99%;" onload="CaricaDaSS(this.id);" oninput="const audio = this.parentElement.querySelector('audio'); audio.volume = this.value / 100; audio.play(); SalveInSS(this.id, this.value);">
</div>
<div style="overflow-x: hidden;">
<span><emoji>📱</emoji>Digital tel keyboard</span>
<audio src="/digital_keyboard.mp3" volume="0.0" controls autoplay loop controlslist="noplaybackrate nofullscreen nostop nodownload play" style="pointer-events: none; display: none;"></audio>
<input type="range" min="0" max="100" value="0" step="4" id="DigitalTelKeyboard_inp" style="width: 99%;" onload="CaricaDaSS(this.id);" oninput="const audio = this.parentElement.querySelector('audio'); audio.volume = this.value / 100; audio.play(); SalveInSS(this.id, this.value);">
</div>
<div style="overflow-x: hidden;">
<span><emoji>🍃</emoji>Soft wind</span>
<audio src="/soft_wind.mp3" volume="0.0" controls autoplay loop controlslist="noplaybackrate nofullscreen nostop nodownload play" style="pointer-events: none; display: none;"></audio>
<input type="range" min="0" max="100" value="0" step="4" id="SoftWind_inp" style="width: 99%;" onload="CaricaDaSS(this.id);" oninput="const audio = this.parentElement.querySelector('audio'); audio.volume = this.value / 100; audio.play(); SalveInSS(this.id, this.value);">
</div>
<div style="overflow-x: hidden;">
<span><emoji>🌬️</emoji>Deep wind</span>
<audio src="/deep_wind.mp3" volume="0.0" controls autoplay loop controlslist="noplaybackrate nofullscreen nostop nodownload play" style="pointer-events: none; display: none;"></audio>
<input type="range" min="0" max="100" value="0" step="4" id="DeepWind_inp" style="width: 99%;" onload="CaricaDaSS(this.id);" oninput="const audio = this.parentElement.querySelector('audio'); audio.volume = this.value / 100; audio.play(); SalveInSS(this.id, this.value);">
</div>
</div>
</p>
<iframe id="radio_iframe" src="" allow="autoplay; encrypted-media;" loading="lazy" style="opacity: 0; pointer-events: none;"></iframe>
</div>
<div id="calendar" style="display: none;">
<h3>Calendar</h3>
<div style="display: flex; align-items: center; margin-bottom: 10px; width: -webkit-fill-available;">
<select id="viewSelector" style="width: -webkit-fill-available; height: fit-content;">
<option value="daily">Daily View</option>
<option value="weekly" hidden>Weekly View</option>
<option value="monthly" selected>Monthly View</option>
<option value="yearly">Yearly View</option>
</select>
<div style="display: flex;">
<img src="/assets/icons/add-event.svg" alt="Add-Event">
<div onclick="calendar.changeView('dayGridMonth'); calendar.gotoDate(new Date());">
<img src="/assets/icons/today.svg" alt="Today" style="cursor: pointer;">
</div>
</div>
<!-- css per festivi ed eventi: text-decoration: underline double red; -->
</div>
<div id="calendarAPI" style="height: -webkit-fill-available; user-select: none; cursor: default;"></div>
<div style="user-select: none; cursor: default;">
<hr>
Seleziona un evento per vedere i dettagli.
<div style="display: flex; flex-direction: column; align-items: center; margin-top: 5px;">
<div style="display: flex; flex-direction: column; /*align-items: center;*/ width: -webkit-fill-available;">
<span>Event Name</span>
<span>Event Description</span>
<span>Event Date</span>
<span>Event Time</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div name="Widget" style="position: fixed;" note="Guarda div a riga 35 perchè è lui che mi contiene">
<div id="media_player_window" style="display: none; background: white; border-radius: 10px; resize: both; width: 237px; height: 84px; top: 130px; left: 40px; position: absolute; padding: 4px; overflow: hidden; min-width: 360px; min-height: 150px; max-width: 490px;">
<div id="Drag&Drop_MediaPlayer" style="display: flex; justify-content: space-between; cursor: grab; background-image: radial-gradient(#4e4e4e 1px, transparent 1px); background-size: 5px 5px; height: 20px;">
<span style="background: white; align-self: center; padding-block: 5px;">Media player</span>
<img src="/assets/icons/close_x.svg" alt="Close" onclick="document.getElementById('media_player_iframe').src = '/none_iframe.html'; document.getElementById('media_player_window').style.display = 'none';" style="background: white; cursor: pointer; height: initial;">
</div>
<div style="overflow-y: auto; height: inherit; width: -webkit-fill-available; min-width: inherit; min-height: inherit;">
<div style="display: flex; flex-direction: column;">
<iframe id="media_player_iframe" src="/none_iframe.html" style="display: none; height: 120px; width: 100%; max-width: 490px;" frameBorder="0" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture" loading="lazy"></iframe>
<div>
<ul style="list-style-type: decimal; margin-block: 0; padding-inline-start: 20px; margin-bottom: 1em;">
<strong style="margin-inline-start: -20px;">Generi (playlists)</strong>
<details>
<summary style="margin-left: -20px;">Deep Ambient</summary>
<li class="li_media-player" hidden>Suzume lofi (https://youtu.be/vEM_DwPEnwY)</li>
<li class="li_media-player" onclick="document.getElementById('media_player_iframe').src = this.getAttribute('value'); document.getElementById('media_player_iframe').style.removeProperty('display');" value="https://www.youtube-nocookie.com/embed/videoseries?si=6LRMFeKro-iwFeye&controls=0&list=PL7qhtXuGdmP3TzICecbjovGIQk_xPXIVH">Escape from reality // deep ambient <var title="by...">Kamil Khan</var></li>
<li class="li_media-player" onclick="document.getElementById('media_player_iframe').src = this.getAttribute('value'); document.getElementById('media_player_iframe').style.removeProperty('display');" value="https://www.youtube-nocookie.com/embed/videoseries?si=OnTTqu5mL12twyZ6&controls=0&list=PLwggufgRpVbHtVLwgPqKLWYKnEEkXvRmT">Deep Ambient <var title="by...">Francesco Siano</var></li>
<li class="li_media-player" onclick="document.getElementById('media_player_iframe').src = this.getAttribute('value'); document.getElementById('media_player_iframe').style.removeProperty('display');" value="https://www.youtube-nocookie.com/embed/videoseries?si=Yi5bRpwIITizR_P-&controls=0&list=PLE1NFmwWU22vIpWxuMI45u2SixJNBTQFr">Relax music <var title="by...">Javek</var></li>
<li class="li_media-player" onclick="document.getElementById('media_player_iframe').src = this.getAttribute('value'); document.getElementById('media_player_iframe').style.removeProperty('display');" value="https://www.youtube-nocookie.com/embed/videoseries?si=fY_7uIOzkVbjqwfL&controls=0&list=PLi2kbcGfLxtZN2bP95Wv9BBZtV77WoG0T">deep ambient <var title="by...">JJE</var></li>
<li class="li_media-player" onclick="document.getElementById('media_player_iframe').src = this.getAttribute('value'); document.getElementById('media_player_iframe').style.removeProperty('display');" value=""> <var title="by..."></var></li>
</details>
<details>
<summary style="margin-left: -20px;">Generic chill</summary>
<li class="li_media-player" onclick="document.getElementById('media_player_iframe').src = this.getAttribute('value'); document.getElementById('media_player_iframe').style.removeProperty('display');" value="https://www.youtube-nocookie.com/embed/videoseries?si=W3NMQtWQAzMs5ryN&controls=0&list=PLdE7uo_7KBkeSTmryNClNxUkioFpq3Btx">Chillout <var title="by...">Chill Music Lab</var></li>
<li class="li_media-player" onclick="document.getElementById('media_player_iframe').src = this.getAttribute('value'); document.getElementById('media_player_iframe').style.removeProperty('display');" value="https://www.youtube-nocookie.com/embed/videoseries?si=JL81gxwah2ncu5XL&controls=0&list=PLdE7uo_7KBkf6X1lbOpL3tAWERvlYej2L">The Best of Chill Music Lab <var title="by...">Chill Music Lab</var></li>
<li class="li_media-player" onclick="document.getElementById('media_player_iframe').src = this.getAttribute('value'); document.getElementById('media_player_iframe').style.removeProperty('display');" value=""> <var title="by..."></var></li>
</details>
<details>
<summary style="margin-left: -20px;">Sci-Fi Ambient</summary>
<li class="li_media-player" onclick="document.getElementById('media_player_iframe').src = this.getAttribute('value'); document.getElementById('media_player_iframe').style.removeProperty('display');" value="https://www.youtube-nocookie.com/embed/videoseries?si=L-MGrW68Jwa7EhAC&controls=0&list=PLTn-J7HDP8WmrYFXE0NPFJjYbReMUKa8R">Cozy Summer Ambient Sci Fi Music <var title="by...">Retrocausal Memories</var></li>
</details>
</ul>
<!--<ul style="list-style-type: decimal; margin-block: 0; padding-inline-start: 20px;">
<strong style="margin-inline-start: -20px;">Playlists from Spotify</strong>
<li class="li_media-player" onclick="document.getElementById('media_player_iframe').src = this.getAttribute('value');" value="https://open.spotify.com/embed/playlist/0vvXsWCC9xrXsKd4FyS8kM?theme=0">Lofi Beats to relax/study <var title="by...">LofiGirl</var></li>
<li class="li_media-player" onclick="document.getElementById('media_player_iframe').src = this.getAttribute('value');" value="https://open.spotify.com/embed/playlist/2Al9G2jrWkwDlRFMZaw1GX?theme=0">lofi Jazz Cafe <emoji>🎷</emoji> Study Beats & Chill Vibes <var title="by...">Chill Select</var></li>
<li class="li_media-player" onclick="document.getElementById('media_player_iframe').src = this.getAttribute('value');" value="https://open.spotify.com/embed/playlist/4FMOBw7eopNczgfzspCvIP?theme=0">Deep Ambient <var title="by...">thebootlegboy</var></li>
<li class="li_media-player" onclick="document.getElementById('media_player_iframe').src = this.getAttribute('value');" value=""> <var title="by..."></var></li>
</ul>-->
</div>
</div>
</div>
</div>
<div id="Daily_Advise" style="display: none; color: white; background: #ffffff26; border-radius: 10px; /*resize: both;*/ width: 280px; height: 125px; top: 0px; left: 45px; position: absolute; padding: 4px; overflow: hidden; /*min-width: 360px; min-height: 150px;*/">
<div id="Drag&Drop_Quotes" style="display: flex; justify-content: space-between; cursor: grab; background-image: radial-gradient(#4e4e4e 1px, transparent 1px); background-size: 5px 5px;">
<span style="background: transparent; align-self: center;">Daily Advice</span>
<img src="/assets/icons/close_x.svg" alt="Close" onclick="document.getElementById('Daily_Advise').style.display = 'none';" style="background: transparent; cursor: pointer; border: red 2px;">
</div>
<div id="Quotes" style="font-family: serif; font-size: 1.05em; user-select: all;">Impossibile caricare la citazione</div>
</div>
<div id="Clock" style="display: none; color: black; background: white; border-radius: 10px; /*resize: both;*/ width: 500px; height: 235px; top: 25%; left: 15%; position: absolute; padding: 4px; overflow: hidden; /*min-width: 360px; min-height: 150px;*/">
<div id="Drag&Drop_clock" style="height: 20px; display: flex; justify-content: space-between; cursor: grab; background-image: radial-gradient(#4e4e4e 1px, transparent 1px); background-size: 5px 5px;">
<span style="background: transparent; align-self: center;"></span>
<img src="/assets/icons/close_x.svg" alt="Close" onclick="document.getElementById('Clock').style.display = 'none';" style="background: transparent; cursor: pointer; border: red 2px;">
</div>
<div style="display: flex; flex-direction: row; justify-content: space-between;">
<hx class="Clock_buttons">Clock</hx>
<hx class="Clock_buttons">Pomodoro timer</hx>
<hx class="Clock_buttons">Alarm clock</hx>
<hx class="Clock_buttons">Timer</hx>
<hx class="Clock_buttons">Stopwatch</hx>
</div>
<div name="main">
<select hidden>
<option value="Scrolling" selected>Scrolling clock</option>
<option value="7Segment">7 segment clock</option>
<option value="LED">LED clock</option>
<option value="Analogic">Analogic clock</option>
</select>
<div name="clock">
<!--<div name="ScrollingClock" style="display: flex; color: whitesmoke; font-family: 'Kanit'; text-align: center; justify-content: center; zoom: 190%;">
<div name="ore" style="display: flex; flex-direction: column; width: 5.35em; background: #1e1e1e; height: 12vh;">
<div style="height: 50%; font-size: 70px; overflow-x: auto;">0</div>
<div style="height: 50%; font-size: 70px; overflow-x: auto;">1</div>
</div>
<div name="minuti"></div>
<div name="secondi"></div>
</div>-->
<div name="ScrollingClock" style="display: flex; color: whitesmoke; font-family: 'Kanit'; text-align: center; justify-content: center; zoom: 190%;">
<div id="ore_SC" style="width: 5.35em; background: #1e1e1e; height: 12vh;">
<hr style="margin-block: 0; top: 50%; position: relative;">
<hx name="next" style="display: block; font-size: 8vh; height: 0; overflow: hidden; transition: max-height 1s linear; max-height: 82px;">56</hx>
<hx style="display: block; font-size: 8vh;">55</hx>
</div>
<div id="minuti_SC" style="width: 5.35em; background: #1e1e1e; margin-inline: 3px; height: 12vh;">
<hr style="margin-block: 0; top: 50%; position: relative;">
<hx name="next" style="display: block; font-size: 8vh; height: 0; overflow: hidden; transition: max-height 1s linear; max-height: 82px;">56</hx>
<hx style="display: block; font-size: 8vh;">55</hx>
</div>
<div id="secondi_SC" style="width: 5.35em; background: #1e1e1e; height: 12vh;">
<hr style="margin-block: 0; top: 50%; position: relative;">
<hx name="next" style="display: block; font-size: 8vh; height: 0; overflow: hidden; transition: max-height 1s linear; max-height: 82px;">56</hx>
<hx style="display: block; font-size: 8vh;">55</hx>
</div>
</div>
</div>
</div>
</div>
<div id="WebResearch" style="display: none; color: black; background: white; border-radius: 10px; resize: both; /*width: 500px; height: 235px;*/ top: 290px; left: 0px; position: absolute; padding: 4px; overflow: hidden; min-width: 310px; min-height: 250px;">
<div id="Drag&Drop_WebResearch" style="height: 20px; display: flex; justify-content: space-between; cursor: grab; background-image: radial-gradient(#4e4e4e 1px, transparent 1px); background-size: 5px 5px;">
<span style="background: transparent; align-self: center;"></span>
<img src="/assets/icons/close_x.svg" alt="Close" onclick="document.getElementById('WebResearch').style.display = 'none';" style="background: white; cursor: pointer; border: red 2px; height: auto; border-top-right-radius: 10px;">
</div>
<div style="overflow: auto; height: -webkit-fill-available;">
<h1 style="margin-block: 10px; margin-bottom: -5px; justify-self: center; font-family: 'Poiret One'; color: #333333;">Chill Search</h1>
<div class="gcse-search"></div>
<!-- <iframe id="result-frame"></iframe> -->
</div>
</div>
</div>
</div>
<div id="background">
<img id="background_img" src="https://www.icegif.com/wp-content/uploads/icegif-5597.gif" alt=":(" style="z-index: -1;">
<img src="https://www.icegif.com/wp-content/uploads/icegif-5597.gif" alt=":(" style="z-index: -2; filter: blur(10px); object-fit: cover;">
<div id="player" name="youtube API iframe"></div>
<!--
<iframe src="https://www.youtube.com/embed/zTK9DhM6OQc?autoplay=1&mute=1&controls=0&loop=1" frameborder="0" style="display: none; loading="lazy""></iframe>
-->
</div>
<script src="https://www.youtube.com/iframe_api"></script>
</body>
</html>
<style>
@media (min-width: 375px) { /* Schermi maggiore o uguale a 375px */
#slidebar_menu {
display: flex;
}
#menu {
margin-left: 5px;
margin-top: 0px;
}
#WebResearch {
width: 500px;
height: 235px;
}
}
@media (max-width: 374px) { /* Schermi inferiore a 375px */
#slidebar_menu {
display: grid;
}
#menu {
margin-left: 0px;
margin-top: 5px;
}
#WebResearch {
width: 310px;
height: 250px;
}
}
</style>
<script> //Salva e carica da sessionStorage i valori nel menu
function SalveInSS(id, value) {
sessionStorage.setItem(id, value);
}
// Carica il valore dal sessionStorage e aggiorna il volume
function CaricaDaSS(id) {
let el = document.getElementById(id);
if (!el) {
console.warn(`Elemento con id "${id}" non trovato.`);
return;
}
let savedValue = sessionStorage.getItem(id);
if (savedValue !== null) {
el.value = savedValue;
// Salviamo la funzione da eseguire dopo interazione utente
function applySavedVolume() {
const audio = el.parentElement.querySelector('audio');
audio.volume = el.value / 100;
if (el.value > 0) {
audio.play();
}
document.removeEventListener('click', applySavedVolume);
document.removeEventListener('keydown', applySavedVolume);
}
// Attiva dopo prima interazione
document.addEventListener('click', applySavedVolume);
document.addEventListener('keydown', applySavedVolume);
} else {
el.value = 0;
console.warn(`Nessun valore salvato trovato per "${id}".`);
}
}
</script>
<script> // Rintraccia link da GCS (Google custom research)
/*
// Aspetta il caricamento dei risultati
document.addEventListener('DOMContentLoaded', function () {
// Aggiungi event listener al contenitore dei risultati
document.body.addEventListener('click', function (e) {
const target = e.target.closest('a');
if (target && target.href && target.closest('.gsc-webResult')) {
e.preventDefault();
const iframe = document.getElementById('result-frame');
iframe.src = target.href;
return false;
}
});
});
*/
</script>
<script> // Funzione per ottenere la citazione del giorno (ZenQuotes.io)
const QUOTE_KEY = 'daily_quote';
const QUOTE_TIME_KEY = 'quote_timestamp';
const ONE_DAY_MS = 24 * 60 * 60 * 1000;
async function caricaCitazioneZenQuotes() {
const now = Date.now();
const savedQuote = localStorage.getItem(QUOTE_KEY);
const savedTime = localStorage.getItem(QUOTE_TIME_KEY);
// Se la citazione esiste e non è scaduta
if (savedQuote && savedTime && now - parseInt(savedTime) < ONE_DAY_MS) {
document.getElementById('Quotes').innerHTML = savedQuote;
return;
}
// Altrimenti, recupera una nuova citazione dall'endpoint Vercel
try {
const response = await fetch('/api/quote');
const data = await response.json();
if (Array.isArray(data) && data.length > 0) {
const quote = data[0].q;
const author = data[0].a;
const htmlQuote = `${quote}<br><hx style="font-size: 1.3em;color:#E0E0E0;font-family:'Tangerine';">${author}</hx>`;
// Salva in localStorage
localStorage.setItem(QUOTE_KEY, htmlQuote);
localStorage.setItem(QUOTE_TIME_KEY, now.toString());
document.getElementById('Quotes').innerHTML = htmlQuote;
} else {
document.getElementById('Quotes').innerText = 'Citazione non disponibile.';
}
} catch (errore) {
console.error('Errore nel recupero della citazione:', errore);
document.getElementById('Quotes').innerText = 'Errore nel caricamento della citazione.';
}
}
// Controlla ogni ora se la citazione è scaduta
setInterval(caricaCitazioneZenQuotes, 60 * 60 * 1000); // ogni ora
// Carica al primo avvio
window.addEventListener('DOMContentLoaded', caricaCitazioneZenQuotes);
</script>
<script>//Fuzioni per il drag&drop di widget
document.addEventListener('DOMContentLoaded', function () {
const DRAGGABLE_IDS = ['Drag&Drop_MediaPlayer', 'Drag&Drop_Quotes', 'Drag&Drop_clock', 'Drag&Drop_WebResearch']; // ID delle maniglie di drag
DRAGGABLE_IDS.forEach(dragHandleId => {
const dragHandle = document.getElementById(dragHandleId);
if (!dragHandle) {
console.warn(`Elemento con ID "${dragHandleId}" non trovato.`);
return;
}
const draggableElement = dragHandle.parentElement;
const parentId = draggableElement.id;
if (!draggableElement || !parentId) {
console.warn(`Elemento padre valido non trovato per "${dragHandleId}".`);
return;
}
// Ripristina la posizione dal sessionStorage se presente
const savedPosition = sessionStorage.getItem(`dragPos_${parentId}`);
if (savedPosition) {
try {
const { top, left } = JSON.parse(savedPosition);
draggableElement.style.top = top;
draggableElement.style.left = left;
} catch (e) {
console.warn(`Errore nel parsing della posizione salvata per "${parentId}".`);
}
}
dragHandle.style.cursor = 'grab';
dragHandle.onmousedown = function (e) {
e.preventDefault();
let offsetX = e.clientX;
let offsetY = e.clientY;
const onMouseMove = function (e) {
e.preventDefault();
const dx = e.clientX - offsetX;
const dy = e.clientY - offsetY;
offsetX = e.clientX;
offsetY = e.clientY;
draggableElement.style.top = (draggableElement.offsetTop + dy) + "px";
draggableElement.style.left = (draggableElement.offsetLeft + dx) + "px";
};
const onMouseUp = function () {
document.removeEventListener('mousemove', onMouseMove);
document.removeEventListener('mouseup', onMouseUp);
dragHandle.style.cursor = 'grab';
// Salva la posizione nel sessionStorage
sessionStorage.setItem(`dragPos_${parentId}`, JSON.stringify({
top: draggableElement.style.top,
left: draggableElement.style.left
}));
};
document.addEventListener('mousemove', onMouseMove);
document.addEventListener('mouseup', onMouseUp);
dragHandle.style.cursor = 'grabbing';
};
});
});
</script>
<script>
function Pannel(pannel) {
var scenery = document.getElementById('scenery');
var soundboard = document.getElementById('soundboard');
var calendar = document.getElementById('calendar');
var menu = document.getElementById('menu');
if (pannel === 'Space') {
if (scenery.style.display === 'none') {
scenery.style.display = 'block';
soundboard.style.display = 'none';
calendar.style.display = 'none';
} else if (scenery.style.display === 'block') {
scenery.style.display = 'none';
soundboard.style.display = 'none';
calendar.style.display = 'none';
}
} else if (pannel === 'Sound') {
if (soundboard.style.display === 'none') {
scenery.style.display = 'none';
soundboard.style.display = 'block';
calendar.style.display = 'none';
} else if (soundboard.style.display === 'block') {
scenery.style.display = 'none';
soundboard.style.display = 'none';
calendar.style.display = 'none';
}
} else if (pannel === 'Calendar') {
if (calendar.style.display === 'none') {
scenery.style.display = 'none';
soundboard.style.display = 'none';
calendar.style.display = 'block';
} else if (calendar.style.display === 'block') {
scenery.style.display = 'none';
soundboard.style.display = 'none';
calendar.style.display = 'none';
}
}
if (scenery.style.display === 'none' && soundboard.style.display === 'none' && calendar.style.display === 'none') {
menu.style.display = 'none';
} else {
menu.style.display = 'block';
}
}
document.addEventListener('click', function(event) {
if (!event.target.closest('.icons') && !event.target.closest('.arrow') && !event.target.closest('#menu') && !menu.contains(event.target)) {
scenery.style.display = 'none';
soundboard.style.display = 'none';
menu.style.display = 'none';
//app.style.display = 'none';
}
});
</script>
<script>
function ChangeBackground(src) {
var backgrounds = document.querySelectorAll('#background > img');
if (backgrounds.length > 0) {
backgrounds.forEach(background => {
background.src = src;
});
} else {
backgrounds.forEach(background => {
background.alt = "The background don't found, please try with another imagine.";
});
}
}
</script>
<script>
document.querySelectorAll('audio').forEach(audio => audio.volume = 0.0);
</script>
<script> //Video player x background
/*var player;
// Quando l'API di YouTube è pronta
function onYouTubeIframeAPIReady() {
player = new YT.Player('player', {
videoId: 'zTK9DhM6OQc', // ID del video YouTube
playerVars: {
autoplay: 1, // Avvia automaticamente
mute: 1, // Muto all'inizio
controls: 0, // Nasconde i controlli
loop: 1, // Fa loop
modestbranding: 1, // Nasconde il logo di YouTube
rel: 0, // Nasconde i video correlati alla fine
fs: 0, // Nasconde il pulsante di fullscreen
iv_load_policy: 3, // Nasconde i sottotitoli e le annotazioni
cc_load_policy: 0, // Nasconde i sottotitoli
playlist: 'zTK9DhM6OQc' // Necessario per il loop
},
events: {
onReady: function(event) {
// Nasconde il video inizialmente
var playerElement = document.getElementById('player');
playerElement.style.display = 'none';
// Aspetta 4.5 secondi e poi mostra il video
setTimeout(function() {
playerElement.style.display = 'block';
event.target.playVideo();
}, 4500);
},
onError: function(event) {
console.error('Errore nel caricamento del video:', event.data);
}
}
});
}
*/
</script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Fuzzy+Bubbles:wght@400;700&family=Kanit:wght@400;500;600;800&family=Life+Savers:wght@400;800&family=Poiret+One&family=Tangerine&display=swap');
body {
font-family: 'Fuzzy Bubbles', 'Life Savers', cursive;
font-weight: normal;
user-select: none;
}
h3 {
margin-block: 5px
}
.SceneryIcons {
width: 48%;
border-radius: 10px;
margin: 1%;
cursor: pointer;
min-height: 62.16px;
aspect-ratio: 117.6 / 66.2;
object-fit: cover;
image-rendering: pixelated; /* Optimize for speed by reducing quality */
will-change: transform; /* Optimize rendering performance */
transform: translateZ(0); /* Enable GPU acceleration */
}
.SceneryIcons_Video {
width: 48%;
border-radius: 10px;
margin: 1%;
position: relative;
cursor: pointer;
}
.SceneryIcons_Video::after {
content: '\25B6'; /* Unicode for play symbol */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 2em;
color: white;
text-shadow: 0 0 5px black;
pointer-events: none;
z-index: 1;
}
emoji {
font-family: 'Segoe UI Emoji';
user-select: none;
}
img {
pointer-events: auto;
-webkit-user-drag: none;
user-select: none;
}
img.icons {
background: transparent;
user-select: none;
}
.icons:hover {
background: rgb(230, 230, 230);
border-radius: 10px;
}
.icons:active {
fill: darkgreen;
mix-blend-mode: difference;
background: transparent;
}
p {
margin-block: 5px;
}
input[type="range"] {
margin-block: 2px;
}
input[type="url"] {
margin-block: 2px;
}
li.li_media-player{
color: -webkit-link;
text-decoration: underline;
cursor: pointer;
}
var {
color: gray;
font-size: 0.8em;
font-style: italic;
}
.Clock_buttons{
background: transparent;
cursor: pointer;
padding-inline: 3px;
padding-block: 2px;
}
.Clock_buttons:hover {
background: rgb(230, 230, 230);
border-radius: 5px;
cursor: pointer;
padding-inline: 3px;
padding-block: 2px;
}
iframe#player, #player {
position: absolute;
position-area: center;
z-index: -1;
/* object-fit: cover; */
pointer-events: none;
zoom: 2;
max-width: 1280px;
}
#background > img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
object-fit: cover;
pointer-events: none;
-webkit-user-drag: none;
user-select: none;
image-rendering: -webkit-optimize-contrast; /* Default rendering */
}
</style>