forked from steveseguin/vdo.ninja
-
Notifications
You must be signed in to change notification settings - Fork 0
/
comms.html
2340 lines (2079 loc) · 75.4 KB
/
comms.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>
<head>
<title>Comms app</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<script src="./thirdparty/jquery/jquery-3.6.0.js?v=2"></script>
<script src="./thirdparty/jquery/jquery-ui.js"></script>
<link rel="stylesheet" href="./thirdparty/jquery/jquery-ui.css">
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon" />
<link rel="icon" type="image/png" sizes="32x32" href="./media/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="./media/favicon-16x16.png" />
<link rel="icon" href="./media/favicon.ico" />
<link itemprop="thumbnailUrl" href="./media/vdoNinja_logo_full.png" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Sora:wght@200;400;700&display=swap" rel="stylesheet">
<style>
:root{
--aspect-ratio: 1.7777777777;
--chat-width: 400px;
--chat-filler: 0px;
}
body {
padding:0;
margin:0;
background-color: #c9c9c9;
font-family: 'Sora', sans-serif;
overflow: auto;
position: absolute;
border-radius: 50px;
background: #2e445c;
box-shadow: 20px 20px 60px #273a4e, -20px -20px 60px #354e6a;
scrollbar-color:#666 #201c29;
}
iframe {
border: 0;
padding: 0;
display: block;
height: 100%;
width: 1280px;
max-height: calc(100vh - 92px);
background-color: #0002;
border-radius: 3px;
position: absolute;
left: 0;
top: 0;
transition: background-color 0.05s ease-out;
}
iframe.aspectRatio{
max-height: min(calc(100vh - 92px), calc(100vw - 160px - var(--chat-width)) / var(--aspect-ratio)) !important;
max-width: min(calc((100vh - 92px) * var(--aspect-ratio)), calc(100vw - 160px - var(--chat-width))) !important;
height: 720px;
width: 1280px;
}
.gone {
position:absolute;
top: -150px;
}
.modal{
overflow:auto;
}
.message{
background: #3e3e3e00;
color: #FCFCFC;
vertical-align: top;
border: 1px solid #2e445c;
border-radius: 10px;
background: #2e445c;
box-shadow: 5px 5px 10px #121620, -5px -5px 10px #162a36;
}
.inMessage {
color: #000;
margin: 3px;
border-radius: 5px;
background: #FFF;
padding: 5px;
text-align: left;
}
.actionMessage {
color: #000;
margin: 3px;
border-radius: 5px;
background: #FFF;
padding: 5px;
text-align: left;
}
.outMessage {
color: #000;
margin: 3px;
border-radius: 5px;
background: #BCF;
padding: 5px;
text-align: right;
}
#chatBody {
background-color: #0004;
margin: 0 10px 10px 0;
border-radius: 5px;
overflow-y:scroll;
overflow-wrap: anywhere;
bottom: 45px;
position: absolute;
}
#chatBody::-webkit-scrollbar {
width: 0px;
background: transparent; /* make scrollbar transparent */
}
.xbutton{
float: right;
cursor: pointer;
user-select: none;
color: white;
font-size: 250%;
font-family: Verdana;
line-height: 30px;
z-index:20;
}
#chatModule {
bottom: 0;
position: fixed;
margin: 10px;
align-self: center;
width: 400px;
max-width: 100%;
z-index:3;
height: calc(100vh - 40px);
overflow: hidden;
right:0;
background:#0001;
border: solid 2px #0005;
border-radius: 10px;
padding: 10px;
transition: all .05s ease-in-out;
}
#chatInput {
display: inline-block;
color: #000;
background-color: #FFFE;
width: 324px;
font-size: 105%;
margin-left: 7px;
}
#chatSendBar{
display: inline-block;
bottom: 0px;
position:absolute;
}
#savedroompassword{
width:50px;
}
button[data-state='true']{
background-color:#CEF !important;
}
.hotkey {
top:2px;
}
.groupsize{
pointer-events: none;
color: #BBB;
font-size: 13px;
}
input[type="checkbox"] {
width: 20px;
height: 20px;
text-align: center;
vertical-align: middle;
transition: all .2s ease-in-out;
}
input[type="checkbox"]:checked {
transform: scale(1.1);
}
.groupview{
position: absolute;
right: 0;
bottom: 0;
width: 24px;
height: 24px;
display: block;
background-color: #000;
opacity: 30%;
border: 2px solid #222;
z-index: 2;
border-radius: 50%;
padding:2px;
}
.groupview::before{
content: '👁️';
}
.view > .groupview {
opacity: 100%;
background-color: #FFF3;
border: 2px solid #DDD;
}
label {
margin: 0 0px 6px 0;
display: inline-block;
font-weight: 600;
}
.ui-widget-header{
background: rgb(225,225,225); /* Old browsers */
background: -moz-linear-gradient(-45deg, rgba(255,255,255,1) 0%, rgba(241,241,241,1) 50%, rgba(225,225,225,1) 51%, rgba(246,246,246,1) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(-45deg, rgba(255,255,255,1) 0%,rgba(241,241,241,1) 50%,rgba(225,225,225,1) 51%,rgba(246,246,246,1) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(135deg, rgba(255,255,255,1) 0%,rgba(241,241,241,1) 50%,rgba(225,225,225,1) 51%,rgba(246,246,246,1) 100%);
}
#containerMenu{
position: absolute;
left: 0px;
width: calc(100vw - var(--chat-width) - 40px + var(--chat-filler));
display: flex;
top: 0;
height: 100px;
overflow-y: hidden;
}
#iframeContainer{
position: absolute;
left: 10px;
box-shadow: 1px 1px 3px #1b1b1b, -1px -1px 3px #1d1d1d;
}
#vdoninja {
max-width: calc(100vw - 54px - var(--chat-width) + var(--chat-filler));
width: 100vw;
height: calc(100vh - 112px);
}
#viewlink {
width:400px;
}
#container {
display:none;
padding:0px;
}
button[data-state='true']{
background-color:#CEF !important;
}
.disconnected{
border: 4px dotted red!important;
padding: 6px 0.25em 0.25em 0.25em!important;
outline: dashed 2px black!important;
}
.thing:hover{
animation: horizontalShake 2s;
animation-iteration-count: 1;
}
#col1>.thing:hover{
animation: enlargeAnimation 2s;
animation-iteration-count: 1;
}
#col1>.thing:active{
transform: scale(1.05);
animation:none;
}
.thing:active{
animation:none;
transform: translate(7px, 0px) rotate(0deg);
}
#delete:hover{
animation: none!important;
}
#delete:active{
transform: none!important;
}
@keyframes enlargeAnimation {
0% { transform: scale(1.01); }
20% { transform: scale(1.03); }
80% { transform: scale(1.05); }
100% { transform: scale(1.06); }
}
@keyframes horizontalShake {
0% { transform: translate(3px, 0px) rotate(0deg); }
20% { transform: translate(7px, 0px) rotate(0deg); }
80% { transform: translate(8px, 0px) rotate(0deg); }
100% { transform: translate(-1px, 0px) rotate(0deg); }
}
.shake {
animation: shake 0.5s;
animation-iteration-count: 1;
}
@keyframes shake {
0% { transform: translate(1px, 1px) rotate(0deg); }
10% { transform: translate(-1px, -2px) rotate(-1deg); }
20% { transform: translate(-3px, 0px) rotate(1deg); }
30% { transform: translate(3px, 2px) rotate(0deg); }
40% { transform: translate(1px, -1px) rotate(1deg); }
50% { transform: translate(-1px, 2px) rotate(-1deg); }
60% { transform: translate(-3px, 1px) rotate(0deg); }
70% { transform: translate(3px, 1px) rotate(-1deg); }
80% { transform: translate(-1px, -1px) rotate(1deg); }
90% { transform: translate(1px, 2px) rotate(0deg); }
100% { transform: translate(1px, -2px) rotate(-1deg); }
}
input{
padding:5px;
margin:5px;
border-radius: 3px;
}
.menuButton{
width: 92%;
}
button{
user-select: none;
padding:5px;
margin:5px;
border-radius: 3px;
cursor:pointer;
background: linear-gradient(135deg, rgba(238,238,238,1) 60%,rgb(225, 225, 225, 1) 80%,rgb(210, 209, 209, 1) 100%);
}
.group{
padding: 10px;
cursor: pointer;
border-radius: 10px;
box-shadow: 2px 2px 6px #273a4e, -2px -2px 6px #354e6a;
width: 135px;
height: 50px;
background-color: #0004;
display: inline-block;
margin: 5px 10px 0 10px;
color:white;
text-align: center;
vertical-align: middle;
align-content: center;
}
h2 {
text-shadow: 0 0 2px #a7a7a7;
color: #000b3a;
user-select: none;
}
.inline{
display:inline-block;
}
table {
font-size: 1em;
}
::-webkit-scrollbar {
width: 12px;
height: 12px;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 13px rgb(0 0 0 / 90%);
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
border-radius: 4px;
-webkit-box-shadow: inset 0 0 16px rgb(150 150 150 / 100%);
border: solid 3px transparent;
}
.ui-draggable, .ui-droppable {
background-position: top;
}
#containerMenu2 {
width: calc(100vw - 300px);
position: absolute;
left: 155px;
margin: 20px 0;
top: 60px;
}
.tFadeOut{
animation-duration: 1s;
animation-name: tFadeOut;
transition: top 1s;
top: 92px;
}
.tFadeIn{
animation-duration: 1s;
animation-name: tFadeIn;
transition: top 1s;
top: 122px;
}
.tFadeOut{
animation-duration: 1s;
animation-name: tFadeOut;
transition: top 1s;
top: 92px;
}
.tFadeStart{
top: 102px;
}
@keyframes tFadeOut {
from {
top: 122px;
}
to {
top: 92px;
}
}
@keyframes tFadeIn {
from {
top: 92px;
}
to {
top: 122px;
}
}
.hFadeOut{
overflow:hidden;
animation-duration: 1s;
animation-name: hFadeOut;
transition: height 1s;
height:0;
}
@keyframes hFadeOut {
from {
height: 43px;
}
to {
height: 0;
}
}
.hFadeIn{
overflow:hidden;
animation-duration: 1s;
animation-name: hFadeIn;
transition: height 1s;
height:43px;
}
@keyframes hFadeIn {
from {
height: 0;
}
to {
height: 43px;
}
}
.draggable { width: 150px; height: 150px; padding: 0; margin:0; border:0; }
.resizable { width: 150px; height: 150px; padding: 0; margin:0; border:0; }
.resizable h3 { text-align: center; margin: 0; cursor: grab; border: 1px solid black;}
.ui-menu { width: 150px; }
.ui-state-selected {
background-color: #64b1ff;
}
.ui-state-disabled {
background-color: grey;
}
.widget {
background-color: #DDD;
position: absolute;
}
h3 {
margin-bottom: 6px;
}
.settings {
display: block;
background: #c0e3ff;
position: absolute;
top: 100px;
left: 100px;
z-Index:20;
}
.hidden {
display:none!important;
}
.fadeout {
visibility: hidden;
opacity: 0;
transition: visibility 0s 0.5s, opacity 0.5s linear;
}
.fade2black{
background-color: 000F;
transition: background-color 0.5s linear;
}
.hidden2{
display:none!important;
}
.hidden3{
display:none!important;
}
.thing {
width: 100px;
padding: 10px 0.5em 0.5em 0.5em;
margin: 6px;
border: #565656 solid 1px;
background: rgba(0,0,0,0.8);
color: white;
font-family: sans-serif;
cursor: grab;
text-align: center;
border-radius: 6px;
word-wrap: break-word;
box-shadow: inset 6px 6px 6px #dadada1c, inset -6px -6px 6px #27272724;
}
.empty {
width: 100px;
padding: 10px 0.5em 0 0.5em;
margin: 0.5em 0.4em;
background: rgba(0,0,0,0.8);
color: white;
font-family: sans-serif;
user-select: none;
text-align: center;
border-radius: 6px;
height: 1.7em;
cursor: crosshair;
border: 1px solid black;
}
.col {
width: 130px;
height: calc(100vh - 20px);
padding: 5px;
border: 1px solid;
border-radius: 5px;
position: relative;
float: left;
user-select: none;
}
.pressed>.group{
box-shadow: inset 2px 2px 10px #0007, inset -2px -2px 10px #0007;
background-color: #276022aa;
}
button.pressed {
background-color: #CEF;
}
.editButton{
display:none;
position: absolute;
z-index: 2;
padding: 6px 0;
width: 28px;
height: 28px;
line-height: 0px;
border-radius: 14px;
}
.editButton[data-state="active"]{
display:block!important;
background: #defffd;
border: #166b49 solid 2px;
}
.setButton{
display:none;
position:absolute;
margin: 20px 57px;
z-index:2;
}
.groupContainer{
display:inline-block;
max-width: 50%;
}
.groupContainer>.group{
transform: scale(calc( var(--aspect-ratio) / (16 / 9)), 1);
max-width: 35vw;
}
.groupContainer:hover>.group{
box-shadow: 0 0 6px #273a4e, 0 0px 6px #fffC;
}
.groupContainer:hover>button{
display:inline-block;
padding: 3.2px;
opacity: 80%;
}
.groupContainer>button:hover{
display:inline-block;
padding: 3.2px;
opacity: 100!important;
box-shadow: 2px 2px 2px #918c8c7c, -2px -2px 2px #27272774
}
b {
text-shadow: 0 0 1px #f4f4f4;
}
a {
display: inline-block;
margin: 5px;
background-color: #c9c9c9;
border: 2px solid black;
padding: 4px;
border-radius: 6px;
cursor:pointer;
}
#delete {
background-color: rgb(191 191 191);
text-align: center;
border: 1px solid black;
color: black;
cursor: crosshair;
margin: 5.5px;
border-radius: 0px;
display:none;
}
.modal {
position: fixed;
padding-top: 50px;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.5);
z-Index: 20;
}
.modal-content {
position: relative;
padding: 20px;
margin: auto;
margin-bottom: 100px;
width: 75%;
-webkit-animation-name: animatetop;
-webkit-animation-duration: 0.4s;
animation-name: animatetop;
animation-duration: 0.4s;
border-radius: 4px;
background-color: #e2e2e2;
background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}
.close-btn {
color: #333;
font-size: 24px;
font-weight: bold;
user-select: none;
}
.close-btn:hover {
color: black;
cursor:pointer;
}
span.close-btn {
float: right;
}
@-webkit-keyframes animatetop {
from {top:-300px; opacity:0}
to {top:0; opacity:1}
}
@keyframes animatetop {
from {top:-300px; opacity:0}
to {top:0; opacity:1}
}
#welcomeWindow{
display:none;
position:absolute;
top:0;
left:0;
width:100vw;
height:100vh;
z-index:5;
background: #2775dc;
box-shadow: 20px 20px 60px #51729d,
-20px -20px 60px #6d9ad5;
background: -moz-linear-gradient(-45deg, rgba(59,103,158,1) 2%, rgba(43,136,217,1) 50%, rgba(32,124,202,1) 79%, rgba(89, 165, 224,1) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(-45deg, rgba(59,103,158,1) 2%,rgba(56, 134, 202,1) 50%,rgba(32,124,202,1) 79%,rgba(89, 165, 224,1) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(135deg, rgba(59,103,158,1) 2%,rgba(56, 134, 202,1) 50%,rgba(32,124,202,1) 79%,rgba(89, 165, 224,1) 100%);
background: linear-gradient(135deg, rgba(59,103,158,1) 2%,rgba(56, 134, 202,1) 50%,rgba(32,124,202,0.8) 79%,rgba(89, 165, 224,1) 100%), url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='noise' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeBlend mode='screen'/%3E%3C/filter%3E%3Crect width='500' height='500' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
}
.center-content{
align-content: center;
margin: 20px auto;
display: block;
width: 500px;
max-width: 100%;
}
.footer {
bottom: 0;
display: inline-block;
vertical-align: middle;
margin: 5px 20px;
height: 28px;
display: flex;
align-items: center;
position: fixed;
right: 0;
}
.footer>div{
align-items: center;
}
.popup-message {
display: none;
align-text: center;
position: absolute;
z-index: 35 !important;
padding: 5px !important;
border-radius: 3px;
min-width: 180px !important;
background-color: #fff !important;
border: solid 1px #dfdfdf !important;
box-shadow: 1px 1px 2px #cfcfcf !important;
}
.context-menu--active {
display: block !important;
}
.context-menu__items {
list-style: none !important;
margin: 0;
padding: 0;
}
.context-menu__item {
display: block;
margin-bottom: 4px !important;
}
.context-menu__item:last-child {
margin-bottom: 0 !important;
}
.context-menu__link {
display: block;
padding: 4px 12px;
color: #0066aa !important;
text-decoration: none;
}
button.menuButtons{
background-color: #b4c5ca !important;
background: linear-gradient(135deg, #c2d2d7 60%,#c7d3d7 80%, #a3b5ba 100%)
}
.context-menu__link:hover {
color: #fff !important;
background-color: #0066aa !important;
}
.discord{
background-image: url("data:image/svg+xml,%3Csvg width='71' height='55' viewBox='0 0 71 55' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0)'%3E%3Cpath d='M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z' fill='%23ffffff'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0'%3E%3Crect width='71' height='55' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
background-size: contain;
background-repeat: no-repeat;
width:14px;
height:10px;
border:0;
background-color:#0000;
}
.github {
background-image: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z'/%3E%3C/svg%3E");
background-size: contain;
width:10px;
height:10px;
border:0;
background-color:#0000;
}
#containermenu>div:nth-child(1)>div::before {
content: "1";
color: #a4a4a4;
}
#containermenu>div:nth-child(2)>div::before {
content: "2";
color: #a4a4a4;
}
#containermenu>div:nth-child(3)>div::before {
content: "3";
color: #a4a4a4;
}
#containermenu>div:nth-child(4)>div::before {
content: "4";
color: #a4a4a4;
}
#containermenu>div:nth-child(5)>div::before {
content: "5";
color: #a4a4a4;
}
#containermenu>div:nth-child(6)>div::before {
content: "6";
color: #a4a4a4;
}
#containermenu>div:nth-child(7)>div::before {
content: "7";
color: #a4a4a4;
}
#containermenu>div:nth-child(8)>div::before {
content: "8";
color: #a4a4a4;
}
#containermenu>div:nth-child(9)>div::before {
content: "9";
color: #a4a4a4;
}
#containermenu>div>div {
width: 15px;
height: 15px;
border-radius: 10px;
margin: 0 auto;
color: #a4a4a4;
position: relative;
left: 4px;
font-size: 70%;
cursor:help;
}
.tooltip {
z-index: 100;
}
.tooltip .tooltiptext {
user-select: none;
visibility: hidden;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 3px;
padding: 3px;
display:none;
position:absolute;
overflow: auto;
margin: 0; position:relative;
font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", Times, Symbola, Aegyptus,Code2000, Code2001, Code2002, Musica, serif, LastResort;
}
.tooltip:hover .tooltiptext {
visibility: visible;
display:inline-block;
}
.randomRoomName{
width: 24px;
height: 24px;
background-size: contain;
background-repeat: no-repeat;
border-radius: 5px;
background: rgb(238,238,238);
background-image: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 29 29'%3E%3Cpath d='M18 9v-3c-1 0-3.308-.188-4.506 2.216l-4.218 8.461c-1.015 2.036-3.094 3.323-5.37 3.323h-3.906v-2h3.906c1.517 0 2.903-.858 3.58-2.216l4.218-8.461c1.356-2.721 3.674-3.323 6.296-3.323v-3l6 4-6 4zm-9.463 1.324l1.117-2.242c-1.235-2.479-2.899-4.082-5.748-4.082h-3.906v2h3.906c2.872 0 3.644 2.343 4.631 4.324zm15.463 8.676l-6-4v3c-3.78 0-4.019-1.238-5.556-4.322l-1.118 2.241c1.021 2.049 2.1 4.081 6.674 4.081v3l6-4z'/%3E%3C/svg%3E"), linear-gradient(135deg, rgba(238,238,238,1) 0%,rgba(204,204,204,1) 100%);
}
#demoDrop{
background-color: #30892c;
cursor: help;
display:none;
}
.demoThing{
width: 100px;
padding: 10px 0.5em 0.5em 0.5em;
margin: 6px;
border: #565656 solid 1px;
background: rgba(0,0,0,0.8);
color: white;
font-family: sans-serif;
cursor: grab;
text-align: center;
border-radius: 6px;
word-wrap: break-word;
box-shadow: inset 6px 6px 6px #dadada1c, inset -6px -6px 6px #27272724;
display:none;
}
#sendChat{
bottom: 1px;
position: relative;
}
body.mobile #containerMenu{
position: relative;
left: 0px;
width: 100vw;
display: inline-block;
top: 0;
height: unset;
overflow-y: hidden;
}
body.mobile #iframeContainer{
position: relative;
box-shadow: 1px 1px 3px #1b1b1b, -1px -1px 3px #1d1d1d;
}
body.mobile #vdoninja {
max-width: calc(100vw - 20px);
max-height: calc(100vh - 117px);
height: 180px;
}
body.mobile #iframeContainer {
position: relative;
max-width: calc(100vw - 40px);
}
body.mobile {
margin:0;
overflow: initial;
overflow-x: hidden;
}
body.mobile .tFadeStart {
top:0;
}
body.mobile .tooltip:hover .tooltiptext {
display: none;
}
body.mobile #welcomeWindow{
padding-bottom: 40px;
}
#chatModuleButton {
user-select: none;
position: fixed;
top: 10px;
right: 10px;
cursor: pointer;
}
body.mobile #chatModuleButton {
position: fixed;
bottom: 10px;
top: unset;
font-size: 150%;
}
</style>
</head>
<body>
<div id="container">
<div id="containermenu"></div>
</div>
<div id="chatModuleButton" class="hidden" onclick="toggleChat();" title="Show the chat window">💬</div>
<div id="chatModule" class="hidden">
<div class="xbutton" onclick="toggleChat();" title="Hide the chat window">x</div>
<div id="chatBody" class="message">
<div class="inMessage" data-translate='welcome-to-vdo-ninja-chat'>
Welcome to the Comms app! You can send text messages to everyone in the room from here.
</div>
</div>
<div id="chatSendBar">
<input id="chatInput" placeholder="Enter chat message to send here" onkeypress="EnterButtonChat(event)" />
<button onclick="sendChatMessage()" id='sendChat'>Send</button>
</div>
</div>
<div id="welcomeWindow">
<div class="center-content">
<div class="title"><h1 class="main-heading">Comms</h1><h2>multi-group audio chat<b></b></h2></div>
<label for="roomname"><input autocapitalize="off" autocorrect="off" name="roomname" id="roomname" type="text" placeholder="Room Name" /></label>
<font class="tooltip">
<button onclick="randomRoomName();" class="randomRoomName"></button><span class="tooltiptext">Generate a random room name</span>
</font>
<br />
<label for="roompassword"><input autocapitalize="off" autocorrect="off" name="roompassword" id="roompassword" type="text" placeholder="Room Password (optional)"/></label><br />
<button onclick="startRoom();">Get started!</button><br /><br />
<span id="lastSavedRoom" class="hidden">
<br /><br />
<label for="savedroomname">
<input name="savedroomname" autocapitalize="off" autocorrect="off" id="savedroomname" type="text" disabled placeholder="Room Name" /></label>
<label for="savedroompassword" id="savedpasswordlabel"><br />
<input name="savedroompassword" autocapitalize="off" autocorrect="off" id="savedroompassword" disabled type="password" placeholder="Room Password"/></label>
<button onclick="startLastRoom();">Restore last room</button>
</span>
<br /><br />
<div class="footer">
<div>
<a href="https://discord.vdo.ninja" class="discord" target="_blank"></a>
</div>
<div>
<a class="github" href="https://github.com/steveseguin/vdoninja" rel="noopener" target="_blank" title="Star steveseguin/vdoninja on GitHub"></a>
</div>
<div style="cursor:pointer;" onclick="window.open('https://vdo.ninja');">Powered by VDO.Ninja</div>
</div>
</div>
</div>
<div id="iframeContainer" class="tFadeStart">
</div>
<div class="gone" >
<!-- This image is used when dragging elements -->
<img src="./media/favicon-32x32.png" style="pointer-events: none;" id="dragImage" loading="lazy" />
</div>
<div id="messagePopup" class="popup-message"></div>
<script>
function allowDrop(ev) {
ev.preventDefault();
}
(function(w) {
w.URLSearchParams = w.URLSearchParams || function(searchString) {
var self = this;
searchString = searchString.replace("??", "?");
self.searchString = searchString;
self.get = function(name) {
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(self.searchString);
if (results == null) {
return null;
} else {
return decodeURI(results[1]) || 0;
}
};
};