-
Notifications
You must be signed in to change notification settings - Fork 0
/
javascript.js
1586 lines (1453 loc) · 67.5 KB
/
javascript.js
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
var body = document.body
// ------------------------------------ REMOVE CLOUDFLARE QUERY ------------------------------------*/
if (location.search) { window.history.replaceState(null, document.title, window.location.pathname) }
// ------------------------------------ DELAY FOR ELEMENTS TO LOAD ------------------------------------*/
function Check_Site_Loaded () {
var last_el = document.getElementsByClassName("chat__Input")[0]
if (last_el) {
Start_The_Llama()
} else {
setTimeout(Check_Site_Loaded, 3000)
}
}
Check_Site_Loaded()
// ------------------------------------ START THE LLAMA ----------------------------------------------*/
function Start_The_Llama () {
if (script_variables) {
var loc = window.location.toString()
var pageName = loc.split("/")[3]
if (pageName !== "" && pageName !== "directory" && pageName !== "support" && pageName !== "profile" && pageName !== "messages" && pageName !== "settings") {
Create_Element_IDs()
Create_Top_Setting_Box()
Create_Llama_Settings()
Create_Top_Icons()
Create_Bottom_Icons()
Create_Llama_Settings_Icon()
Create_Llama_Window()
Load_Draggables()
Create_Chat_Settings()
Create_Cam_Settings()
Create_Tube_Settings()
Create_Theme_Settings()
Create_BG_Settings()
Create_Hide_Settings()
Create_Cheers()
Create_Exit_Box()
Create_Llama_Info()
Create_Header_Hider()
Add_Listeners()
Create_Song_Dropdown()
Create_Llama_Songs()
Reload_User_Settings()
}
} else {
setTimeout(Start_The_Llama, 3000)
}
}
// ------------------------------------ LOAD : REGULAR VARIABLES -------------------------------------*/
var script_variables = "loaded"
var theme_status = localStorage.getItem("thememode")
var user_checkbox_settings = ["robo", "bubble", "hide_chat", "hide_userlist", "ltr", "cheers", "border", "spacing", "user_bg",
"trans_chat", "trans_users", "hide_usernames", "cambg_cover", "cambg_center", "cambg_repeat",
"chatbg_cover", "chatbg_center", "chatbg_repeat", "userbg_cover", "userbg_center", "userbg_repeat",
"override_chatcolor", "override_username", "override_user_bg", "hide_emojis", "hide_gifts", "rounded_cams"]
var user_button_settings = ["audioonly_yt", "miniyt"]
var top_buttons = ["chat", "cam", "theme", "notice", "tube", "settings_icon", "hide", "bg"]
var btmbuttons = ["poprestore", "web", "hideweb"]
var checkbox_actions = ["robo", "bubble", "hide_chat", "hide_userlist", "ltr", "cheers", "border", "spacing", "user_bg",
"trans_chat", "trans_users", "hide_usernames", "cambg_cover", "cambg_center", "cambg_repeat",
"chatbg_cover", "chatbg_center", "chatbg_repeat", "userbg_cover", "userbg_center", "userbg_repeat",
"override_chatcolor", "override_username", "override_user_bg", "hide_emojis", "hide_gifts", "rounded_cams"]
var button_actions = ["audioonly_yt", "miniyt", "hide_header", "save", "reset", "web", "hideweb", "games",
"tiny", "min", "max", "res", "close", "clear_cam", "clear_chat", "clear_user", "apply_images",
"popchat", "poprestore", "cambg_settings", "chatbg_settings", "userbg_settings"]
var draggable_windows = ["mydiv", "chat"]
// ------------------------------------ LOAD : THEME VARIABLES ---------------------------------------*/
var pink_bgcolor = "#ffd1dc"
var pink_bordercolor = "#ea98ab"
var pink_lightbgcolor = "#ffe1e6"
var pink_textcolor = "#FFFFFF"
var pink_buttontext = "#FFFFFF"
var pink_userlist = "#FFFFFF"
var green_bgcolor = "#042500"
var green_bordercolor = "#217c16"
var green_lightbgcolor = "#00500d"
var green_textcolor = "#FFFFFF"
var green_buttontext = "#042500"
var green_userlist = "#FFFFFF"
var blue_bgcolor = "#111949"
var blue_bordercolor = "#596ce0"
var blue_lightbgcolor = "#2a388b"
var blue_textcolor = "#FFFFFF"
var blue_buttontext = "#111949"
var blue_userlist = "#FFFFFF"
var mauve_bgcolor = "#9168b2"
var mauve_bordercolor = "#d6b7ef"
var mauve_lightbgcolor = "#BF8FE5"
var mauve_textcolor = "#000000"
var mauve_buttontext = "#9168b2"
var mauve_userlist = "#000000"
var orange_bgcolor = "#b33700"
var orange_bordercolor = "#ff8d10"
var orange_lightbgcolor = "#ff4f00"
var orange_textcolor = "#000000"
var orange_buttontext = "#b33700"
var orange_userlist = "#000000"
var red_bgcolor = "#590000"
var red_bordercolor = "#d02323"
var red_lightbgcolor = "#860000"
var red_textcolor = "#FFFFFF"
var red_buttontext = "#590000"
var red_userlist = "#FFFFFF"
var purple_bgcolor = "#280048"
var purple_bordercolor = "#b14fff"
var purple_lightbgcolor = "#550098"
var purple_textcolor = "#280048"
var purple_buttontext = "#FFFFFF"
var purple_userlist = "#FFFFFF"
var black_bgcolor = "#2C2F33"
var black_bordercolor = "#23272a"
var black_lightbgcolor = "#191919"
var black_textcolor = "#FFFFFF"
var black_buttontext = "#7289da"
var black_userlist = "#FFFFFF"
var tech_bgcolor = "#000000"
var tech_bordercolor = "#1C1C1C"
var tech_lightbgcolor = "#000000"
var tech_textcolor = "#F0F0F0"
var tech_buttontext = "#00FF00"
var tech_userlist = "#C8C8C8"
var buds_bgcolor = "#042500"
var buds_bordercolor = "#217c16"
var buds_lightbgcolor = "#00500d"
var buds_textcolor = "#FFFFFF"
var buds_buttontext = "#042500"
var buds_userlist = "#042500"
var buds_cambg = "url('https://cdn.jsdelivr.net/gh/SmokeyLlama/JumpinLlama@6a40bce97c841029ee442a8a297e2b2c976a8bd1/images/bud/mainbg.jpg')"
var splat_bgcolor = "transparent"
var splat_bordercolor = "#51bc02"
var splat_lightbgcolor = "#282828"
var splat_textcolor = "#FFFFFF"
var splat_buttontext = "#FFFFFF"
var splat_userlist = "#FFFFFF"
var splat_cambg = "url('https://cdn.jsdelivr.net/gh/SmokeyLlama/JumpinLlama@6157c7e0ae1a3a3149ac7629a50cd55fada590eb/images/splatoon/mainbg.jpg')"
var splat_userbg = "url('https://cdn.jsdelivr.net/gh/SmokeyLlama/JumpinLlama@6157c7e0ae1a3a3149ac7629a50cd55fada590eb/images/splatoon/userbg.png')"
var splat_chatheaderbg
= "url('https://cdn.jsdelivr.net/gh/SmokeyLlama/JumpinLlama@6157c7e0ae1a3a3149ac7629a50cd55fada590eb/images/splatoon/headerbg.png')"
var splat_chatbg = "url('https://cdn.jsdelivr.net/gh/SmokeyLlama/JumpinLlama@6157c7e0ae1a3a3149ac7629a50cd55fada590eb/images/splatoon/chatbg.png')"
var splat_messagebg = "url('https://cdn.jsdelivr.net/gh/SmokeyLlama/JumpinLlama@6157c7e0ae1a3a3149ac7629a50cd55fada590eb/images/splatoon/messagebg.png')"
// ------------------------------------ LOAD : INSTANTLY THEME COLORS OR CUSTOM MODE ---------*/
Create_Custom_Mode()
if (theme_status) {
body.classList.add("thememode")
if (theme_status === "custom") {
var existing_colors = localStorage.getItem("llama_custom_bgcolor")
if (existing_colors) {
Save_Llama_Color("reset")
} else {
Save_Llama_Color("save")
}
} else {
Toggle_Theme(theme_status)
}
}
// ------------------------------------ RELOAD : USER SETTINGS ------------------------------*/
function Reload_User_Settings () {
user_checkbox_settings.forEach(function (user_checkbox_setting) {
var storage = localStorage.getItem("llama_" + user_checkbox_setting)
if (storage) {
body.classList.add(user_checkbox_setting)
document.getElementById("llama_" + user_checkbox_setting + "_checkbox").checked = true
}
})
user_button_settings.forEach(function (user_button_setting) {
var storage = localStorage.getItem("llama_" + user_button_setting)
if (storage) {
body.classList.add(user_button_setting)
}
})
// ------- ROOM HEADER -------
var roomheader_status = localStorage.getItem("llama_hide_header")
if (roomheader_status === "hide_header") {
body.classList.toggle("hide_header")
}
// ------- USER BG COLOR -------
var bgstorage = localStorage.getItem("llama_override_user_bg")
if (bgstorage !== "") {
var bgstoragesrc = localStorage.getItem("llama_user_bgcolorsrc")
document.getElementById("llama_clear_user_bgcolorsrc").value = bgstoragesrc
Save_User_BG_Color("save")
}
// ------- USER BG IMAGES -------
var cambg_status = localStorage.getItem("llama_clear_cambg_reload")
var chatbg_status = localStorage.getItem("llama_clear_chatbg_reload")
var userbg_status = localStorage.getItem("llama_clear_userbg_reload")
if (cambg_status || chatbg_status || userbg_status) {
document.getElementById("llama_clear_cambg").value = cambg_status
document.getElementById("llama_clear_userbg").value = chatbg_status
document.getElementById("llama_clear_chatbg").value = userbg_status
Save_User_BG()
}
// ------- USERNAME COLOR -------
var usernamecolor_status = localStorage.getItem("llama_username_color")
if (usernamecolor_status) {
document.getElementById("llama_clear_usercolorsrc").value = usernamecolor_status
Save_Username_Color("save")
}
// ------- CHAT COLOR -------
var chatcolor_status = localStorage.getItem("llama_chat_color")
if (chatcolor_status) {
document.getElementById("llama_clear_chatcolorsrc").value = chatcolor_status
Save_Chat_Color("save")
}
}
// ------------------------------------ CREATE : ELEMENT IDS ----------------------------*/
function Create_Element_IDs () {
var chatInputBox = document.getElementsByClassName("chat__Input")[0]
chatInputBox.id = "chat_input_box"
chatInputBox.setAttribute("autocomplete", "off")
chatInputBox.setAttribute("onclick", "event.stopPropagation()")
var btm_bar = document.getElementsByClassName("chat__Share")[0]
btm_bar.id = "bottom_bar"
var chat_drag = document.getElementsByClassName("chat")[0]
chat_drag.id = "chat"
// Var up_bar = document.getElementsByClassName("chat__HeaderOptions")[1]
// up_bar.id = "chat__HeaderOptions"
var settings_bar = document.getElementsByClassName("chat__HeaderOptions")[1]
settings_bar.id = "settings_bar"
var info = document.getElementsByClassName("roomHeader__UserActions")[0]
info.id = "info_box"
var chat_box = document.getElementsByClassName("chat__InputWrapper")[0]
chat_box.id = "chat_box"
}
// ------------------------------------ ACTION : TOP BAR ACTION -----------------------------*/
function Top_Bar_Action (type) {
if (type === "settings_icon") {
body.classList.add("open_llama_theme")
body.classList.toggle("open_llama_settings")
} else {
body.classList.add("open_llama_" + type)
top_buttons.forEach(function (top_button) {
if (top_button !== type) {
body.classList.remove("open_llama_" + top_button)
var current_theme_selected = localStorage.getItem("thememode")
var custom_status = localStorage.getItem("custom_box_status")
if (type === "theme" && current_theme_selected === "custom" && custom_status === "open") {
Toggle_Custom_Box("off")
localStorage.setItem("custom_box_status", "closed")
} else if (type === "theme" && current_theme_selected === "custom" && custom_status === "closed") {
Toggle_Custom_Box("on")
localStorage.setItem("custom_box_status", "open")
} else {
Toggle_Custom_Box("off")
localStorage.setItem("custom_box_status", "closed")
}
if (type === "notice") {
var info_frame = document.getElementById("HW_JL_frame")
var home = "https://headway-widget.net/widgets/7XkGbx"
info_frame.src = home
}
}
})
}
}
// ------------------------------------ ACTION : BOTTOM BAR ACTION --------------------------*/
function Bottom_Bar (type) {
if (type === "miniyt") {
body.classList.toggle("")
body.classList.remove("audioonly_yt")
localStorage.setItem("llama_audioonly_yt", "")
} else if (type === "audioonly_yt") {
body.classList.toggle("")
body.classList.remove("miniyt")
localStorage.setItem("llama_miniyt", "")
}
}
// ------------------------------------ ACTION : SAVE USERNAME COLOR -------------------------*/
function Save_User_BG_Color (type) {
if (type === "save") {
body.classList.add("userbg_color")
var usercolor_llama = document.getElementById("llama_clear_user_bgcolorsrc").value
document.documentElement.style.setProperty("--thememode-user_bgcolor", usercolor_llama)
localStorage.setItem("llama_user_bgcolorsrc", usercolor_llama)
} else if (type === "reset") {
body.classList.remove("userbg_color")
document.documentElement.style.setProperty("--thememode-user_bgcolor", "")
document.getElementById("llama_user_bgcolorsrc").value = ""
document.documentElement.style.setProperty("--thememode-user_bgcolor", "")
localStorage.setItem("llama_user_bgcolorsrc", "")
} else if (type === "open") {
body.classList.toggle("userbg_color")
}
}
// ------------------------------------ ACTION : SAVE USERNAME COLOR -------------------------*/
function Save_Username_Color (type) {
if (type === "save") {
var usercolor_llama = document.getElementById("llama_clear_usercolorsrc").value
document.documentElement.style.setProperty("--thememode-usernamecolor", usercolor_llama)
body.classList.add("usercolor")
localStorage.setItem("llama_username_color", usercolor_llama)
} else if (type === "reset") {
body.classList.remove("usercolor")
document.documentElement.style.setProperty("--thememode-usernamecolor", "")
document.getElementById("llama_clear_usercolorsrc").value = ""
document.documentElement.style.setProperty("--thememode-usernamecolor", "")
localStorage.setItem("llama_username_color", "")
}
}
// ------------------------------------ ACTION : SAVE CHAT COLOR -------------------------*/
function Save_Chat_Color (type) {
if (type === "save") {
var chatcolor_llama = document.getElementById("llama_clear_chatcolorsrc").value
document.documentElement.style.setProperty("--thememode-chatcolor", chatcolor_llama)
body.classList.add("chat_color")
localStorage.setItem("llama_chat_color", chatcolor_llama)
} else if (type === "reset") {
body.classList.remove("chat_color")
document.documentElement.style.setProperty("--thememode-chatcolor", "")
document.getElementById("llama_clear_chatcolorsrc").value = ""
document.documentElement.style.setProperty("--thememode-chatcolor", "")
localStorage.setItem("llama_chat_color", "")
}
}
// ------------------------------------ ACTION : SAVE CUSTOM COLORS -------------------------*/
function Save_Llama_Color (type) {
localStorage.setItem("thememode", "custom")
var bgcolor_llama = document.getElementById("llama_bgcolor").value
var bordercolor_llama = document.getElementById("llama_bordercolor").value
var lightbgcolor_llama = document.getElementById("llama_lightbgcolor").value
var textcolor_llama = document.getElementById("llama_textcolor").value
var buttontext_llama = document.getElementById("llama_buttontext").value
var userlist_llama = document.getElementById("llama_userlist").value
document.documentElement.style.setProperty("--thememode-bgcolor", bgcolor_llama)
document.documentElement.style.setProperty("--thememode-bordercolor", bordercolor_llama)
document.documentElement.style.setProperty("--thememode-lightbgcolor", lightbgcolor_llama)
document.documentElement.style.setProperty("--thememode-textcolor", textcolor_llama)
document.documentElement.style.setProperty("--thememode-buttontext", buttontext_llama)
document.documentElement.style.setProperty("--thememode-userlist", userlist_llama)
if (type === "save") {
localStorage.setItem("llama_custom_bgcolor", bgcolor_llama)
localStorage.setItem("llama_custom_bordercolor", bordercolor_llama)
localStorage.setItem("llama_custom_lightbgcolor", lightbgcolor_llama)
localStorage.setItem("llama_custom_textcolor", textcolor_llama)
localStorage.setItem("llama_custom_buttontext", buttontext_llama)
localStorage.setItem("llama_custom_userlist", userlist_llama)
} else if (type === "reset") {
var stored_bgcolor = localStorage.getItem("llama_custom_bgcolor")
var stored_bordercolor = localStorage.getItem("llama_custom_bordercolor")
var stored_lightbgcolor = localStorage.getItem("llama_custom_lightbgcolor")
var stored_textcolor = localStorage.getItem("llama_custom_textcolor")
var stored_buttontext = localStorage.getItem("llama_custom_buttontext")
var stored_userlist = localStorage.getItem("llama_custom_userlist")
document.documentElement.style.setProperty("--thememode-bgcolor", stored_bgcolor)
document.documentElement.style.setProperty("--thememode-bordercolor", stored_bordercolor)
document.documentElement.style.setProperty("--thememode-lightbgcolor", stored_lightbgcolor)
document.documentElement.style.setProperty("--thememode-textcolor", stored_textcolor)
document.documentElement.style.setProperty("--thememode-buttontext", stored_buttontext)
document.documentElement.style.setProperty("--thememode-userlist", stored_userlist)
document.getElementById("llama_bgcolor").value = stored_bgcolor
document.getElementById("llama_bordercolor").value = stored_bordercolor
document.getElementById("llama_lightbgcolor").value = stored_lightbgcolor
document.getElementById("llama_textcolor").value = stored_textcolor
document.getElementById("llama_buttontext").value = stored_buttontext
document.getElementById("llama_userlist").value = stored_userlist
document.documentElement.style.setProperty("--thememode-roombg", "")
document.documentElement.style.setProperty("--thememode-userbg", "")
document.documentElement.style.setProperty("--thememode-chatheaderbg", "")
document.documentElement.style.setProperty("--thememode-chatbg", "")
document.documentElement.style.setProperty("--thememode-messagebg", "")
}
}
// ------------------------------------ ACTION : BUTTONS ------------------------------------*/
function Button_Action (type) {
var storage = "llama_" + type
var storage_status = localStorage.getItem(storage)
var loc = window.location.toString()
var params = loc.split("/")[3]
var iframe = document.getElementById("game_list")
var string = type
var firstUnderscore = string.indexOf("_")
var secondUnderscore = string.indexOf("_", firstUnderscore + 1)
var clear = [string.substring(5, secondUnderscore)]
if (storage_status !== type) {
localStorage.setItem(storage, type)
} else {
localStorage.setItem(storage, "")
}
if (type === "miniyt") {
body.classList.toggle(type)
body.classList.remove("audioonly_yt")
localStorage.setItem("llama_audioonly_yt", "")
} else if (type === "audioonly_yt") {
body.classList.toggle(type)
body.classList.remove("miniyt")
localStorage.setItem("llama_miniyt", "")
} else if (type === "popchat" || type === "poprestore") {
body.classList.toggle("popchat")
} else if (type === "hide_header") {
body.classList.toggle(type)
} else if (type === "save" || type === "reset") {
Save_Llama_Color(type)
} else if (type === "web" || type === "hideweb") {
body.classList.toggle("web")
} else if (type === "games") {
var home = "https://smokeyllama.com/game_time/main/game/web_window.php"
iframe.src = home
} else if (type === "tiny") {
var tc = "https://tinychat.com/room/"
iframe.src = tc + params
} else if (type === "min" || type === "max" || type === "res") {
Window_Controls(type)
} else if (type === "close") {
body.classList.toggle("web")
iframe.src = ""
} else if (clear == "clear") {
if (type === "clear_usercolor") {
Save_Username_Color("reset")
} else {
Clear_User_BG(type)
}
} else if (type === "apply_images") {
Save_User_BG()
} else if (type === "save_tubes") {
Save_User_Tubes()
} else if (type === "apply_colors") {
Save_Username_Color("save")
} else if (type === "apply_chat_color") {
Save_Chat_Color("save")
} else if (type === "apply_bgcolors") {
Save_User_BG_Color("save")
} else if (type === "cambg_settings" || type === "chatbg_settings" || type === "userbg_settings") {
USER_BG_MINI_MENU(type)
}
}
// ------------------------------------ ACTION : MINI MENU USER BGS -----------------------------*/
function USER_BG_MINI_MENU (type) {
var user_settings = ["cambg_settings", "chatbg_settings", "userbg_settings"]
user_settings.forEach(function (user_setting) {
if (user_setting === type) {
body.classList.toggle(type)
} else {
body.classList.remove(user_setting)
}
})
}
// ------------------------------------ ACTION : CLEAR USER BGS -----------------------------*/
function Clear_User_BG (type) {
var bgelement = "llama_" + type + "bg"
var bgvar = "--llama_" + type + "bg-image"
var bgreload = "llama_" + type + "bg_reload"
var bg = "llama_" + type + "bg"
document.getElementById(bgelement).value = ""
document.documentElement.style.setProperty(bgvar, "")
localStorage.setItem(bgreload, "")
localStorage.setItem(bg, "")
}
// ------------------------------------ ACTION : SAVE USER BGS ------------------------------*/
function Save_User_BG () {
var bgs = ["userbg", "chatbg", "cambg"]
bgs.forEach(function (bg) {
var save_bgelement = "llama_clear_" + bg
var save_bgvar = "--llama_clear_" + bg + "-image"
var save_bgreload = "llama_clear_" + bg + "_reload"
var save_bg = "llama_clear_" + bg
var llama_bginput = document.getElementById(save_bgelement).value
if (llama_bginput !== "") {
var llama_bginput_url = "url(" + llama_bginput + ")"
document.documentElement.style.setProperty(save_bgvar, llama_bginput_url)
localStorage.setItem(save_bgreload, llama_bginput)
localStorage.setItem(save_bg, llama_bginput_url)
} else {
document.documentElement.style.setProperty(save_bgvar, "")
localStorage.setItem(save_bgreload, "")
localStorage.setItem(save_bg, "")
}
})
}
// ------------------------------------ ACTION : LLAMA WINDOW -------------------------------*/
function Window_Controls (type) {
if (type === "max") {
document.getElementById("window_title").setAttribute("style", "margin-right: 150px;display:inline-block;")
document.getElementById("iframe_box").style.display = ""
document.getElementById("llama_max").style.display = "none"
document.getElementById("mydiv").style.height = "605px"
document.getElementById("llama_res").style.display = "inline"
} else if (type === "min") {
document.getElementById("window_title").style.display = "none"
document.getElementById("iframe_box").style.display = "none"
document.getElementById("mydiv").style.width = "221px"
document.getElementById("llama_max").style.display = "none"
document.getElementById("llama_min").style.display = "none"
document.getElementById("llama_res").style.display = "inline"
document
.getElementById("mydiv")
.setAttribute("style", "left:0px; top:90.4%; height:29px; border-bottom-right-radius: 0px;border-bottom-left-radius: 0px; -webkit-box-shadow: none;-moz-box-shadow: none;box-shadow: none;")
} else if (type === "res") {
document.getElementById("window_title").setAttribute("style", "margin-right: 150px;display:inline-block;")
document.getElementById("iframe_box").style.display = ""
document.getElementById("mydiv").setAttribute("style", "left:20px; top:10%;")
document.getElementById("mydiv").style.height = ""
document.getElementById("llama_max").style.display = "inline"
document.getElementById("llama_min").style.display = "inline"
document.getElementById("llama_res").style.display = "none"
}
}
// ------------------------------------ ACTION : CHECKBOX -----------------------------------*/
function Checkbox_Action (type) {
var storage = "llama_" + type
var storage_status = localStorage.getItem(storage)
var checkbox = "llama_" + type + "_checkbox"
if (storage_status !== type) {
localStorage.setItem(storage, type)
document.getElementById(checkbox).checked = true
} else {
localStorage.setItem(storage, "")
document.getElementById(checkbox).checked = false
}
if (type === "bubble" || type === "robo" || type === "hide_chat" || type === "hide_userlist") {
body.classList.toggle(type)
} else if (type === "ltr" || type === "cheers" || type === "border" || type === "spacing" || type === "rounded_cams") {
body.classList.toggle(type)
} else if (type === "cambg_cover" || type === "cambg_center" || type === "cambg_repeat") {
body.classList.toggle(type)
} else if (type === "chatbg_cover" || type === "chatbg_repeat" || type === "chatbg_center") {
body.classList.toggle(type)
} else if (type === "userbg_cover" || type === "userbg_repeat" || type === "userbg_center") {
body.classList.toggle(type)
} else if (type === "user_bg" || type === "trans_chat" || type === "trans_users" || type === "hide_usernames") {
body.classList.toggle(type)
} else if (type === "user_bgcolor") {
Save_User_BG_Color("open")
} else if (type === "override_chatcolor" || type === "override_username") {
body.classList.toggle(type)
} else if (type === "override_user_bg") {
body.classList.toggle(type)
Save_User_BG_Color("save")
} else if (type === "hide_emojis") {
body.classList.toggle(type)
} else if (type === "hide_gifts") {
body.classList.toggle(type)
}
}
// ------------------------------------ ACTION : CHEERS BUTTON ------------------------------*/
function Cheers_Button () {
var text = document.getElementById("chat_input_box")
var cheers_status = localStorage.getItem("cheers_status")
var loc = window.location.toString()
var pageName = loc.split("/")[3]
if (pageName === "coffeepot") {
if (!cheers_status) {
text.value = ":coffeepot::cheer::coffeepot:"
localStorage.setItem("cheers_status", "1")
}
if (cheers_status === "1") {
text.value = ":letterc::letterh::lettere::lettere::letterr::letters:"
localStorage.setItem("cheers_status", "2")
}
if (cheers_status === "2") {
text.value = ":coffeepot::letterc::letterh::lettere::lettere::letterr::letters::coffeepot:"
localStorage.setItem("cheers_status", "")
}
} else {
if (!cheers_status) {
text.value = "!cheers"
localStorage.setItem("cheers_status", "1")
}
if (cheers_status === "1") {
text.value = "MEGA CHEERS!"
localStorage.setItem("cheers_status", "2")
}
if (cheers_status === "2") {
text.value = "▂▅▇ 🔥 CHEERS 🔥 ▇▅▂"
localStorage.setItem("cheers_status", "")
}
}
setTimeout(Reset_Cheers_Button, 10000)
}
function Reset_Cheers_Button () {
localStorage.removeItem("cheers_status")
}
function Toggle_Custom_Box (status) {
if (status === "on") {
body.classList.add("custom")
} else {
body.classList.remove("custom")
}
}
// ------------------------------------ CREATE : EVENT LISTENERS ----------------------------*/
function Add_Listeners () {
document.getElementById("info_box").addEventListener("click", Bottom_Bar, false)
btmbuttons.forEach(function (btmbutton) {
var btm_btn = "llama_" + btmbutton
document.getElementById(btm_btn).addEventListener("click", function () {
Bottom_Bar(btmbutton)
}, false)
}
)
top_buttons.forEach(function (top_button) {
var top_btn = "llama_" + top_button
document.getElementById(top_btn).addEventListener("click", function () {
Top_Bar_Action(top_button)
}, false)
}
)
checkbox_actions.forEach(function (checkbox_action) {
var checkbox_action_element = "llama_" + checkbox_action
document.getElementById(checkbox_action_element).addEventListener("click", function () {
Checkbox_Action(checkbox_action)
}, false)
})
button_actions.forEach(function (button_action) {
var button_action_element = "llama_" + button_action
document.getElementById(button_action_element).addEventListener("click", function () {
Button_Action(button_action)
}, false)
}
)
document.getElementById("Exit_Box").addEventListener("click", function () {
Exit_Box_Action()
}, false)
}
// ------------------------------------ CREATE : LLAMA WINDOW -------------------------------*/
function Create_Llama_Window () {
var Llama_Window = document.createElement("div")
Llama_Window.innerHTML = `
<style>
body.llama_window {overflow:hidden;}
</style>
<div id="mydiv" style="display:none;">
<div id="mydivheader">
<div id="game_head" class="game_head">
<div id ="window_title" class="window_title" style="display: inline-block; margin-right: 150px;">Llama Window</div>
<div id="control_grp" class="">
<div id="llama_min" class="tube_btn" style="" title="Minimize">
<i class="fas fa-window-minimize"></i>
</div>
<div id="llama_res" class="tube_btn" style="padding:0px;" title="Restore Hover Effect">
<i class="far fa-window-restore"></i>
</div>
<div id="llama_max" class="tube_btn" style="padding:0px;" title="Maximize/Lock Open">
<i class="fas fa-window-maximize"></i>
</div>
<div id="llama_close" class="tube_btn" style="padding:0px;" title="Close">
<i class="far fa-window-close"></i>
</div>
</div>
</div>
</div>
<div id="iframe_box">
<div id="container2">
<iframe src="" class="scrollingContainer" id="game_list" name="" style="border:0px;width: 105%;overflow-x: hidden;height: 95%;" scrolling="yes" allow="autoplay; microphone; camera"></iframe>
</div>
</div>
</div>
<div id="toggle_menu" style="background-color:transparent !important;border-color:transparent !important;"></div>
`
Llama_Window.setAttribute("id", "llama_window")
document.body.appendChild(Llama_Window)
}
// ------------------------------------ CREATE : CUSTOM MODE --------------------------------*/
function Create_Custom_Mode () {
var Custom_Mode = document.createElement("div")
Custom_Mode.innerHTML = `
<div class="dropdown__Options" id="Llama_Custom">
<div class="dropdown__Option dropdown__Option-header">Custom Settings</div>
<span class="dropdown__Option">
<span>Bar Colors</span>
<input type="color" name="colorpicker" id="llama_bgcolor" value="#22ADD5" style="width: 20px;border-radius: 3px;height: 18px;padding: 0px;" onchange="Save_Llama_Color()"></input>
</span>
<span class="dropdown__Option">
<span>Button Color</span>
<input type="color" name="colorpicker" id="llama_bordercolor" value="#C7CFD9" style="width: 20px;border-radius: 3px;height: 18px;padding: 0px;" onchange="Save_Llama_Color()"></input>
</span>
<span class="dropdown__Option">
<span>Background Color</span>
<input type="color" name="colorpicker" id="llama_lightbgcolor" value="#FFFFFF" style="width: 20px;border-radius: 3px;height: 18px;padding: 0px;" onchange="Save_Llama_Color()"></input>
</span>
<span class="dropdown__Option">
<span>Text Color</span>
<input type="color" name="colorpicker" id="llama_textcolor" value="#C7CFD9" style="width: 20px;border-radius: 3px;height: 18px;padding: 0px;" onchange="Save_Llama_Color()"></input>
</span>
<span class="dropdown__Option">
<span>Button Text</span>
<input type="color" name="colorpicker" id="llama_buttontext" value="#000000" style="width: 20px;border-radius: 3px;height: 18px;padding: 0px;" onchange="Save_Llama_Color()"></input>
</span>
<span class="dropdown__Option">
<span>Userlist Text</span>
<input type="color" name="colorpicker" id="llama_userlist" value="#000000" style="width: 20px;border-radius: 3px;height: 18px;padding: 0px;" onchange="Save_Llama_Color()"></input>
</span>
<span class="dropdown__Option no_hoverbg">
<input id="llama_reset" type="button" style="background: #5a6370;color: #fff;border:0px;cursor:pointer;border-radius: 10px;width: 150px;" value="RESET"/>
</span>
<span class="dropdown__Option no_hoverbg">
<input id="llama_save" type="button" style="background: #5a6370;color: #fff;border:0px;cursor:pointer;border-radius: 10px;width: 100%;" value="SAVE"></input>
</span>
</div>
`
Custom_Mode.setAttribute("id", "Custom_Mode")
Custom_Mode.setAttribute("style", "display:none;")
document.body.appendChild(Custom_Mode)
}
// ------------------------------------ CREATE : CHEERS ELEMENT -----------------------------*/
function Create_Cheers () {
var cheers_btn = document.createElement("div")
cheers_btn.className = "button-clear chat__InputAction"
cheers_btn.setAttribute("id", "Cheers_Button")
cheers_btn.setAttribute("type", "button")
cheers_btn.setAttribute("onclick", "event.stopPropagation();Cheers_Button()")
cheers_btn.innerHTML = `
<i class="fas fa-joint"></i>
`
chat_box.appendChild(cheers_btn)
}
// ------------------------------------ CREATE : EXIT BOX -----------------------------------*/
function Create_Exit_Box () {
var exit_box = document.createElement("div")
exit_box.className = ""
exit_box.setAttribute("id", "Exit_Box")
exit_box.innerHTML = ""
document.body.appendChild(exit_box)
}
// ------------------------------------ ACTION : EXIT BOX -----------------------------------*/
function Exit_Box_Action () {
Toggle_Custom_Box("off")
localStorage.setItem("custom_box_status", "closed")
top_buttons.forEach(function (top_button) {
body.classList.remove("open_llama_" + top_button)
body.classList.remove("open_llama_settings")
})
}
// ------------------------------------ CREATE : TOP SETTINGS OUTER BOX ---------------------*/
function Create_Top_Setting_Box () {
var chat_menu = document.createElement("div")
chat_menu.className = ""
chat_menu.setAttribute("id", "LlamaOptions_Box")
chat_menu.innerHTML = ""
document.body.appendChild(chat_menu)
}
// ------------------------------------ CREATE : CHAT SETTINGS ------------------------------*/
function Create_Chat_Settings () {
var option_box = document.getElementById("llama_settings_inner")
var chat_menu = document.createElement("div")
chat_menu.className = ""
chat_menu.setAttribute("id", "llama_chat_settings")
chat_menu.innerHTML = `
<div class="dropdown__Options">
<div class="dropdown__Option dropdown__Option-header">Chat Options</div>
<span class="dropdown__Option" id="llama_robo">Roboto Font<input id="llama_robo_checkbox" class="jic-checkbox" type="checkbox"></span>
<span class="dropdown__Option" id="llama_bubble">Bubble Chat<input id="llama_bubble_checkbox" class="jic-checkbox" type="checkbox"></span>
<span class="dropdown__Option" id="llama_cheers">Cheers Button [WIP]<input id="llama_cheers_checkbox" class="jic-checkbox" type="checkbox"></span>
<span class="dropdown__Option" id="llama_override_chatcolor">Custom Chat Color<input id="llama_override_chatcolor_checkbox" class="jic-checkbox" type="checkbox"></span>
<span class="dropdown__Option sub_llama" id="llama_chat_color">
<span style="">Chat Color</span><input type="color" name="colorpicker" value="#000000" onchange="Button_Action('apply_chat_color')" id="llama_clear_chatcolorsrc" style="opacity: 1;cursor: pointer; width: 20px;height:20px;border-radius: 2px;padding: 0px;"/>
</span>
</div>
`
option_box.appendChild(chat_menu)
}
// ------------------------------------ CREATE : HIDE SETTINGS -------------------------------*/
function Create_Hide_Settings () {
var option_box = document.getElementById("llama_settings_inner")
var cam_menu = document.createElement("div")
cam_menu.className = ""
cam_menu.setAttribute("id", "llama_hide_settings")
cam_menu.innerHTML = `
<div class="dropdown__Options">
<div class="dropdown__Option dropdown__Option-header">Hide Elements</div>
<span class="dropdown__Option" id="llama_hide_chat">Chatbox<input id="llama_hide_chat_checkbox" class="jic-checkbox" type="checkbox"></span>
<span class="dropdown__Option" id="llama_hide_userlist">Userlist<input id="llama_hide_userlist_checkbox" class="jic-checkbox" type="checkbox"></span>
<span class="dropdown__Option" id="llama_hide_emojis">Emojis Button<input id="llama_hide_emojis_checkbox" class="jic-checkbox" type="checkbox"></span>
<span class="dropdown__Option" id="llama_hide_gifts">Gifts Button<input id="llama_hide_gifts_checkbox" class="jic-checkbox" type="checkbox"></span>
</div>
<div>
`
option_box.appendChild(cam_menu)
}
// ------------------------------------ CREATE : CAM SETTINGS -------------------------------*/
function Create_Cam_Settings () {
var option_box = document.getElementById("llama_settings_inner")
var cam_menu = document.createElement("div")
cam_menu.className = ""
cam_menu.setAttribute("id", "llama_cam_settings")
cam_menu.innerHTML = `
<div class="dropdown__Options">
<div class="dropdown__Option dropdown__Option-header">Cam Options</div>
<span class="dropdown__Option" id="llama_rounded_cams">Rounded Borders<input id="llama_rounded_cams_checkbox" class="jic-checkbox" type="checkbox"></span>
<span class="dropdown__Option" id="llama_border">Remove Borders<input id="llama_border_checkbox" class="jic-checkbox" type="checkbox"></span>
<span class="dropdown__Option" id="llama_spacing">Remove Spacing<input id="llama_spacing_checkbox" class="jic-checkbox" type="checkbox"></span>
<span class="dropdown__Option" id="llama_hide_usernames">Remove Usernames<input id="llama_hide_usernames_checkbox" class="jic-checkbox" type="checkbox"></span>
<span class="dropdown__Option" id="llama_override_username">Custom Username Color<input id="llama_override_username_checkbox" class="jic-checkbox" type="checkbox"></span>
<span class="dropdown__Option sub_llama" id="llama_username_color">
<span style="">Username Color</span><input type="color" name="colorpicker" value="#000000" onchange="Button_Action('apply_colors')" id="llama_clear_usercolorsrc" style="opacity: 1;cursor: pointer; width: 20px;height:20px;border-radius: 2px;padding: 0px;"/>
</span>
</div>
`
option_box.appendChild(cam_menu)
}
// ------------------------------------ CREATE : TUBE SETTINGS -------------------------------*/
function Create_Tube_Settings () {
var option_box = document.getElementById("llama_settings_inner")
var tube_menu = document.createElement("div")
tube_menu.className = ""
tube_menu.setAttribute("id", "llama_tube_settings")
tube_menu.innerHTML = `
<div class="dropdown__Options" style="margin-bottom: 5px;">
<div class="dropdown__Option dropdown__Option-header">Save A Song</div>
<span class="dropdown__Option no_hover">
<input type="text" id="llama_new_song_name" autocomplete="off" placeholder="Link Name..." style=""/>
</span>
<span class="dropdown__Option no_hover">
<input type="text" id="llama_new_song_url" pautocomplete="off" placeholder="Youtube URL..."/>
</span>
<span class="dropdown__Option no_hoverbg">
<input id="llama_save_song" type="button" value="+ Add Song" class="apply_btn" onclick="Save_New_Song()"/>
</span>
</div>
<div class="dropdown__Options" style="margin-bottom: 5px;">
<div class="dropdown__Option dropdown__Option-header">Manage Saves</div>
<span class="dropdown__Option no_hoverbg">
<select id="song_dropdown" style="width: 100%; border-radius: 10px;">
</select>
</span>
<span class="dropdown__Option no_hoverbg">
<input id="llama_play_song" type="button" value="▶ Play Song" class="apply_btn" onclick="Check_For_Youtube()"/>
<input id="llama_delete_song" type="button" value="✘ Delete Song" class="apply_btn" onclick="Delete_Song_Dropdown()"/>
</span>
</div>
<div class="dropdown__Options">
<div class="dropdown__Option dropdown__Option-header">Tube Options - COMING SOON!</div>
<span class="dropdown__Option" id="llama_override_username">
<s>Add Youtube Play Box to Page</s><input id="" class="jic-checkbox" type="checkbox"></span>
</div>
`
option_box.appendChild(tube_menu)
}
// ------------------------------------ CREATE : LLAMA SETTINGS -----------------------------*/
function Create_Llama_Settings () {
var option_box = document.getElementById("LlamaOptions_Box")
var theme_menu = document.createElement("div")
theme_menu.className = "shadow-sm"
theme_menu.setAttribute("id", "llama_settings")
theme_menu.innerHTML = `
<div id="" style="width:100%; font-weight:600; color: var(--thememode-userlist); border-bottom: 1px solid var(--thememode-bordercolor);">
<h2 style="margin-left: 20px;">Jumpinllama Settings</h2>
<i class="fas fa-times fa-lg" style="float: right; top: 20px; right: 20px; position: absolute; color: var(--thememode-userlist);" onclick="Exit_Box_Action()"></i>
</div>
<div id="llama_settings_inner" style="width:100%; margin:5px;"></div>
`
option_box.appendChild(theme_menu)
}
// ------------------------------------ CREATE : THEME SETTINGS -----------------------------*/
function Create_Theme_Settings () {
var option_box = document.getElementById("llama_settings_inner")
var theme_menu = document.createElement("div")
theme_menu.className = ""
theme_menu.setAttribute("id", "llama_theme_settings")
theme_menu.innerHTML = `
<div class="dropdown__Options">
<div class="dropdown__Option dropdown__Option-header">Preset Themes</div>
<label class="dropdown__Option no_hoverbg">
<div class="color_square default_mode apply_btn" onclick="Toggle_Theme('default')" title="default" style="width: 100%;border-radius:20px;">
<span style="position: relative; top: 3px;">Default
</span></div>
</label>
<label class="dropdown__Option no_hover">
<div class="color_square pink_mode" onclick="Toggle_Theme('pink')" title="pink"></div>
<div class="color_square green_mode" onclick="Toggle_Theme('green')" title="green"></div>
<div class="color_square blue_mode" onclick="Toggle_Theme('blue')" title="blue"></div>
<div class="color_square mauve_mode" onclick="Toggle_Theme('mauve')" title="mauve"></div>
<div class="color_square orange_mode" onclick="Toggle_Theme('orange')" title="orange"></div>
<div class="color_square red_mode" onclick="Toggle_Theme('red')" title="red"></div>
<div class="color_square purple_mode" onclick="Toggle_Theme('purple')" title="purple"></div>
<div class="color_square black_mode" onclick="Toggle_Theme('black')" title="matte black"></div>
</label>
<label class="dropdown__Option no_hover">
<div class="color_square buds_mode" onclick="Toggle_Theme('buds')" title="buds"></div>
<div class="color_square splat_mode" onclick="Toggle_Theme('splat')" title="splat"></div>
<div class="color_square tech_mode" onclick="Toggle_Theme('tech')" title="tech"></div>
</label>
<label class="dropdown__Option no_hoverbg">
<div class="color_square cust_mode apply_btn" onclick="Toggle_Theme('custom')" title="custom" style="width: 100%;border-radius:20px;">
<span style="position: relative; top: 3px;">Custom Mode
<span class="on">ON</span>
<span class="off">OFF</span>
</span>
</div>
</label>
</div>
<div class="dropdown__Options" style="margin-top:5px;">
<div class="dropdown__Option dropdown__Option-header">Theme Settings</div>
<span class="dropdown__Option" id="llama_ltr">Left-To-Right Mode<input id="llama_ltr_checkbox" class="jic-checkbox" type="checkbox"></span>
<span class="dropdown__Option" id="llama_override_user_bg">Custom Background Color<input id="llama_override_user_bg_checkbox" class="jic-checkbox" type="checkbox"></span>
<span class="dropdown__Option sub_llama" id="llama_user_bgcolor">
<span style="">Background Color</span>
<input type="color" name="colorpicker" value="#000000" onchange="Button_Action('apply_bgcolors')" id="llama_clear_user_bgcolorsrc" style="opacity: 1;cursor: pointer; width: 20px;height:20px;border-radius: 2px;padding: 0px;"/>
</span>
<span class="dropdown__Option" id="llama_trans_chat">Transparent Chat<input id="llama_trans_chat_checkbox" class="jic-checkbox" type="checkbox"></span>
<span class="dropdown__Option" id="llama_trans_users">Transparent Users<input id="llama_trans_users_checkbox" class="jic-checkbox" type="checkbox"></span>
</div>
`
option_box.appendChild(theme_menu)
}
// ------------------------------------ CREATE : BG IMAGE SETTINGS -----------------------------*/
function Create_BG_Settings () {
var option_box = document.getElementById("llama_settings_inner")
var theme_menu = document.createElement("div")
theme_menu.setAttribute("id", "llama_bg_settings")
theme_menu.innerHTML = `
<div class="dropdown__Options" style="margin-bottom:5px;">
<div class="dropdown__Option dropdown__Option-header">Enable/Disable Images</div>
<span class="dropdown__Option" id="llama_user_bg">Background Images<input id="llama_user_bg_checkbox" class="jic-checkbox" type="checkbox"></span>
</div>
<div class="dropdown__Options" style="margin-bottom:5px;">
<div class="dropdown__Option dropdown__Option-header">CAM BG Image URL <i class="fas fa-video" style="color: var(--thememode-textcolor);"></i></div>
<span class="dropdown__Option no_hoverbg">
<input id="llama_cambg_settings" title="Cam BG Settings" type="button" value="⚙" style="cursor:pointer;background: var(--thememode-bgcolor);color: #fff;border:0px;border-radius: 10px;width: 15%;border: 0px; border-top-right-radius:0px; border-bottom-right-radius:0px;"/>
<input type='text' name="server" id="llama_clear_cambg" placeholder="URL to image.."/>
<input id="llama_clear_cam" title="Clear Cam BG"type="button" value="✘" style="cursor:pointer;background: var(--thememode-bgcolor);color: #fff;border:0px;border-radius: 10px;width: 15%;border: 0px; border-top-left-radius:0px; border-bottom-left-radius:0px;"/>
</span>
<div id="cambg_settings">
<span class="dropdown__Option" id="llama_cambg_cover">Cover Screen<input id="llama_cambg_cover_checkbox" class="jic-checkbox" type="checkbox" style="cursor:pointer;"></span>
<span class="dropdown__Option" id="llama_cambg_center">Center Image<input id="llama_cambg_center_checkbox" class="jic-checkbox" type="checkbox" style="cursor:pointer;"></span>
<span class="dropdown__Option" id="llama_cambg_repeat">Disable Repeat<input id="llama_cambg_repeat_checkbox" class="jic-checkbox" type="checkbox" style="cursor:pointer;"></span>
</div>
</div>