-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
shell.html
1396 lines (1274 loc) · 77.8 KB
/
shell.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="description" content="C64 emulator iPad iPhone demo browser csdb. Compatible to the progressive-web-app (PWA) standard.">
<title>vc64web C64 emulator iPad iPhone</title>
<link rel="icon" href="img/favicon.ico">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,viewport-fit=cover">
<link rel="manifest" href="manifest.json">
<!-- ios support -->
<link rel="apple-touch-icon" href="img/icon-96x96.png">
<meta name="apple-mobile-web-app-capable" content="yes"><!--deprecated-->
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar" content="black-translucent">
<meta name="theme-color" content="black">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/vc64.css">
<script src="js/jquery-3.5.0.min.js"></script>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/ringbuffer.js"></script>
<script src="js/vc64_browser.js"></script>
<script src="js/vc64_ui.js"></script>
<script src="js/vc64_storage.js"></script>
<script src="js/vc64_keyboard.js"></script>
<script src="js/vc64_action_script.js"></script>
<script src="js/vc64_updater.js"></script>
<script src="js/virtualjoystick.js"></script>
<script src="js/jszip.min.js"></script>
<style>
.emscripten { padding-right: 0; margin-left: auto; margin-right: auto; display: block; }
textarea.emscripten { font-family: monospace; width: 80%; }
div.emscripten { text-align: center; }
div.emscripten_border { border: 0px solid black; }
/* the canvas *must not* have any border or padding, or mouse coords will be wrong */
canvas.emscripten
{ border: 0px none; }
.spinner {
height: 50px;
width: 50px;
margin: 0px auto;
-webkit-animation: rotation .8s linear infinite;
-moz-animation: rotation .8s linear infinite;
-o-animation: rotation .8s linear infinite;
animation: rotation 0.8s linear infinite;
border-left: 10px solid rgb(0,150,240);
border-right: 10px solid rgb(0,150,240);
border-bottom: 10px solid rgb(0,150,240);
border-top: 10px solid rgb(100,0,200);
border-radius: 100%;
background-color: rgb(200,100,250);
}
@-webkit-keyframes rotation {
from {-webkit-transform: rotate(0deg);}
to {-webkit-transform: rotate(360deg);}
}
@-moz-keyframes rotation {
from {-moz-transform: rotate(0deg);}
to {-moz-transform: rotate(360deg);}
}
@-o-keyframes rotation {
from {-o-transform: rotate(0deg);}
to {-o-transform: rotate(360deg);}
}
@keyframes rotation {
from {transform: rotate(0deg);}
to {transform: rotate(360deg);}
}
</style>
</head>
<body data-theme="dark" oncontextmenu="event.preventDefault()" warpstate="0">
<figure style="overflow:visible;" id="spinner"><div class="spinner"></div><center style="margin-top:0.5em"><strong>booting into Virtual C64 WebEdition...</strong></center></figure>
<div class="emscripten" id="status">Downloading...</div>
<div class="emscripten">
<progress value="0" max="100" id="progress" hidden=1></progress>
</div>
<div id="div_canvas" class="emscripten_border" style="width:100vw;height:100vh">
<canvas class="emscripten" width="326" height="205" id="canvas" oncontextmenu="event.preventDefault()" tabindex="-1"></canvas>
</div>
<!-- virtual keyboard-->
<div class="collapse" style="user-select: none;" id="virtual_keyboard">
<div class="justify-content-center" id="vbk_scroll_area"
style="display: flex;flex-wrap: nowrap;overflow-x: auto;overflow-y: hidden">
<div style="display:flex;padding-top:2px;position: relative;min-width: 0;max-width: 100%">
<div id="divKeyboardRows"></div>
</div>
</div>
</div>
<button id="button_show_menu"
style="position: fixed; top:6px; left:0;z-index:200;"
type="button" class="btn btn-sm icon"
data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"
>
<svg class="bi bi-list" width="1.6em" height="auto" viewBox="0 -1 16 17" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M2.5 11.5A.5.5 0 0 1 3 11h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4A.5.5 0 0 1 3 3h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"/>
</svg>
</button>
<div class="collapse" id="navbar">
<div id="navgrid">
<div class="left">
<span style="width: 40px;display: inline-block;"></span>
<button type="button" id="button_reset" class="btn btn-sm icon" data-toggle="tooltip" data-placement="top" title="reset">
<svg style="margin-top: 1px;" class="bi bi-skip-start-fill" width="1.6em" height="auto" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M4.5 3.5A.5.5 0 0 0 4 4v8a.5.5 0 0 0 1 0V4a.5.5 0 0 0-.5-.5z"/>
<path d="M4.903 8.697l6.364 3.692c.54.313 1.232-.066 1.232-.697V4.308c0-.63-.692-1.01-1.232-.696L4.903 7.304a.802.802 0 0 0 0 1.393z"/>
</svg>
</button>
<span data-toggle="tooltip" data-placement="top" title="pause">
<button type="button" id="button_run" class="btn btn-sm icon">
<svg class="bi bi-pause-fill" width="1.6em" height="auto" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z"/>
</svg>
</button>
</span>
<button type="button" id="button_ff" style="position:relative" class="btn btn-sm icon" data-toggle="tooltip" data-placement="top" title="warp">
<div id="warping">
<svg xmlns="http://www.w3.org/2000/svg" width="1.6em" height="1.6em" fill="currentColor" class="bi bi-fast-forward-fill" viewBox="0 0 16 16">
<path d="M7.596 7.304a.802.802 0 0 1 0 1.392l-6.363 3.692C.713 12.69 0 12.345 0 11.692V4.308c0-.653.713-.998 1.233-.696z"/>
<path d="M15.596 7.304a.802.802 0 0 1 0 1.392l-6.363 3.692C8.713 12.69 8 12.345 8 11.692V4.308c0-.653.713-.998 1.233-.696z"/>
</svg>
<div style="position:absolute;bottom:-1px;font-size:x-small;
animation: blink 1s infinite">warp</div>
</div>
<div id="no_warping">
<svg xmlns="http://www.w3.org/2000/svg" width="1.6em" height="1.6em" fill="currentColor" class="bi bi-fast-forward" viewBox="0 0 16 16">
<path d="M6.804 8 1 4.633v6.734zm.792-.696a.802.802 0 0 1 0 1.392l-6.363 3.692C.713 12.69 0 12.345 0 11.692V4.308c0-.653.713-.998 1.233-.696z"/>
<path d="M14.804 8 9 4.633v6.734zm.792-.696a.802.802 0 0 1 0 1.392l-6.363 3.692C8.713 12.69 8 12.345 8 11.692V4.308c0-.653.713-.998 1.233-.696z"/>
</svg>
</div>
</button>
<button type="button" id="button_speed_toggle" class="btn btn-sm icon" data-toggle="tooltip" data-placement="top" title="toggle speed">
<svg xmlns="http://www.w3.org/2000/svg" width="1.6em" height="1.6em" fill="currentColor" class="bi bi-speedometer" viewBox="0 0 16 16">
<path d="M8 2a.5.5 0 0 1 .5.5V4a.5.5 0 0 1-1 0V2.5A.5.5 0 0 1 8 2M3.732 3.732a.5.5 0 0 1 .707 0l.915.914a.5.5 0 1 1-.708.708l-.914-.915a.5.5 0 0 1 0-.707M2 8a.5.5 0 0 1 .5-.5h1.586a.5.5 0 0 1 0 1H2.5A.5.5 0 0 1 2 8m9.5 0a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 1 0 1H12a.5.5 0 0 1-.5-.5m.754-4.246a.39.39 0 0 0-.527-.02L7.547 7.31A.91.91 0 1 0 8.85 8.569l3.434-4.297a.39.39 0 0 0-.029-.518z"/>
<path fill-rule="evenodd" d="M6.664 15.889A8 8 0 1 1 9.336.11a8 8 0 0 1-2.672 15.78zm-4.665-4.283A11.95 11.95 0 0 1 8 10c2.186 0 4.236.585 6.001 1.606a7 7 0 1 0-12.002 0"/>
</svg>
</button>
<button type="button" id="button_take_snapshot" class="btn btn-sm icon" data-toggle="tooltip" data-placement="top" title="take snapshot">
<svg class="bi bi-box-arrow-in-down" width="1.6em" height="auto" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M4.646 8.146a.5.5 0 0 1 .708 0L8 10.793l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z"/>
<path fill-rule="evenodd" d="M8 1a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-1 0v-9A.5.5 0 0 1 8 1z"/>
<path fill-rule="evenodd" d="M1.5 13.5A1.5 1.5 0 0 0 3 15h10a1.5 1.5 0 0 0 1.5-1.5v-8A1.5 1.5 0 0 0 13 4h-1.5a.5.5 0 0 0 0 1H13a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5v-8A.5.5 0 0 1 3 5h1.5a.5.5 0 0 0 0-1H3a1.5 1.5 0 0 0-1.5 1.5v8z"/>
</svg>
</button>
<span data-toggle="modal" data-target="#snapshotModal">
<button type="button" id="button_snapshots" class="btn btn-sm icon" data-toggle="tooltip" data-placement="top" title="snapshot / scene browser">
<svg class="bi bi-collection-fill" width="1.6em" height="auto" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<rect width="16" height="10" rx="1.5" transform="matrix(1 0 0 -1 0 14.5)"/>
<path fill-rule="evenodd" d="M2 3a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 0-1h-11A.5.5 0 0 0 2 3zm2-2a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 0-1h-7A.5.5 0 0 0 4 1z"/>
</svg>
</button>
</span>
<span data-toggle="collapse" data-target="#virtual_keyboard" aria-expanded="false" aria-controls="virtual_keyboard">
<button id="button_keyboard" class="btn btn-sm icon mr-0" type="button" data-toggle="tooltip" data-placement="top" title="virtual keyboard">
<svg class="bi bi-type" width="1.6em" height="auto" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path d="M2.244 13.081l.943-2.803H6.66l.944 2.803H8.86L5.54 3.75H4.322L1 13.081h1.244zm2.7-7.923L6.34 9.314H3.51l1.4-4.156h.034zm9.146 7.027h.035v.896h1.128V8.125c0-1.51-1.114-2.345-2.646-2.345-1.736 0-2.59.916-2.666 2.174h1.108c.068-.718.595-1.19 1.517-1.19.971 0 1.518.52 1.518 1.464v.731H12.19c-1.647.007-2.522.8-2.522 2.058 0 1.319.957 2.18 2.345 2.18 1.06 0 1.716-.43 2.078-1.011zm-1.763.035c-.752 0-1.456-.397-1.456-1.244 0-.65.424-1.115 1.408-1.115h1.805v.834c0 .896-.752 1.525-1.757 1.525z"/>
</svg>
</button>
</span>
<button id="button_custom_key" class="btn btn-sm icon" type="button" data-toggle="tooltip" data-placement="top" title="action buttons">
<svg width="1.6em" height="auto" viewBox="0 0 16 16" class="bi bi-plus" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M8 3.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H4a.5.5 0 0 1 0-1h3.5V4a.5.5 0 0 1 .5-.5z"/>
<path fill-rule="evenodd" d="M7.5 8a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 0 1H8.5V12a.5.5 0 0 1-1 0V8z"/>
</svg>
</button>
<form id="theFileInput">
<div id="drop_zone" class="px-1" data-toggle="tooltip" data-placement="bottom" title="drop .g64 .d64 .t64 .crt .prg .tap .vc64 .zip files or links from CSDb.dk into here, or just click into the drop zone">
file slot
</div>
<!-- iOS won't work with accept=".g64,.d64,.crt,.prg,.bin" on d64 files -->
<input id="filedialog" name="theFileDialog" type="file" style="display:none" >
</form>
<button id="button_fullscreen" class="btn btn-sm icon hidden" type="button">
<svg id="svg_fullscreen" class="bi bi-fs" width="1.6em" height="1.6em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" data-toggle="tooltip" data-placement="top" title="fullscreen">
</svg>
</button>
<button id="button_settings" class="btn btn-sm icon" type="button" data-toggle="modal" data-target="#modal_settings">
<svg class="bi bi-gear-fill" width="1.6em" height="auto" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" data-toggle="tooltip" data-placement="top" title="settings">
<path fill-rule="evenodd" d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 0 0-5.86 2.929 2.929 0 0 0 0 5.858z"/>
</svg>
</button>
</div>
<div class="right">
<div>
<select id="port1" class="custom-select" data-toggle="tooltip" data-placement="left" title="game port 1">
<option value="none">none</option>
<option value="keys">cursor keys, space to fire</option>
<option value="touch">touch joystick (move|fire)</option>
<option value="mouse">mouse </option>
<option value="mouse touchpad2">mouse touchpad (move|btn/btn)</option>
</select></div>
<div>
<select id="port2" class="custom-select" data-toggle="tooltip" data-placement="left" title="game port 2">
<option value="none">none</option>
<option value="keys">cursor keys, space to fire</option>
<option value="touch">touch joystick (move|fire)</option>
<option value="mouse">mouse </option>
<option value="mouse touchpad2">mouse touchpad (move|btn/btn)</option>
</select></div>
</div>
</div>
</div>
<div class="row mt-1" id="output_row">
<div class="col-12 px-1">
<!--textarea rows="20" id="output"></textarea-->
<div id="output" style="height:164px;width:100%;padding:1px;overflow-y:scroll;resize:vertical;display:flex;flex-direction:column-reverse;font-size: smaller;"></div>
</div>
</div>
</div> <!-- end of fluid container -->
<div id="alert_reset" class="alert alert-darkest" role="alert" style="display:none">
<span class="ml-4">resetting machine, please wait ...</span>
</div>
<div id="alert_wait" class="alert alert-darkest" role="alert" style="display:none">
<span>loading please wait ...</span>
<div class="progress">
<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div>
</div>
</div>
<!-- Modal snapshot-->
<div class="modal fade" id="snapshotModal" tabindex="-1" role="dialog" aria-hidden="true">
<div id="view_detail" style="display: none;" tabindex="-1" >
<button type="button" id="detail_back">
<svg width="1.6em" height="1.6em" viewBox="0 0 16 16" class="bi bi-arrow-left" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8z"/>
</svg>
</button>
<div id="detail_content"></div>
</div>
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<div class="row" style="width: 100%">
<div class="col-sm mt-2 btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-primary active">
<input type="radio" name="options" id="sel_browser_snapshots" checked> snapshots
</label>
<label class="btn btn-secondary">
<input type="radio" name="options" id="sel_browser_csdb"> CSDb.dk
</label>
</div>
<div class="col-sm mt-2 input-group">
<div class="input-group-prepend">
<span class="input-group-text" id="search_symbol"><svg width="1.2em" height="1.2em" viewBox="0 0 16 16" class="bi bi-search" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M10.442 10.442a1 1 0 0 1 1.415 0l3.85 3.85a1 1 0 0 1-1.414 1.415l-3.85-3.85a1 1 0 0 1 0-1.415z"/>
<path fill-rule="evenodd" d="M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11zM13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0z"/>
</svg></span>
</div>
<input id="search" type="text" class="form-control" placeholder="search snapshots (local browser storage)" aria-label="search">
</div>
</div>
<div id="div_like" class="mt-2 mr-1"></div>
<button type="button" class="close px-1 py-0" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div id="container_snapshots" class="container scrollx-group">
</div><!-- container end-->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- end of Modal snapshot-->
<!-- modal roms-->
<div class="modal fade" id="modal_roms" tabindex="-1" role="dialog" aria-labelledby="snapshotModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="snapshotModalLabel"><img src="img/vc64web.png" style="height: 50px;" /> SYSTEM ROMS</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
The emulator needs system ROM files. Please drag the missing files into the empty chip sockets. Or just touch or click the sockets.<br>
<br>
<div class="container mt-4">
<div class="row my-2">
<div class="col mx-2">
<div class="container card mb-3" style="max-width: 540px;">
<div class="row no-gutters">
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">basic rom</h5>
<p class="card-text">(required)</p>
<button type="button" id="button_delete_basic" class="btn btn-sm icon">
<svg width="1.6em" height="auto" viewBox="0 0 16 16" class="bi bi-trash-fill" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M2.5 1a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1H3v9a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V4h.5a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1H2.5zm3 4a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-1 0v-7a.5.5 0 0 1 .5-.5zM8 5a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-1 0v-7A.5.5 0 0 1 8 5zm3 .5a.5.5 0 0 0-1 0v7a.5.5 0 0 0 1 0v-7z"/>
</svg>
</button>
</div>
</div>
<div class="col-md-4">
<img id="rom_basic" src="img/rom_empty.png" class="card-img" alt="...">
</div>
</div>
</div>
</div>
<div id="kernal_basic" class="col mx-2">
<div class="container card mb-3" style="max-width: 540px;">
<div class="row no-gutters">
<div class="col-md-4">
<img id="rom_kernal" src="img/rom_empty.png" class="card-img" alt="...">
</div>
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">kernal rom</h5>
<p class="card-text">(required)</p>
<button type="button" id="button_delete_kernal" class="btn btn-sm icon">
<svg width="1.6em" height="auto" viewBox="0 0 16 16" class="bi bi-trash-fill" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M2.5 1a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1H3v9a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V4h.5a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1H2.5zm3 4a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-1 0v-7a.5.5 0 0 1 .5-.5zM8 5a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-1 0v-7A.5.5 0 0 1 8 5zm3 .5a.5.5 0 0 0-1 0v7a.5.5 0 0 0 1 0v-7z"/>
</svg>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row my-2">
<div class="col mx-2">
<div class="container card mb-3" style="max-width: 540px;">
<div class="row no-gutters">
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">charset rom</h5>
<p class="card-text">(required)</p>
<button type="button" id="button_delete_char_rom" class="btn btn-sm icon">
<svg width="1.6em" height="auto" viewBox="0 0 16 16" class="bi bi-trash-fill" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M2.5 1a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1H3v9a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V4h.5a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1H2.5zm3 4a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-1 0v-7a.5.5 0 0 1 .5-.5zM8 5a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-1 0v-7A.5.5 0 0 1 8 5zm3 .5a.5.5 0 0 0-1 0v7a.5.5 0 0 0 1 0v-7z"/>
</svg>
</button>
</div>
</div>
<div class="col-md-4">
<img id="rom_charset" src="img/rom_empty.png" class="card-img" alt="...">
</div>
</div>
</div>
</div>
<div class="col mx-2">
<div class="container card mb-3" style="max-width: 540px;">
<div class="row no-gutters">
<div class="col-md-4">
<img id="rom_disk_drive" src="img/rom_empty.png" class="card-img" alt="...">
</div>
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">disk drive rom</h5>
<p class="card-text">(optional)<br/><small class="text-muted">only .t64 .prg .crt .tap files will work without</small></p>
<button type="button" id="button_delete_disk_drive_rom" class="btn btn-sm icon">
<svg width="1.6em" height="auto" viewBox="0 0 16 16" class="bi bi-trash-fill" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M2.5 1a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1H3v9a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V4h.5a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1H2.5zm3 4a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-1 0v-7a.5.5 0 0 1 .5-.5zM8 5a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-1 0v-7A.5.5 0 0 1 8 5zm3 .5a.5.5 0 0 0-1 0v7a.5.5 0 0 0 1 0v-7z"/>
</svg>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
Once loaded VirtualC64web will try to store these files to your browsers local storage. Then on subsequent starts it will take the rom files from your browsers local storage instead of asking you again for them.
</div>
</div>
<div class="modal-footer">
<div class="justify-start"><button id="button_fetch_open_roms" type="button" class="btn btn-primary"><img src="img/mega.png"/> install open roms</button><a href="https://github.com/MEGA65/open-roms/tree/master/bin" target="_blank"> learn more...</a></div>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- end of modal roms-->
<!-- modal settings-->
<div class="modal fade" id="modal_settings" tabindex="-1" role="dialog" aria-labelledby="settingsModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="settingsModalLabel"><img src="img/vc64web.png" style="height: 50px;" />Settings</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>most settings are permanent and will be saved to your local browser storage</p>
<button id="button_rom_dialog" type="button" class="btn btn-primary mt-2 mb-3">C64 system roms ...</button>
<div class="custom-control custom-switch mt-1">
<input type="checkbox" class="custom-control-input" id="dark_switch" />
<label class="custom-control-label" for="dark_switch">dark mode</label>
</div>
<div class="custom-control custom-switch mt-1" >
<input type="checkbox" class="custom-control-input" id="pixel_art_switch"/>
<label class="custom-control-label" for="pixel_art_switch" data-toggle="tooltip" data-placement="right" title="on safari webgl must be deactivated for pixel art">pixel art</label>
</div>
<div class="custom-control custom-switch mt-1">
<input type="checkbox" class="custom-control-input" id="webgl_switch" />
<label class="custom-control-label" for="webgl_switch">on next start use accelerated WebGL</label>
</div>
<div class="custom-control custom-switch mt-1">
<input type="checkbox" class="custom-control-input" id="warp_switch" />
<label class="custom-control-label" for="warp_switch">warp during disk load</label>
</div>
<div class="custom-control custom-switch mt-1">
<input type="checkbox" class="custom-control-input" id="borderless_switch" />
<label class="custom-control-label" for="borderless_switch">borderless</label>
</div>
<div class="custom-control custom-switch mt-1">
<input type="checkbox" class="custom-control-input" id="wide_screen_switch" />
<label class="custom-control-label" for="wide_screen_switch">cinematic wide screen</label>
</div>
<div class="custom-control custom-switch mt-2">
<input type="checkbox" class="custom-control-input" id="wake_lock_switch" />
<label class="custom-control-label" for="wake_lock_switch">wake lock</label>
<span id="wake_lock_status" class="ml-1" style="font-size: smaller">(request to stay awake while running, prevent thereby system auto off or screen dimming)</span>
</div>
<div class="custom-control custom-switch mt-1">
<input type="checkbox" class="custom-control-input" id="auto_snapshot_switch" />
<label class="custom-control-label" for="auto_snapshot_switch" data-toggle="tooltip" data-placement="top" title="you find auto snapshots in the first row of the snapshot browser">save auto snapshots</label>
</div>
<div class="custom-control custom-switch mt-1">
<input type="checkbox" class="custom-control-input" id="symbolic_mapping_switch" />
<label class="custom-control-label" for="symbolic_mapping_switch">use symbolic keyboard mapping (instead of positional)</label>
</div>
<div class="custom-control custom-switch mt-1">
<input type="checkbox" class="custom-control-input" id="movable_action_buttons_in_settings_switch" />
<label class="custom-control-label" for="movable_action_buttons_in_settings_switch" data-toggle="tooltip" data-placement="top">movable action buttons</label>
</div>
<div id="move_action_buttons_label_settings" class="help_text" style="font-size: small"></div>
<div class="custom-control custom-switch mt-2">
<input type="checkbox" class="custom-control-input" id="auto_selecting_app_title_switch" />
<label class="custom-control-label" for="auto_selecting_app_title_switch" data-toggle="tooltip" data-placement="top">'auto selecting' action button groups on media insert</label>
</div>
<div id="auto_select_on_help" class="help_text" style="font-size: small">currently <span>auto selecting</span> snapshot names and action button groups based on the filename of the mounted media. (recommended for single disk based games or multi disk based games in a zip archive)</div>
<div id="auto_select_off_help" class="help_text" style="font-size: small">currently <span>auto selecting=off</span> manual selection of action button group (recommended when operating on multiple disks which are not bundled in a zip archive.)</div>
<div class="container row justify-content-start mt-4">
<div class="dropdown mr-1 mt-1">
<button id="button_speed" class="btn btn-primary dropdown-toggle text-right" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
speed = 100%
</button>
<div id="choose_speed" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">every 2nd vsync</a>
<a class="dropdown-item" href="#">vsync</a>
<a class="dropdown-item" href="#">2 frames on vsync</a>
<a class="dropdown-item" href="#">50%</a>
<a class="dropdown-item" href="#">75%</a>
<a class="dropdown-item" href="#">100%</a>
<a class="dropdown-item" href="#">120%</a>
<a class="dropdown-item" href="#">160%</a>
<a class="dropdown-item" href="#">200%</a>
</div>
</div>
<div id="speed_text" class="ml-3 mt-1 setting_text"></div>
</div>
<div class="container row justify-content-start mt-4">
<div class="dropdown mr-1 mt-4">
<button id="button_run_ahead" class="btn btn-primary dropdown-toggle text-right" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
run ahead frames = 0
</button>
<div id="choose_run_ahead" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">0 frame</a>
<a class="dropdown-item" href="#">1 frame</a>
<a class="dropdown-item" href="#">2 frames</a>
<a class="dropdown-item" href="#">3 frames</a>
<a class="dropdown-item" href="#">4 frames</a>
<a class="dropdown-item" href="#">5 frames</a>
<a class="dropdown-item" href="#">6 frames</a>
</div>
</div>
<div id="run_ahead_text" class="ml-3 mt-1 setting_text">
<span>run ahead</span> reduces input lag by pre computing frames. The lag improvement is 20ms per number of frames ahead. Basically emulation itself introduces a slight lag of less than 20ms. Therefore, setting <span style="text-wrap: nowrap;">run ahead = 1 frame</span> already ensures the original responsive feeling. <span style="text-wrap: nowrap;">run ahead = 0 frame</span> saves battery life at the cost of a slight lag.
</div>
<br>
<div class="dropdown mr-1 mt-3">
<button id="button_expansion_ram" class="btn btn-primary dropdown-toggle text-right" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
RAM Expansion = 0
</button>
<div id="choose_expansion_ram" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">none</a>
<a class="dropdown-item" href="#">REU 128 KB</a>
<a class="dropdown-item" href="#">REU 256 KB</a>
<a class="dropdown-item" href="#">REU 512 KB</a>
<a class="dropdown-item" href="#">REU 2 MB</a>
<a class="dropdown-item" href="#">REU 4 MB</a>
<a class="dropdown-item" href="#">REU 8 MB</a>
<a class="dropdown-item" href="#">REU 16 MB</a>
<a class="dropdown-item" href="#">GeoRAM 512 KB</a>
<a class="dropdown-item" href="#">GeoRAM 1 MB</a>
<a class="dropdown-item" href="#">GeoRAM 2 MB</a>
<a class="dropdown-item" href="#">GeoRAM 4 MB</a>
</div>
</div>
</div>
<div class="container row justify-content-start mt-3">
<div class="dropdown mr-1 mb-1">
<button id="button_vic_rev" class="btn btn-primary dropdown-toggle text-right" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
vic-II model
</button>
<div id="choose_vic_rev" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">PAL 50Hz 6569</a>
<a class="dropdown-item" href="#">PAL 50Hz 6569 R3</a>
<a class="dropdown-item" href="#">PAL 50Hz 8565</a>
<a class="dropdown-item" href="#">NTSC 60Hz 6567 R56A</a>
<a class="dropdown-item" href="#">NTSC 60Hz 6567</a>
<a class="dropdown-item" href="#">NTSC 60Hz 8562</a>
</div>
</div>
</div>
<div class="container row justify-content-start mt-2">
<div class="dropdown mr-1 mt-1">
<button id="button_sid_model" class="btn btn-primary dropdown-toggle text-right" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
sid model 6581
</button>
<div id="choose_sid_model" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">6581</a>
<a class="dropdown-item" href="#">8580</a>
</div>
</div>
<div class="dropdown mr-1 mt-1">
<button id="button_2nd_sid" class="btn btn-primary dropdown-toggle text-right" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
2nd sid disabled
</button>
<div id="choose_2nd_sid_addr" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">disabled</a>
<a class="dropdown-item" href="#">enabled at $d420</a>
<a class="dropdown-item" href="#">enabled at $d440</a>
<a class="dropdown-item" href="#">enabled at $d460</a>
<a class="dropdown-item" href="#">enabled at $d500</a>
</div>
</div>
<div class="dropdown mr-1 mt-1">
<button id="button_sid_engine" class="btn btn-primary dropdown-toggle text-right" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
ReSID fast
</button>
<div id="choose_sid_engine" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<!--a class="dropdown-item" href="#">FastSID</a-->
<a class="dropdown-item" href="#">ReSID fast</a>
<a class="dropdown-item" href="#">ReSID interpolate</a>
<a class="dropdown-item" href="#">ReSID resample</a>
</div>
</div>
<div class="dropdown mr-1 mt-1">
<button id="button_audio_device" class="btn btn-primary dropdown-toggle text-right" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
mono or stereo audio
</button>
<div id="choose_audio_device" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" style="display:none" href="#">main thread (mono)</a>
<a class="dropdown-item" href="#">mono audio</a>
<a class="dropdown-item" href="#">stereo audio</a>
</div>
</div>
</div>
<div id="mastervolume">
<label for="volume-slider" id="volumetext">Volume</label>
<input id="volume-slider" type="range" min="0" max="1" step="0.01" value="0.5">
</div>
<label class="mt-4">cut out sprite layers (stencil)</label>
<div class="container row">
<div class="col custom-control-lg custom-control custom-checkbox">
<input id="sprite0" class="custom-control-input layer" type="checkbox" value="">
<label for="sprite0" class="custom-control-label text-muted">0</label>
</div>
<div class="col custom-control-lg custom-control custom-checkbox">
<input id="sprite1" class="custom-control-input layer" type="checkbox" value="">
<label for="sprite1" class="custom-control-label text-muted">1</label>
</div>
<div class="col custom-control-lg custom-control custom-checkbox">
<input id="sprite2" class="custom-control-input layer" type="checkbox" value="">
<label for="sprite2" class="custom-control-label text-muted">2</label>
</div>
<div class="col custom-control-lg custom-control custom-checkbox">
<input id="sprite3" class="custom-control-input layer" type="checkbox" value="">
<label for="sprite3" class="custom-control-label text-muted">3</label>
</div>
<div class="col custom-control-lg custom-control custom-checkbox">
<input id="sprite4" class="custom-control-input layer" type="checkbox" value="">
<label for="sprite4" class="custom-control-label text-muted">4</label>
</div>
<div class="col custom-control-lg custom-control custom-checkbox">
<input id="sprite5" class="custom-control-input layer" type="checkbox" value="">
<label for="sprite5" class="custom-control-label text-muted">5</label>
</div>
<div class="col custom-control-lg custom-control custom-checkbox">
<input id="sprite6" class="custom-control-input layer" type="checkbox" value="">
<label for="sprite6" class="custom-control-label text-muted">6</label>
</div>
<div class="col custom-control-lg custom-control custom-checkbox">
<input id="sprite7" class="custom-control-input layer" type="checkbox" value="">
<label for="sprite7" class="custom-control-label text-muted">7</label>
</div>
</div>
<div class="dropdown mr-1 mt-4">
<button id="button_color_palette" class="btn btn-primary dropdown-toggle text-right" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
color
</button>
<div id="choose_color_palette" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">color</a>
<a class="dropdown-item" href="#">black white</a>
<a class="dropdown-item" href="#">paper white</a>
<a class="dropdown-item" href="#">green</a>
<a class="dropdown-item" href="#">amber</a>
<a class="dropdown-item" href="#">sepia</a>
</div>
</div>
<div class="mt-4">
power saving and warp speed (may affect compatibility)
</div>
<div class="mt-2">
<div class="custom-control custom-switch mt-1">
<input type="checkbox" class="custom-control-input" id="OPT_DRV_POWER_SAVE" />
<label class="custom-control-label" for="OPT_DRV_POWER_SAVE" data-toggle="tooltip" data-placement="top" title="disable this option in combination with Fast Loaders or programs that run directly in the memory of the floppy drive">put drives to sleep when not in use</label>
</div>
<div class="custom-control custom-switch mt-1">
<input type="checkbox" class="custom-control-input" id="OPT_VIC_POWER_SAVE" />
<label class="custom-control-label" for="OPT_VIC_POWER_SAVE" data-toggle="tooltip" data-placement="top" title="disable this option in combination with programs that rely on exact collison register values while warp mode is active">run with reduced frame rate in warp mode</label>
</div>
<div class="custom-control custom-switch mt-1">
<input type="checkbox" class="custom-control-input" id="OPT_SID_POWER_SAVE" />
<label class="custom-control-label" for="OPT_SID_POWER_SAVE" data-toggle="tooltip" data-placement="top" title="disable this option to avoid the unlikely, but possible case of corrupted sound being played after leaving warp mode">do not synthesize sound samples in warp mode</label>
</div>
</div>
<br><br>
touch screen settings for virtual keyboard
<div class="mt-2" style="font-size: smaller">
<button id="button_vbk_touch" class="btn btn-primary dropdown-toggle text-right mb-1" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
keycap touch behaviour=exact timing
</button>
<div id="choose_vbk_touch" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">exact timing</a>
<a class="dropdown-item" href="#">smartphone like</a>
<a class="dropdown-item" href="#">mix of both</a>
</div>
<br>
<div id="exact_timing_text" class="ml-3 vbk_choice_text">
<span>exact timing</span> autorepeat and simultaneous keycap presses (disables default scroll gestures on keycaps, scroll gesture possible only on gaps around the keys)
</div>
<div id="smartphone_like_text" class="ml-3 vbk_choice_text" >
<span>smartphone like</span> native scroll gestures on keycaps (press starts after finger is lifted from keycap for a duration of 100ms)
</div>
<div id="mix_of_both_text" class="ml-3 vbk_choice_text">
<span>mix of both</span> tries to mix both worlds... i.e. exact timing and simultaneous presses but also scrolls keyboard when swiping the finger on keycaps. disadvantage: also does a keypress when only scrolling was intended
</div>
</div>
<div class="dropdown mr-1 mt-4">
<button id="button_keycap_size" class="btn btn-primary dropdown-toggle text-right" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
keycap size=1.0
</button>
<div id="choose_keycap_size" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">0.40</a>
<a class="dropdown-item" href="#">0.45</a>
<a class="dropdown-item" href="#">0.50</a>
<a class="dropdown-item" href="#">0.55</a>
<a class="dropdown-item" href="#">0.60</a>
<a class="dropdown-item" href="#">0.65</a>
<a class="dropdown-item" href="#">0.70</a>
<a class="dropdown-item" href="#">0.75</a>
<a class="dropdown-item" href="#">0.80</a>
<a class="dropdown-item" href="#">0.85</a>
<a class="dropdown-item" href="#">0.90</a>
<a class="dropdown-item" href="#">0.95</a>
<a class="dropdown-item" href="#">1.00</a>
<a class="dropdown-item" href="#">1.10</a>
<a class="dropdown-item" href="#">1.20</a>
<a class="dropdown-item" href="#">1.30</a>
</div>
</div>
<div class="dropdown mr-1 mt-4">
<button id="button_keyboard_bottom_margin" class="btn btn-primary dropdown-toggle text-right" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
keyboard bottom margin=0px
</button>
<div id="choose_keyboard_bottom_margin" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">auto</a>
<a class="dropdown-item" href="#">0px</a>
<a class="dropdown-item" href="#">5px</a>
<a class="dropdown-item" href="#">10px</a>
<a class="dropdown-item" href="#">15px</a>
<a class="dropdown-item" href="#">20px</a>
<a class="dropdown-item" href="#">25px</a>
</div>
</div>
<div class="dropdown mr-1 mt-4">
<button id="button_keyboard_transparency" class="btn btn-primary dropdown-toggle text-right" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
keyboard transparency=0%
</button>
<div id="choose_keyboard_transparency" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">0</a>
<a class="dropdown-item" href="#">15</a>
<a class="dropdown-item" href="#">25</a>
<a class="dropdown-item" href="#">50</a>
<a class="dropdown-item" href="#">60</a>
<a class="dropdown-item" href="#">75</a>
<a class="dropdown-item" href="#">80</a>
<a class="dropdown-item" href="#">85</a>
</div>
</div>
<div class="dropdown mr-1 mt-4">
<button id="button_keyboard_sound_volume" class="btn btn-primary dropdown-toggle text-right" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
key press sound feedback=50%
</button>
<div id="choose_keyboard_sound_volume" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">0</a>
<a class="dropdown-item" href="#">5</a>
<a class="dropdown-item" href="#">25</a>
<a class="dropdown-item" href="#">50</a>
<a class="dropdown-item" href="#">75</a>
<a class="dropdown-item" href="#">100</a>
</div>
</div>
<div class="custom-control custom-switch mt-2" >
<input type="checkbox" class="custom-control-input" id="key_haptic_feedback"/>
<label class="custom-control-label" for="key_haptic_feedback" data-toggle="tooltip" data-placement="right" title="">haptic key press feedback</label>
</div>
<br><br>
virtual touch joystick settings
<div class="mt-2" style="font-size: smaller">
<button id="button_vjoy_touch" class="btn btn-primary dropdown-toggle text-right mb-1" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
positioning=base moves
</button>
<div id="choose_vjoy_touch" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">base moves</a>
<a class="dropdown-item" href="#">base fixed on first touch</a>
<a class="dropdown-item" href="#">stationary middle</a>
<a class="dropdown-item" href="#">stationary bottom</a>
</div>
<br>
<div id="base_moves_text" class="ml-3 vjoy_choice_text">
<span>base moves</span> the base follows your finger when the stick circle passes the boundary of the base circle.
</div>
<div id="base_fixed_on_first_touch_text" class="ml-3 vjoy_choice_text" >
<span>base fixed on first touch</span> joystick base is fixed
</div>
<div id="stationary_middle_text" class="ml-3 vjoy_choice_text">
<span>stationary middle</span> the base at a fixed middle y position and always visible
</div>
<div id="stationary_bottom_text" class="ml-3 vjoy_choice_text">
<span>stationary bottom</span> the base at a fixed bottom y position and always visible
</div>
</div>
<div class="dropdown mr-1 mt-4">
<button id="button_vjoy_dead_zone" class="btn btn-primary dropdown-toggle text-right" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
virtual joysticks dead zone=12
</button>
<div id="choose_vjoy_dead_zone" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">0</a>
<a class="dropdown-item" href="#">4</a>
<a class="dropdown-item" href="#">8</a>
<a class="dropdown-item" href="#">12</a>
<a class="dropdown-item" href="#">14</a>
<a class="dropdown-item" href="#">16</a>
<a class="dropdown-item" href="#">20</a>
<a class="dropdown-item" href="#">24</a>
</div>
</div>
<br><br>
number of entries in each chart category row of the built in <span class="mx-1" style="border-bottom: 1px;border-bottom-style: outset;">csdb scene browser</span> (<svg class="mx-1 bi bi-collection-fill" width="1em" height="auto" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<rect width="16" height="10" rx="1.5" transform="matrix(1 0 0 -1 0 14.5)"/>
<path fill-rule="evenodd" d="M2 3a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 0-1h-11A.5.5 0 0 0 2 3zm2-2a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 0-1h-7A.5.5 0 0 0 4 1z"/>
</svg>)
<div class="mt-2" style="font-size: smaller">
<button id="button_csdb_count" class="btn btn-primary dropdown-toggle text-right mb-1" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
each chart category shows = 25 entries
</button>
<div id="choose_csdb_count" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">25 entries</a>
<a class="dropdown-item" href="#">50 entries</a>
<a class="dropdown-item" href="#">75 entries</a>
<a class="dropdown-item" href="#">100 entries</a>
</div>
<br>
</div>
<div class="custom-control custom-switch mt-5">
<input type="checkbox" class="custom-control-input" id="cb_debug_output" />
<label class="custom-control-label" for="cb_debug_output">load logging console <span style="font-size:smaller">(after loaded click bottom right button)</span></label>
</div>
<hr>
<div class="mt-3" style="font-size: small;">
<p>
<a href="https://vc64web.github.io/doc/index.html" style="font-size:x-large">
learn more about vc64web<svg class="ml-1" style="width:1em;height:1em"><use xlink:href="img/sprites.svg#link"/></svg></a>
<br><br>
looking for my 16/32-Bit brother?
<br><a href="https://vamigaweb.github.io/doc/about.html" style="font-size:medium">take me to vAmigaWeb<svg class="ml-1" style="width:1em;height:1em"><use xlink:href="img/sprites.svg#link"/></svg></a>
</p>
<br>
<div class="mt-3" id="version_display">v?</div>
<br><br><br>
<small>
DISCLAIMER:
In 2021 the Demoscene was <a style="font-size:larger" class="mx-2" href="https://www.unesco.de/en/culture-and-nature/intangible-cultural-heritage/demoscene-culture-digital-real-time-animations">accepted as UNESCO cultural heritage</a>. Following this spirit, vc64web wants to connect people to those amazing artwork and culture. It therefore links to demo content of the biggest external Demoscene website for the c64.
<a class="mx-2" style="font-size:larger" href="http://csdb.dk">Csdb.dk</a> is the biggest Demoscene site for the C64. The amount of demos is countless and every day new demos are added. Due to this nature we can not check the legal condition of every single demo from their site.
The operators or creators of external web resources are soley responsible for their content. If you see an issue please contact us at <a style="font-size:larger" class="mx-2" href="https://github.com/vc64web/virtualc64web/issues">github issues</a>.
</small>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- end of modal settings-->
<!-- modal reset--->
<div class="modal fade" id="modal_reset" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">resetting the C64</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
By resetting the CPU and the chip set, the C64 will be forced to reboot. Current program state will be lost.<br><br>
Disk drives and expansion port cartrigdes will stay connected.<br><br>
<span style="font-size: smaller">
A soft reset emulates a real reset of the C64 which can be initiated via the reset line on the expansion port.
A hard reset affects all components. The effect is similar to switching power off and on.<br><br>
</span>
<div style="display: grid;grid-template-columns: auto 1fr auto auto auto;align-items: center;">
<div><button type="button" id="button_detach_cartridge" class="btn btn-success mr-2">detach cartridge</button></div>
<div></div>
<button type="button" id="button_soft_reset_confirmed" class="btn btn-primary mr-2">soft reset</button>
<button type="button" id="button_reset_confirmed" class="btn btn-primary mr-2">hard reset <svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-return-left" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M14.5 1.5a.5.5 0 0 1 .5.5v4.8a2.5 2.5 0 0 1-2.5 2.5H2.707l3.347 3.346a.5.5 0 0 1-.708.708l-4.2-4.2a.5.5 0 0 1 0-.708l4-4a.5.5 0 1 1 .708.708L2.707 8.3H12.5A1.5 1.5 0 0 0 14 6.8V2a.5.5 0 0 1 .5-.5z"/></svg></button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">cancel</button>
</div>
</div>
</div>
</div>
</div>
<!-- modal take snapshot--->
<div class="modal fade" id="modal_take_snapshot" tabindex="-1" role="dialog" aria-labelledby="take_snapshot_ModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="take_snapshot_ModalLabel">save a snapshot to local browser space</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroup-sizing-default">app title</span>
</div>
<input id="input_app_title" type="text" spellcheck="false" class="form-control" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default"
data-toggle="tooltip" data-placement="right" title="store in a snapshot browser row dedicated for this app title"
>
</div>
</div>
<div class="modal-footer">
<div class="justify-start">
<button id="button_export_disk" type="button" class="btn btn-success ml-2" data-toggle="tooltip" data-placement="top" title="export the current state of disk in drive8">
<svg class="mr-2" style="margin-top:-7px" width="1.2em" height="1.2em" viewBox="0 0 16 16" class="bi bi-box-arrow-up" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M3.5 6a.5.5 0 0 0-.5.5v8a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5v-8a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 1 0-1h2A1.5 1.5 0 0 1 14 6.5v8a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 14.5v-8A1.5 1.5 0 0 1 3.5 5h2a.5.5 0 0 1 0 1h-2z"/>
<path fill-rule="evenodd" d="M7.646.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 1.707V10.5a.5.5 0 0 1-1 0V1.707L5.354 3.854a.5.5 0 1 1-.708-.708l3-3z"/>
</svg>disk in drive 8</button>
</div>
<button type="button" id="button_save_snapshot" class="btn btn-primary">save <svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-return-left" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M14.5 1.5a.5.5 0 0 1 .5.5v4.8a2.5 2.5 0 0 1-2.5 2.5H2.707l3.347 3.346a.5.5 0 0 1-.708.708l-4.2-4.2a.5.5 0 0 1 0-.708l4-4a.5.5 0 1 1 .708.708L2.707 8.3H12.5A1.5 1.5 0 0 0 14 6.8V2a.5.5 0 0 1 .5-.5z"/></svg></button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">cancel</button>
</div>
</div>
</div>
</div>
<!--take snapshot modal-->
<!-- custom key modal--->
<div class="modal fade" id="modal_custom_key" tabindex="-1" role="dialog" aria-labelledby="custom_key_ModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header pb-0">
<h5 class="modal-title" id="custom_key_ModalLabel">define the action</h5>
<div style="display:flex">
<div id="other_buttons"></div>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
</div>
<div class="modal-body pt-0">
<i>create app or game specific keyboard mappings or customized overlay buttons with free positioning that trigger your defined action.</i>
<div class="mt-4 w-100">
action button (optional)<br>
<div class="input-group mb-3">
<input id="input_button_text" spellcheck="false" autocomplete="off" placeholder="Enter button text or use emojis 😊 as icon. Empty for no button." type="text" class="form-control" aria-label="action script" aria-describedby="inputGroup-sizing-default">
<div class="input-group-append">
<button id="button_reset_position" class="btn btn-primary" style="border-top-right-radius: 0.25rem;border-bottom-right-radius: 0.25rem;">reset position</button>
</div>
<div id="input_button_text_error" class="invalid-feedback">specify either a button text or a keyboard shortcut or both</div>
</div>
</div>
<div class="mt-3" style="display:flex;justify-content:flex-start;width:100%">
<div class="dropdown">
<button id="button_padding" class="btn btn-primary dropdown-toggle text-right" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
btn size = default
</button>
<div id="choose_padding" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">default</a>
<a class="dropdown-item" href="#">0.4</a>
<a class="dropdown-item" href="#">0.6</a>
<a class="dropdown-item" href="#">0.9</a>
<a class="dropdown-item" href="#">1.1</a>
<a class="dropdown-item" href="#">1.3</a>
<a class="dropdown-item" href="#">1.8</a>
<a class="dropdown-item" href="#">2.5</a>
<a class="dropdown-item" href="#">3</a>
<a class="dropdown-item" href="#">4</a>
<a class="dropdown-item" href="#">6</a>
</div>
</div>
<div class="dropdown">
<button id="button_opacity" class="ml-4 btn btn-primary dropdown-toggle text-right" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
btn opacity = default