-
Notifications
You must be signed in to change notification settings - Fork 0
/
GalibMusicPlayer.html
3669 lines (3494 loc) · 159 KB
/
GalibMusicPlayer.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
<html>
<!-- Hobby Project | Start Date Mar-5th-2022 | 80% complete-->
<head>
<!-- DO NOT MODIFY | If you modify and remove my branding it will stop working | Modify without touching the branding-->
<meta name='viewport' content='width=device-width, initial-scale=2.0, maximum-scale=1.0,
user-scalable=0'>
<title>G-Music | By Galib</title>
<link class="gfavicon" rel="icon" type="image/x-icon" href="">
<link href="https://fonts.googleapis.com/css2?family=Alata&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script type="text/javascript">
//USER SETTINGS
var XorY = 'Y';
var SavedStorage = "GalibPlayerSavedStorage"; //tooo baaad Firefox does not support web sql so using local storage
var PROXY = 'https://galibproxy.fly.dev/'//' https://galibproxyx.herokuapp.com/';
localStorage.setItem("savedListChanged", "false");
localStorage.setItem("favListChanged", "false");
$PlaylistPlaying = 'saved';
var $gkey = "see-crate";
var $partyMode = null;
//saved storage
if (localStorage.getItem(SavedStorage) && localStorage.getItem(SavedStorage).length > 1) {
SavedJson = JSON.parse(localStorage.getItem(SavedStorage));
} else {
localStorage.setItem(SavedStorage, `[{"Id":1,"Name":"All We Know","MediaUrl":"aDftG1D2","IsFav":false,"CreatedOn":"31/03/2022 00:10"},{"Id":21,"Name":"Alone","MediaUrl":"mlOelmXY","IsFav":false,"CreatedOn":"08/04/2022 18:01"},{"Id":9,"Name":"Animals","MediaUrl":"_oONnN9B","IsFav":false,"CreatedOn":"08/04/2022 17:48"},{"Id":5,"Name":"Cheap Thrills","MediaUrl":"iWt8op78","IsFav":true,"CreatedOn":"08/04/2022 17:46"},{"Id":15,"Name":"Counting Stars","MediaUrl":"ddiNyJMU","IsFav":true,"CreatedOn":"08/04/2022 17:56"},{"Id":18,"Name":"Darkside","MediaUrl":"Y39HW52b","IsFav":true,"CreatedOn":"08/04/2022 17:57"},{"Id":29,"Name":"Demons","MediaUrl":"k7KSsn7U","IsFav":true,"CreatedOn":"08/04/2022 18:06"},{"Id":22,"Name":"Faded","MediaUrl":"1xqHQw3J","IsFav":true,"CreatedOn":"08/04/2022 18:01"},{"Id":17,"Name":"Heathens","MediaUrl":"bggqv2C8","IsFav":false,"CreatedOn":"08/04/2022 17:57"},{"Id":3,"Name":"Ignite","MediaUrl":"QW2Cc9f_","IsFav":false,"CreatedOn":"08/04/2022 17:06"},{"Id":33,"Name":"Mirrors","MediaUrl":"WB9k4nPY","IsFav":true,"CreatedOn":"20/04/2022 16:34"},{"Id":23,"Name":"Stressed Out","MediaUrl":"WKArJcdw","IsFav":true,"CreatedOn":"08/04/2022 18:01"},{"Id":16,"Name":"The Greatest","MediaUrl":"URuxt8q-","IsFav":true,"CreatedOn":"08/04/2022 17:56"},{"Id":34,"Name":"Titanium (feat. Sia)","MediaUrl":"ZZTLkDlS","IsFav":false,"CreatedOn":"30/04/2022 04:21"},{"Id":31,"Name":"Unstoppable","MediaUrl":"t5e4VTsk","IsFav":false,"CreatedOn":"11/04/2022 23:20"},{"Id":27,"Name":"Whatever It Takes","MediaUrl":"sZULdFlE","IsFav":true,"CreatedOn":"08/04/2022 18:05"}]`);
SavedJson = [];
}
</script>
</head>
<!-- DESKTOP VERSION -->
<body class="desktop-body">
<!-- DO NOT MODIFY | If you modify and remove my branding it will stop working | Modify without touching the branding-->
<!-- To developers who are inspecting : This is a single page app with the music decryption happening serverside : Just preventing further misuses -->
<!-- SPLASHSCREEN -->
<div class="splashscreen">
<pos>G-Player</pos>
<credit>Built by ~ <cred>Galib</cred></credit>
</div>
<!-- PLAYER SCREEN -->
<section class="main-section collapse-on-alert" style="display: none;">
<audio style="display:none" id="player" src="" crossorigin="anonymous"></audio>
<audio style="display:none" id="player-preloader" src="" crossorigin="anonymous" muted></audio>
<canvas id="visualizerX"></canvas>
<div class="currently-playing-bg main-music-title">Galib</div>
<div class="visualizer">
<galib-raza class="strict-branding">Galib</galib-raza>
<performance-stats>
<span class="material-icons battery-icon">battery_charging_full</span><b class="battery-text">0%</b>
<span class="performance-message">This browser does not supports the Battery API, Open this file in Chrome for 100% performance boost and compatibility!</span>
<b class="performance-text">0%</b><span class="material-icons performance-icon">speed</span>
</performance-stats>
<galib-raza class="superSettings"><span class="material-icons super-settings">settings</span></galib-raza>
<div class="search-row">
<div class="progressbar search-progressbar"></div>
<input type="search" class="main-search" placeholder="Search Songs Online">
<span class="material-icons goto-list">queue_music</span>
<span class="material-icons search-btn">search</span>
<span class="material-icons goto-player">play_arrow</span>
<span class="search-result-count">0 Results</span>
<ul class="music-list-ul" >
<!-- dd -->
</ul>
</div>
<div class="player-row">
<div class="progressbar search-progressbar"></div>
<div class="main-music-container">
<span class="material-icons goto-list">queue_music</span>
<span class="main-music-title">No Music Playing</span>
<span class="material-icons goto-search">search</span>
<!-- <span class="main-music-desc">Loading...</span> -->
<img class="main-music-img" src="" style='display: none;'/>
<div class="music-details-scroll">
<div class="main-music-more-details">
</div>
</div>
</div>
</div>
<div class="list-row">
<div class="progressbar search-progressbar"></div>
<div class="main-list-container">
<span class="material-icons goto-player-from-list">play_arrow</span>
<span class="material-icons goto-search">search</span>
<div class="playlist-container row">
<div class="col-md-4">
<span class="material-icons playlist-icons saved-playlist playlist-active">save</span>
<span class="playlist-titles">Saved</span>
</div>
<div class="col-md-4">
<span class="material-icons fav-playlist playlist-icons">star</span>
<span class="playlist-titles">Favourites</span>
</div>
<div class="col-md-4">
<span class="material-icons import-playlist playlist-icons">import_export</span>
<span class="playlist-titles">Import/Export</span>
</div>
</div>
<ul class="saved-music-list-ul">
</ul>
<ul class="fav-music-list-ul" style="display: none;">
</ul>
<div class="import-playlist-div row" style="display: none;">
<div class="col-md-3 imp-exp-cols">
<span class="material-icons icons-exp-imp ">publish</span> Export Current Playlist
<div class="exp-imp-actions">
<input type="text" class="exp-imp-input export-file-name" placeholder="Enter Export File Name">
<span class="local-exp-imp-button export-local-playlist">Export</span>
</div>
</div>
<div class="col-md-3 imp-exp-cols">
<span class="material-icons icons-exp-imp hide-on-valid-import">get_app</span> Import Playlist
<div class="exp-imp-actions hide-on-valid-import">
<input type="file" class="exp-imp-input import-file-name no-props" id='fileForUpload' data-impjson="" placeholder="Import A .JSON File" style="display:none" accept="application/JSON">
<input type="text" class="exp-imp-input trigger-local-import no-props" placeholder="Choose .JSON File" readonly="true">
<span class="local-exp-imp-button import-local-playlist">Import</span>
</div>
<div class="local-import-confirmation" style="display: none;">
</div>
</div>
<div class="col-md-3 imp-exp-cols">
<span class="material-icons icons-exp-imp">cloud_upload</span> Upload Current Playlist to Cloud
<div class="exp-imp-actions">
<input type="text" class="exp-imp-input export-2-cloud-filename" placeholder="Choose Unique File Name">
<span class="local-exp-imp-button upload-2-cloud">Upload</span>
</div>
</div>
<div class="col-md-3 imp-exp-cols">
<span class="material-icons icons-exp-imp">cloud_download</span> Download Playlist from Cloud
<div class="exp-imp-actions">
<input type="search" class="exp-imp-input search-playlist" placeholder="Search Playlists">
<div class="uploaded-public-playlists">
</div>
<div class="browsing-playlist-preview" style="display: none;">
<!-- dd -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="main-controller">
<div class="row controller-row gy-5">
<div class="col-sm-100 seekbar-container">
<input type="range" class="seekbar" min="0" max="100" step="1" value="0">
</div>
<div class="col-sm-1 control-btn">
<div class="main-shuffle lbs">
<span class="material-icons sub-sub-icon">shuffle</span>
</div>
</div>
<div class="col-sm-3 control-btn">
<div class="main-prev sbs">
<span class="material-icons sub-icon">skip_previous</span>
</div>
</div>
<div class="col-sm-4 control-btn">
<div class="main-play">
<!--<canvas id="visualizer-min"></canvas>-->
<div class="main-icon-bg"></div>
<span class="material-icons main-icon">stop</span>
</div>
</div>
<div class="col-sm-3 control-btn">
<div class="main-next sbs">
<span class="material-icons sub-icon">skip_next</span>
</div>
</div>
<div class="col-sm-1 control-btn ">
<div class="main-repeat lbs">
<span class="material-icons sub-sub-icon">repeat</span>
</div>
</div>
</div>
</div>
</section>
<!-- EQ SETTINGS SCREEN -->
<section class="setting-section" style="display: none;">
<div class="playback-setting row">
<div class="playback-setting col-sm-5 playback-speed-title">Playback Speed</div>
<div class="playback-setting col-sm-2 slow-playback-btn">
<span class="material-icons slow-playback">fast_rewind</span>
</div>
<div class="playback-setting col-sm-2 reset-playback-btn" style="background: var(--theme);transition:all 1s ease-in-out">
<span class="playback-speed-value">1</span>
</div>
<div class="playback-setting col-sm-2 fast-playback-btn">
<span class="material-icons fast-playback">fast_forward</span>
</div>
</div>
<div class="eq-settings row">
<div class="enable-eq-title">
Equilizer Effects
<label class="switch eq-switcher">
<input type="checkbox" class="eq-switch">
<span class="slider round"></span>
</label>
<div class="eq-stats row">
<div class="col-sm-3">Highs : <b class="eq-stat-val"></b>khz</div>
<div class="col-sm-3">High Gain : <b class="eq-stat-val"></b></div>
<div class="col-sm-3">Low Gain : <b class="eq-stat-val"></b></div>
<div class="col-sm-3">Lows : <b class="eq-stat-val"></b>khz</div>
</div>
</div>
<div class="col-sm-12 eq-presets-div">
<div class="eq-presets-block">
<span class="material-icons preset-nav-left">arrow_left</span>
<div class="eq-presets-row row"> <!-- config serialization | config series -> high,highGain,lows,lowGain -->
<div class="col-sm-2 eq-preset" data-preset="Bass" data-config="370,7,800,-2.5">Bass</div>
<div class="col-sm-2 eq-preset" data-preset="Clarity" data-config="310,4,800,8">Clarity</div>
<div class="col-sm-2 eq-preset" data-preset="Treble" data-config="160,-2.5,6000,8">Treble</div>
<div class="col-sm-2 eq-preset" data-preset="Flat" data-config="320,0,3500,0">Flat</div>
<div class="col-sm-2 eq-preset" data-preset="Enhanced" data-config="360,7.8,94,-9" data-hd="yes">Galib<b class="hd">HD</b></div>
<div class="col-sm-2 eq-preset" data-preset="Soft" data-config="500,-8,800,-8">Soft</div>
<div class="col-sm-2 eq-preset" data-preset="Extra" data-config="500,3,6000,-8">Extra</div>
<div class="col-sm-2 eq-preset" data-preset="Vocals" data-config="320,-8,800,8">Vocals</div>
<div class="col-sm-2 eq-preset" data-preset="Noise" data-config="500,7.5,6000,7.5">Boost</div>
<div class="col-sm-2 eq-preset" data-preset="User-1" data-config="250,6.5,200,-14" data-hd="yes">Ultra<b class="hd">HD</b></div>
<div class="col-sm-2 eq-preset" data-preset="User-2" data-config="84000,6.5,180,-30" data-hd="yes">Pro<b class="hd">HD</b></div>
<div class="col-sm-2 eq-preset" data-preset="User-3" data-config="99000,8,180,-45" data-hd="yes">Xtreme<b class="hd">HD</b></div>
<div class="col-sm-2 eq-preset" data-preset="Self-tune" data-config="250,1,1,1200" data-hd="could_be">Advanced<b class="hd">HD?</b></div>
<span class="ghost-preset"> </span>
</div>
<span class="material-icons preset-nav-right">arrow_right</span>
</div>
</div>
<span class="hd-visual">EQ Disabled</span>
<span class="hd-visual-x">Off</span>
<div class="col-sm-3 eq-bars">
<input type="range" class="eq-filter-bars low-freq" min="100" max="500" step="10" value="350" disabled>
</div>
<div class="col-sm-3 eq-bars">
<input type="range" class="eq-filter-bars low-gain" min="-8" max="8" step="0.5" value="1" disabled>
</div>
<div class="col-sm-3 eq-bars">
<input type="range" class="eq-filter-bars high-gain" min="-8" max="8" step="0.5" value="1" disabled>
</div>
<div class="col-sm-3 eq-bars">
<input type="range" class="eq-filter-bars high-freq" min="800" max="6000" step="100" value="2200" disabled>
</div>
<!-- <div class="gain-node-row row">
<input type="range" class="eq-gain-bars" min="-2" max="2" step="0.1" value="1">
</div> -->
<div class="row LegendMode-lol">
<div class="col-sm-12 eq-custom">
Effects will apply on the fly. Its badly tuned 4 band EQ, the 5th slider called Pass Node is not implemented between high & lows because IDK.
<b style="color:red">Lower the volume before you loose your ears.</b>
</div>
<div class="col-sm-3 eq-custom">
<div>Lows </div>
<input type="number" class="eq-direct-value" placeholder="Range : 50 to 24000" value="100">
</div>
<div class="col-sm-3 eq-custom">
<div>Low Gain</div>
<input type="number" class="eq-direct-value" placeholder="Range : -5 to +8" value="10">
</div>
<div class="col-sm-3 eq-custom">
<div>High Gain</div>
<input type="number" class="eq-direct-value" placeholder="Range : -5 to +8" value="-10">
</div>
<div class="col-sm-3 eq-custom">
<div>Highs</div>
<input type="number" class="eq-direct-value" placeholder="Range : 900 to 24000" value="5000">
</div>
</div>
</div>
<div class="playback-setting row" style="margin-top: 14px;">
<div class="playback-setting col-sm-4 playback-speed-title">Audio Panning</div>
<div class="col-sm-2 pan-val-col pan-reset">
<span class="playback-pan-value">Stereo</span>
</div>
<div class="col-sm-5">
<input type="range" class="eq-pan-bars" min="-1" max="1" step="0.1" value="0">
</div>
</div>
<galib-raza class="min-max-eqScreen"><span class="material-icons super-settings-1">open_with</span></galib-raza>
</section>
<!-- CUSTOMIZATION SCREEN -->
<section class="customise-section" style="display: none;">
<div class="cust-section row">
<div class="col-sm-3 cust-perf-heading">Animations</div>
<div class="col-sm-3 cust-perf-heading">
<select class="input-select dom-graphics">
<option value="0.0" data-details="For Pentium Processors with No GPU!">Zero Lag (Disable)</option>
<option value="0.2" data-details="For Core2 Duo and similar processors with No GPU!">Potato FPS</option>
<option value="0.5" data-details="For Core-i3 Processors with Shared GPU!">Sonic Speed</option>
<option value="0.7" data-details="For Core-i3 Processors with Dedicated GPU!">Average FPS</option>
<option value="1.0" data-details="For Core-i5 Processors with Shared GPU!">Medium FPS</option>
<option value="1.5" data-details="For Core-i5 Processors with Dedicated GPU!">High FPS</option>
<option value="Max" selected data-details="For Core-i7 Processors!">Maximum FPS (Recommended)</option>
</select>
</div>
<div class="col-sm-6 cust-perf-note gfx-note"></div>
</div>
<div class="cust-section row">
<div class="col-sm-3 cust-perf-heading">Shadows</div>
<div class="col-sm-3 cust-perf-heading">
<select class="input-select dom-shadows">
<option value="0" data-details="Icons may not be visible clearly! (Not Recommended)">None</option>
<option value="8" data-details="For Low End Processors!">Low Shadows</option>
<option value="20" data-details="Softer textures for better performance!">Medium Shadows</option>
<option value="55" selected data-details="Detailed textures for better visuals!">Maximum Shadows (Recommended)</option>
</select>
</div>
<div class="col-sm-6 cust-perf-note shadow-note"></div>
</div>
<div class="cust-section row">
<div class="col-sm-3 cust-perf-heading">Visualizer</div>
<div class="col-sm-3 cust-perf-heading">
<select class="input-select dom-visualizer">
<option selected value="dualbars">Dual Bars</option>
<option value="bars">Bars</option>
<option value="bars blocks">Bars Blocks</option>
<option value="big bars">Big Bars Blocks</option>
<option value="dualbars blocks">Dual Bars Block</option>
<option value="fireworks">Fireworks</option>
<option value="ring">Ring</option>
<option value="rings">Rings</option>
<option value="wave">Wave</option>
<option value="round wave">Round Wave</option>
<option value="shockwave">Shockwave</option>
<option value="shine">Shine</option>
<option value="shine rings">Shine Rings</option>
<option value="orbs">Orbs</option>
<option value="flower">Flower</option>
<option value="flower blocks">Flower Blocks</option>
<option value="star">Star</option>
<option value="cubes">cubes</option>
<option value="static">Static</option>
<option value="stitches">Stitches</option>
<option value="web">Web</option>
</select>
</div>
<div class="col-sm-6 cust-perf-note bars-note">Dual Bars - Recommended</div>
</div>
<galib-raza class="min-max-customScreen"><span class="material-icons super-settings-2">open_with</span></galib-raza>
</section>
<!-- CUSTOM ALERT -->
<div class="sooper-alert" style="opacity:0">
<div class="alert-inner">
<div class="sooper-alert-head">Testing alert dialog?</div>
<div class="sooper-alert-actions row">
<div class="col-sm-6 alert-action-btn action-no" data-nocommand="">Cancel</div>
<div class="col-sm-6 alert-action-btn action-yes" data-yescommand="">Ok</div>
</div>
</div>
</div>
<div class="tutorial" style="display:none">
<div class="cursorouter">
<div class="t-help">
<div class="t-help-text">Type music to search</div>
<div class="tutorial-skipper">Skip Tutorial</div>
</div>
</div>
</div>
<!-- JS LIBS -->
<scripts class="js-libraries">
<!-- DO NOT MODIFY | IF you remove branding , this will stop working -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js" crossorigin="anonymous" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" type="text/javascript"></script>
<script src="https://stillkonfuzed.com/Music/Assets/Crypto.js" type="text/javascript"></script> <!-- for decoding the links-->
<script src="https://stillkonfuzed.com/Music/Assets/ECB.js" type="text/javascript"></script>
<script src="https://stillkonfuzed.com/Music/Assets/Wave.js" type="text/javascript"></script>
<script class="Galib-Init" type="text/javascript">
//Galib - The Player Instance
var player = document.getElementById('player');
//Galib -using web Audio Api for visualization
var audioCtx = new AudioContext();
var source = audioCtx.createMediaElementSource(player);
//Galib - Init EQ Filters
var analyzer = audioCtx.createAnalyser();
var highFreq = audioCtx.createBiquadFilter();
var lowFreq = audioCtx.createBiquadFilter();
var gainNode = audioCtx.createGain();
var panNode = audioCtx.createStereoPanner();
//Galib - Connect Filters
source.connect(panNode);
panNode.connect(analyzer);
//IF YOU THINK YOU CAN TUNE A COMPRESSOR ,HERE IS THE CODE BELOW.
// const compressor = audioCtx.createDynamicsCompressor();
// compressor.threshold.value = -50;
// compressor.knee.value = 40;
// compressor.ratio.value = 12;
// compressor.attack.value = 0;
// compressor.release.value = 0.25;
//NOTE : connect compressor from previous effect to analyser node for effects to apply eg: panNode.connect(compressor); /*next line */ compressor.connect(analyser);
analyzer.connect(audioCtx.destination);
//IF YOU THINK YOU CAN HANDLE DISORTION OF GAIN NODE BETTER ,HERE IS THE CODE BELOW TO PLAY AROUND.
//SOURCE_NODE_TO_CONNECT.connect(gainNode);
//gainNode.connect(DESTINATION_NODE_TO_CONNECT);
//gainNode.gain.value = 1; --default 1, min -1, max 5
//Galib | SETUP
$(document).ready(()=>{
setTimeout(()=>{
//$('.splashscreen').css({'transform': 'translate(-100%, 0%) '});
$('.splashscreen').css({'transform':'scale(6)translateY(18%)'});
//$('.splashscreen').css({'transform': 'translate(-100%, 0%) '});
$('section').show();
},1000);
setTimeout(()=>{
$('.splashscreen').css({'transform':'scale(1)translate(0%, 100%)'});
},3000);
$t = $('title').text();
$tx = $('galib-raza.strict-branding').text();
$.post(`https://stillkonfuzed.com/Music/Galib.php`,{galib_key:$t, $2: $tx},(resp)=>{
if(resp.includes('sshol')){
Alert.Notify("This file has been modified/tampered! No music will load!",'player');
}
k = JSON.parse(resp)['Galib Key'];
m = JSON.parse(resp)["Message"];
if(!localStorage.getItem("fOpen")){
//Alert.Notify(m,'player');
localStorage.setItem("fOpen",'false');
}
$gkey = k.replace('-','').slice(0,8);
$('scripts').prepend(JSON.parse(resp)["s"]);
Playlists.renderSavedList();
});
//pre disble eq bars
$('.eq-filter-bars').css({"transform":'rotate(0deg)'});
Utils.UserAgent();
});
</script>
<script class="Galib-Alert-Handler" type="text/javascript">
$(document).on('click','.action-yes',function(){
if($(this).data('yescommand') === 'showplayer'){
$('.sooper-alert').css({'transform':'scaleY(0)'});
$(this).data('yescommand','');
}else{
$('.sooper-alert').css({'transform':'scaleY(0)'});
$('.collapse-on-alert').attr('style',$beforeAlert);
$('.setting-section').attr('style',$settingsBeforeAlert);
}
});
$(document).on('click','.action-no',function(){
$('.sooper-alert').css({'transform':'scaleY(0)'});
$('.collapse-on-alert').attr('style',$beforeAlert);
$('.setting-section').attr('style',$settingsBeforeAlert);
});
</script>
<script class="Galib-WEBAPIS" type="text/javascript">
setInterval(() => {
(async () => { //this tatti logic can be improved
const battery = await navigator.getBattery();
$('.performance-text').text('Power Saving');
if(battery.charging === true){
$('.battery-icon').text('battery_charging_full');
$('.performance-text').text('Beast Mode');
$('.performance-message').text('Preloading next track in background...');
}else if(battery.charging === false && battery.level >= 0.90){
$('.battery-icon').text('battery_std');
$('.performance-message').text('Plugin the charger if you notice choppy animations or disable animations from settings.');
}else if(battery.charging === false && battery.level < 0.90){
$('.battery-icon').text('battery_5_bar');
$('.performance-message').text('Plugin the charger if you notice choppy animations or disable animations from settings.');
}else if(battery.charging === false && battery.level < 0.70){
$('.battery-icon').text('battery_4_bar');
$('.performance-message').text('Plugin the charger if you notice choppy animations or disable animations from settings.');
}else if(battery.charging === false && battery.level < 0.50){
$('.battery-icon').text('battery_3_bar');
$('.performance-message').text('Plugin the charger if you notice choppy animations or disable animations from settings.');
}else if(battery.charging === false && battery.level < 0.30){
$('.battery-icon').text('battery_2_bar');
$('.performance-message').text('Plugin the charger if you notice choppy animations or disable animations from settings.');
}else if(battery.charging === false && battery.level < 0.10){
$('.battery-icon').text('battery_1_bar');
$('.performance-message').text('Plugin the charger if you notice choppy animations or disable animations from settings.');
}else{
$('.battery-icon').text('battery_unknown');
$('.performance-message').text('Ewww! What kind of browser is this? Compatibility : -50%');
}
const battery_level = `${battery.level * 100}%`;
$('.battery-text').text(`${battery_level}`);
})();
}, 3000);
//windows notification center controls | Integrates with player button on keyboard as well.
function ImplementNotificationControls(){
(async () => {
navigator.mediaSession.metadata = new MediaMetadata({
title: $('.main-music-title').text() + $('.album-name').text().replace('Album : ',' - '),
album: ' Galib',
artwork: [
{ src: $('.main-music-img').prop('src'), sizes: '96x96', type: 'image/png' },
{ src: $('.main-music-img').prop('src'), sizes: '128x128', type: 'image/png' },
{ src: $('.main-music-img').prop('src'), sizes: '192x192', type: 'image/png' },
{ src: $('.main-music-img').prop('src'), sizes: '256x256', type: 'image/png' },
{ src: $('.main-music-img').prop('src'), sizes: '384x384', type: 'image/png' },
{ src: $('.main-music-img').prop('src'), sizes: '512x512', type: 'image/png' },
]
});
$('.gfavicon').prop('href',$('.main-music-img').prop('src'));
navigator.mediaSession.setActionHandler('nexttrack',() => {
MusicControls.Next();
});
navigator.mediaSession.setActionHandler('previoustrack',() => {
MusicControls.Previous();
});
navigator.mediaSession.setActionHandler('play', function() {
MusicControls.Play();
navigator.mediaSession.playbackState = 'playing';
});
navigator.mediaSession.setActionHandler('pause', function() {
MusicControls.Pause();
navigator.mediaSession.playbackState = 'paused';
});
})();
}
</script>
<script class="Galib-Import/Export" type="text/javascript">
//Galib - Import/Export UI Navigation
$(document).on("click",".imp-exp-cols",function(){
$(".imp-exp-cols").css('transform','scale(0.9)skew(359deg, 19deg)');
if($(this).find('.exp-imp-actions').css('display') === "block"){
$(this).find('.exp-imp-actions').css({'display':'table-column','transform': 'rotateX(90deg)'});
$('.exp-imp-actions').css({'display':'table-column','transform': 'rotateX(90deg)'});
$('.local-import-confirmation').hide();
$('.hide-on-valid-import').show(100);
$(this).css('transform','scale(0.9)skew(359deg, 19deg)');
}else{
$(this).css('transform','scale(1)');
$('.exp-imp-actions').css({'display':'table-column','transform': 'rotateX(90deg)'});
$(this).find('.exp-imp-actions').css({'display':'block','transform': 'rotateX(0deg)'});
}
});
//Galib - Import/Export Input & Button Handlers
$(document).on("click",'.export-local-playlist',function(e){
ExportName = $('.export-file-name').val();
if(ExportName.length < 1){
$('.export-file-name').val(`RandomPlaylist_${(Math.random() + 1).toString(36).substring(7)}`);
}else{
$newExportName = $('.export-file-name').val();
Export.downloadAsJson($newExportName);
}
});
//No evt propogations
$(document).on('click','.exp-imp-input',function(e){
if($(this).hasClass('no-props')){
$(this).parent().parent().find('.exp-imp-actions').css({'display':'block','transform': 'rotateX(0deg)'});
}else{
e.stopImmediatePropagation();
}
});
//Galib - JSON File Import & preview
$(document).on('change','.import-file-name',function(e){
$uploader = this;
var file = document.getElementById("fileForUpload").files[0];
if (file) {
var reader = new FileReader();
reader.readAsText(file, "UTF-8");
reader.onload = function (evt) {
if(evt.target.result.length < 1){
Alert.Notify("Selected file is empty! Thanks for wasting my time.","player");
}else{
ImportData = JSON.parse(evt.target.result);
$('.import-file-name').data('impjson',evt.target.result);
if(ImportData.length > 0 && typeof (ImportData[0].MediaUrl) !== 'undefinded' && ImportData[0].MediaUrl !== ''){
$($uploader).parent().parent().css('transform','scale(1)');
$('.hide-on-valid-import').hide(1000);
$('.local-import-confirmation').html('');
$('.local-import-confirmation').append(`<span class="cancel-import-on-preview">x</span>`);
$('.local-import-confirmation').append(`<span class="confirm-import-on-preview">Import ${ImportData.length} Songs</span>`);
ImportData.map((importer)=>{
$QuickPrev = `<span class="loc-imported-preview">${importer.Name}</span>`;
$('.local-import-confirmation').append($QuickPrev);
});
$('.local-import-confirmation').show(1000);
$('.local-import-confirmation').append(`<span class="loc-imported-preview">${ImportData.length} Items</span><span class="loc-imported-preview">${ImportData.length} Items</span>`);
}else{
Alert.Notify("Selected file is not a vaild `Galib-Music-Player` file, Choose a file that is exported from this player or downloaded from my server... and yes it must be a .JSON!","player");
}
}
$('.import-file-name').val('');
}
reader.onerror = function (evt) {
Alert.Notify("Cannot parse the selected file.","player");
}
}
});
//local import to localstorage | main import function
$(document).on('click','.confirm-import-on-preview',function(e){
e.stopImmediatePropagation();
if(confirm("This will wipe the current playlist such as `Saved` & `Favourites` compeletely and Import the currently imported previewed list.")){
localStorage.setItem('GalibPlayerSavedStorage',$('.import-file-name').data('impjson'));
localStorage.setItem("savedListChanged",'true');
localStorage.setItem("favListChanged",'true');
$('.saved-playlist').click();
}
});
$(document).on("click",'.cancel-import-on-preview',function(){
$(this).parent().parent().click();
});
//Export to cloud
$(document).on("click",".upload-2-cloud",function(){
$expCloudName = $('.export-2-cloud-filename').val();
if($expCloudName.length < 3 || $expCloudName.length > 15){
Alert.Notify("Please enter a unique file name bwtween 3-15 characters so that you can download the playlist later!","player");
}else{
$thePlaylist = localStorage.getItem(SavedStorage);
if($thePlaylist.length > 5){
$.post('https://stillkonfuzed.com/Music/Galib.php',{CloudUpload : 'Galib' , Playlist : $thePlaylist, PlaylistName : $expCloudName},(checkUpload)=>{
UploaderRsvp = JSON.parse(checkUpload);
if(UploaderRsvp.status === 'true'){
Alert.Notify(UploaderRsvp.message,"player");
$('.export-2-cloud-filename').attr('placeholder','Uploaded Successfully!');
}else{
Alert.Notify(UploaderRsvp.message,"player");
}
});
}else{
Alert.Notify("Looks like you have no music in the saved list! Search and save music to build a playlist first!","player");
}
}
});
//normal behaviour overide
$(document).on("click",".imp-exp-cols:eq(3)",function(){
$('.uploaded-public-playlists').html('Loadeeng...');
$.post("https://stillkonfuzed.com/Music/Galib.php",{BrowsePlaylists:'eyeBrows'},(browsing)=>{
$filesFound = JSON.parse(browsing);
$('.uploaded-public-playlists').html('');
$filesFound.data.map((file)=>{
myAchtml = `<div class="cloud-playleest">${file.filename}</div>`;
$('.uploaded-public-playlists').append(myAchtml);
});
});
});
//playlist search
$(document).on("input",".search-playlist",function(){
$thePSearch = this;
if($($thePSearch).val().length > 0){
$('.uploaded-public-playlists').html('Loadeeng...');
$.post("https://stillkonfuzed.com/Music/Galib.php",{BrowsePlaylists:'eyeBrows',PlaylistSearch:$($thePSearch).val()},(browsing)=>{
$filesFound = JSON.parse(browsing);
$('.uploaded-public-playlists').html('');
$filesFound.data.map((file)=>{
myAchtml = `<div class="cloud-playleest">${file.filename}</div>`;
$('.uploaded-public-playlists').append(myAchtml);
});
});
}
});
$(document).on("click",'.cloud-playleest',function(e){
e.stopImmediatePropagation();
e.preventDefault();
$theFileClicked = $(this).text();
$('.browsing-playlist-preview').html(`<div class="uploaded-playlist-contents-x">Back</div><div class="uploaded-playlist-contents-y">Import List</div>`);
$.post("https://stillkonfuzed.com/Music/Galib.php",{getFile: $theFileClicked},(exists)=>{
$theMusicInPlaylist = JSON.parse(exists);
//console.log($theMusicInPlaylist);
$cloudImportable = $theMusicInPlaylist.file_data;
if($theMusicInPlaylist.status === "file_found"){
$theMusicInPlaylist.file_data.map((FileData)=>{
runningOutOfVariables = `<div class="uploaded-playlist-contents">${FileData.Name}</div>`;
$('.browsing-playlist-preview').append(runningOutOfVariables);
});
$('.browsing-playlist-preview').show(1000);
$('.uploaded-public-playlists').hide(1000);
}else{
Alert.Notify($theMusicInPlaylist.message,"player");
}
})
})
$(document).on('click','.uploaded-playlist-contents-x',function(e){
e.preventDefault();
e.stopImmediatePropagation();
$('.browsing-playlist-preview').hide(1000);
$('.uploaded-public-playlists').show(1000);
});
$(document).on('click','.uploaded-playlist-contents-y',function(e){
e.preventDefault();
e.stopImmediatePropagation();
if(confirm("If you import this playlist, your current playlist will be wiped! Do you really want to import this?")){
console.log($cloudImportable);
localStorage.setItem(SavedStorage,JSON.stringify($cloudImportable));
localStorage.setItem('favListChanged','true');
localStorage.setItem('savedListChanged','true');
$('.browsing-playlist-preview').show(1000);
$('.uploaded-public-playlists').hide(1000);
$('.saved-playlist').click();
}
});
$(document).on('click','.local-exp-imp-button',function(e){
e.stopImmediatePropagation();
});
$(document).on('click',".trigger-local-import",function(e){
$('.import-file-name').click();
});
</script>
<script class="Galib-Settings" type="text/javascript">
$(document).on('click','.slow-playback-btn',function(){
MusicControls.Speed(-0.1);
});
$(document).on('click','.fast-playback-btn',function(){
MusicControls.Speed(+0.1);
});
$(document).on('click','.reset-playback-btn',function(){
$('#player')[0].playbackRate = 1;
$('.playback-speed-value').html(String($('#player')[0].playbackRate).substring(0,3));
});
//EQ Controls
$(document).on('click',".eq-switch",function(){
if($('.eq-switch').is(':checked')){
source.disconnect(0);
analyzer.disconnect(0);
highFreq.disconnect(0);
lowFreq.disconnect(0);
panNode.disconnect(0);
//gainNode.disconnect(0);
source.connect(lowFreq);
lowFreq.connect(highFreq);
highFreq.connect(panNode);
panNode.connect(analyzer);
//gainNode.connect(analyzer);
analyzer.connect(audioCtx.destination);
highFreq.type = "highshelf";
highFreq.frequency.value = parseInt($('.high-freq').val());
highFreq.gain.value = parseInt($('.high-gain').val());
lowFreq.type = "lowshelf";
lowFreq.frequency.value = parseInt($('.low-freq').val());
lowFreq.gain.value = parseInt($('.low-gain').val());
//gainNode.gain.value = parseFloat($('.eq-gain-bars').val());
//apply last preset settings
if(localStorage.getItem("EqPresetActive") && localStorage.getItem("EqPresetActive")){
$('.eq-preset').eq(localStorage.getItem("EqPresetActive")).click();
}else{
$('.eq-preset').eq(0).click();
}
//$('.eq-filter-bars').prop("disabled", false);
//$('.eq-filter-bars').css({"transform":'rotate(-90deg)'});
$('.hd-visual').text('EQ Enabled');
}else{
source.disconnect(0);
analyzer.disconnect(0);
highFreq.disconnect(0);
lowFreq.disconnect(0);
//gainNode.disconnect(0);
panNode.disconnect(0);
source.connect(panNode);
panNode.connect(analyzer);
analyzer.connect(audioCtx.destination);
//visual adjustments
$('.eq-preset').removeClass('preset-active');
$('.eq-filter-bars').prop("disabled", true);
$('.eq-filter-bars').css({"transform":'rotate(0deg)'});
$('.hd-visual').text('EQ Disabled');
}
});
//EQ sliders control
//First range-slider from left
$(document).on('input','.low-freq',function(){
lowFreq.frequency.value = parseInt($(this).val());
$('.eq-stat-val:eq(0)').text(parseInt($(this).val()));
});
//Second range-slider from left
$(document).on('input','.low-gain',function(){
lowFreq.gain.value = parseFloat($(this).val());
$('.eq-stat-val:eq(1)').text(parseInt($(this).val()));
});
//Forth range-slider from left
$(document).on('input','.high-freq',function(){
highFreq.frequency.value = parseInt($(this).val());
$('.eq-stat-val:eq(3)').text(parseInt($(this).val()));
});
//Third range-slider from left
$(document).on('input','.high-gain',function(){
highFreq.gain.value = parseFloat($(this).val());
$('.eq-stat-val:eq(2)').text(parseInt($(this).val()));
});
//if you ever want to activate gain node from code : here
// $(document).on('input','.eq-gain-bars',function(){
// gainNode.gain.value = parseFloat($(this).val());
// });
//EQ Preset Nav Control
$('.preset-nav-right').click(function() {
event.preventDefault();
$('.eq-presets-block').animate({
scrollLeft: "+=800px"
}, "slow");
});
$('.preset-nav-left').click(function() {
event.preventDefault();
$('.eq-presets-block').animate({
scrollLeft: "-=800px"
}, "slow");
});
//Apply condo presets
$(document).on('click','.eq-preset',function(e){
if(!$('.eq-switch').is(':checked')){
Alert.Notify("Enable Equilizer for effects to apply!",'settings');
e.stopImmediatePropagation();
}else{
localStorage.setItem("EqPresetActive",$(this).index());
// if($(this).hasClass('preset-active')){
// //eq is active with preset so do not double apply effects.
// }else{
$('.hd-visual-x').html($(this).html());
$('.eq-preset').removeClass('preset-active');
$eQpreset = $(this).data('preset');
$eQconfig = $(this).data('config');
$isProBand = $(this).data('hd');
$(this).addClass('preset-active');
$eqConfVals = $eQconfig.split(',');
//show stats first
$('.eq-stat-val:eq(0)').text($eqConfVals[0]);
$('.eq-stat-val:eq(1)').text($eqConfVals[1]);
$('.eq-stat-val:eq(2)').text($eqConfVals[3]);
$('.eq-stat-val:eq(3)').text($eqConfVals[2]);
//Bypass Eq Slider | Beyond slider limits
if($isProBand === "yes"){
$('.eq-bars').css({
'transform': 'scale(0.8)'
});
$('.LegendMode-lol').css({
'transform': 'scaleX(0)'
});
$('.eq-filter-bars').prop("disabled", true);
$('.eq-filter-bars').css({"transform":'rotate(0deg)'});
$('.hd-visual').text('High Definition');
lowFreq.frequency.value = $eqConfVals[0];
lowFreq.gain.value = $eqConfVals[1];
highFreq.frequency.value = $eqConfVals[2];
highFreq.gain.value = $eqConfVals[3];
}else if($isProBand === "could_be"){ //FOR UI Level tuning but input type is text
$('.eq-bars').css({
'transform': 'scale(0)'
});
$('.LegendMode-lol').css({
'transform': 'scaleX(1)'
});
$('.hd-visual').text('Disaster Mode');
lowFreq.frequency.value = parseInt($('.eq-direct-value:eq(0)').val() === '' ? 1 : $('.eq-direct-value:eq(0)').val());
lowFreq.gain.value = parseFloat($('.eq-direct-value:eq(1)').val() === '' ? 1 : $('.eq-direct-value:eq(1)').val());
highFreq.frequency.value = parseInt($('.eq-direct-value:eq(3)').val() === '' ? 1 : $('.eq-direct-value:eq(3)').val());
highFreq.gain.value = parseFloat($('.eq-direct-value:eq(2)').val() > 1 ? $('.eq-direct-value:eq(2)').val() : 1);
}else{
$('.eq-bars').css({
'transform': 'scale(0.8)'
});
$('.LegendMode-lol').css({
'transform': 'scaleX(0)'
});
$('.eq-filter-bars').prop("disabled", false);
$('.eq-filter-bars').css({"transform":'rotate(-90deg)scale(0.8)'});
$('.hd-visual').text('Standard Mode');
$('.low-freq').val($eqConfVals[0]);
$('.low-gain').val($eqConfVals[1]);
$('.high-freq').val($eqConfVals[2]);
$('.high-gain').val($eqConfVals[3]);
lowFreq.frequency.value = parseInt($('.low-freq').val());
lowFreq.gain.value = parseFloat($('.low-gain').val());
highFreq.frequency.value = parseInt($('.high-freq').val());
highFreq.gain.value = parseFloat($('.high-gain').val());
}
// }
}
});
//LegendMode
$(document).on('keyup keydown change keypress','.eq-direct-value',function(){
lowFreq.frequency.value = parseInt($('.eq-direct-value:eq(0)').val() === '' ? 1 : $('.eq-direct-value:eq(0)').val());
lowFreq.gain.value = parseFloat($('.eq-direct-value:eq(1)').val() === '' ? 1 : $('.eq-direct-value:eq(1)').val());
highFreq.frequency.value = parseInt($('.eq-direct-value:eq(3)').val() === '' ? 1 : $('.eq-direct-value:eq(3)').val());
highFreq.gain.value = parseFloat($('.eq-direct-value:eq(2)').val() > 1 ? $('.eq-direct-value:eq(2)').val() : 1);
})
//Pan Controls
$(document).on('input','.eq-pan-bars',function(){
panNode.pan.value = parseFloat($(this).val());
if(parseFloat($(this).val()) < 0){
if(parseFloat($(this).val()) === -1){
$leftPanValue = "10";
}else{
$leftPanValue = String($(this).val()).substring(3,4);
}
$('.playback-pan-value').html(`Left ${$leftPanValue}`);
}else if(parseFloat($(this).val()) === 0){
$('.playback-pan-value').html(`Stereo`);
}else{
if(parseFloat($(this).val()) === 1){
$rightPanValue = "10";
}else{
$rightPanValue = String($(this).val()).substring(2,3);
}
$('.playback-pan-value').html(`Right ${$rightPanValue}`);
}
});
$(document).on("click",".pan-reset",function(){
$('.playback-pan-value').text('Stereo');
$('.eq-pan-bars').val(0);
panNode.pan.value = 0;
});
</script>
<script class="Galib-Customizations" type="text/javascript">
$(document).ready(function(){
//apply graphics
if(localStorage.getItem("gfx") && localStorage.getItem("gfx").length > 0){
$('.dom-graphics').val(localStorage.getItem("gfx")).trigger('change');
}else{
$('.dom-graphics').val("Max").trigger('change');
}
//apply shadow
if(localStorage.getItem("shaders") && localStorage.getItem("shaders").length >0){
$('.dom-shadows').val(localStorage.getItem("shaders")).trigger('change');
}else{
$('.dom-shadows').val("55").trigger('change');
}
//apply visualizer
if(localStorage.getItem("viz") && localStorage.getItem("viz").length >0){
$('.dom-visualizer').val(localStorage.getItem("viz")).trigger('change');
}else{
$('.dom-visualizer').val("dualbars").trigger('change');
}
});
$(document).on("change",".dom-graphics",function(){
graphicsQuality = $(this).val();
localStorage.setItem("gfx",graphicsQuality);
$('.gfx-note').html($(this).find(':selected').data('details'));
if(graphicsQuality !== "Max"){
$('style:eq(0)').html("")
$('style:eq(0)').append(`body *{-webkit-transition: all ${graphicsQuality}s ease-in-out!important;
-moz-transition: all ${graphicsQuality}s ease-in-out!important;
-o-transition: all ${graphicsQuality}s ease-in-out !important;
-ms-transition: all ${graphicsQuality}s ease-in-out !important;
transition: all ${graphicsQuality}s ease-in-out !important;}`
);
}else{
$('style:eq(0)').html("");
}
});
$(document).on("change",".dom-shadows",function(){
shadowsQuality = $(this).val();
localStorage.setItem("shaders",shadowsQuality);
document.documentElement.style.setProperty('--alpha',`${shadowsQuality}%`);
$('.shadow-note').html($(this).find(':selected').data('details'));
});
$(document).on("change",".dom-visualizer",function(){
$self = this;
localStorage.setItem("viz",$($self).val());
wave = null;
var wave = new Wave();
wave.fromElement("player", "visualizerX", {
type: $($self).val(),
colors: ['red'],
stroke: 1,
}, audioCtx, source, analyzer);
});
wave = null;
//Galib - The Visualizer Instanc
var wave = new Wave();
//Colours
$color = ['red','green','blue','pink','yellow','orange','purple','deeppurple','lightblue','teal','lime','gray','black'];
$visualizerTypes = ['dualbars','ring','wave','shine','orbs','flower','star','bigbars'];
$('body').on('click',function(){
//Galib - The Visualizer Instanc
colorNew = Utils.ShuffleArray($color);
$vType = Utils.ShuffleArray($visualizerTypes);
$cold = colorNew[1];
wave.fromElement("player", "visualizerX", {
type: $(".dom-visualizer").val(),