-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
1089 lines (1084 loc) · 77.7 KB
/
index.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>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>eceFPGA Simulator</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/fonts/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/Features-Clean.css">
<link rel="stylesheet" href="assets/css/Header-Dark.css">
<link rel="stylesheet" href="assets/css/index.css">
<link rel="stylesheet" href="assets/css/theme.css">
<link rel="stylesheet" href="assets/css/xterm.css">
<link rel="stylesheet" href="assets/fontawesome/css/all.css">
<link rel="stylesheet" href="assets/fonts/font-awesome.min.css">
<style>
/* latin */
@font-face {
font-family: 'Courier';
font-style: normal;
font-weight: 400;
src: local('Courier Std Medium'), local('CourierStd'), url("assets/fonts/Courier.woff2") format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}
html {
background-color: var(--navbar-upper-bg);
}
</style>
<script src="assets/js/ace-builds/src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/jszip.min.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/jquery-3.5.1.min.js"></script>
<!-- <script src="assets/js/jquery-ui.min.js"></script> -->
<!-- <script src="assets/fontawesome/js/all.js"></script> -->
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<body onresize="resizeHandler()">
<div class="overlay" id="tutorial">
<p>Welcome to the ECE 270 simulator! This simulator was initially created as a personal project but has since
turned into an extremely useful tool for ECE 270 students wishing to avoid late nights in lab working on the
physical board. We have since put those dark days behind us.
<br> <br> It came in extremely handy for when the course was forced online during the pandemic, ensuring
that students continued to be able to gain experience with Verilog/SystemVerilog in an online environment.
We've since returned to in-person
classes, but we will continue to use it for the class to help reduce the overall demand for limited physical
lab resources.
<br> <br> Starting this semester, we'd like for you to be able to gain a better understanding of how to use
this tool, to navigate and utilize it to its full extent, and most importantly, to avoid fatal mistakes.
We have therefore designed a tutorial system to teach you how to use the website.
<br> <br> <b>If you are taking this class for the first time, it is essential that you take this tutorial
now.</b>
<br> <br> (BTW we're all about shortcuts here! You can use the Left/Right arrow keys to navigate through the
tutorial.)
</p>
<div class="tutorial_actions">
<button class="btn btn-tutorial" onclick='tutorialButtonAction(0)'>Start the tutorial. (Highly recommended
even if you've used the simulator before - a lot has changed!)</button>
<button class="btn btn-tutorial" onclick='tutorialButtonAction(1)'>Skip the tutorial. (You can always take
it again from Settings, but we still recommend you take it now).</button>
<button class="btn btn-tutorial" onclick='tutorialButtonAction(2)'>Ask me again next time. (Jump right in
for now, and we'll ask you again when you refresh the page.)</button>
</div>
<div id="ipoac"></div>
</div>
<div class="overlay" id="overlay_top"></div>
<div id="mainview">
<nav class="navbar navbar-light navbar-special navbar-expand-md navigation-clean-button theme-select"
id="header-title">
<div class="d-flex align-items-center" id="header-flex">
<div id="header-row">
<!-- <input id="save_as_elm" type="file" name="name" style="display: none"/> -->
<!-- <button class="btn btn-light btn-bevel" type="button" style="float: right; width: 100px; font-size: 16px; margin-right: 15px" onclick="javascript:document.getElementById('open_elm').click()">Open</button> -->
<i class="fal fa-file top-icon" title="Create new workspace/file"
onclick="javascript:openWorkspaceManager('create')"></i>
<i class="fal fa-folder-open top-icon" title="Opens the simulator file manager"
onclick="javascript:openWorkspaceManager('open')"></i>
<i class="fal fa-save top-icon" title="Saves all code immediately to browser storage (not really)"
onclick="javascript:alert('No need. Typing code and creating/moving/deleting files or workspaces will be immediately saved to the browser. Before wiping your computer or clearing your browser - your code is only saved on this machine, so remember to save your code to an external location first.')"></i>
<i class="fal fa-arrow-circle-down top-icon" title="Download a copy of the code in the active tab"
onclick="javascript:saveVerilog()"></i>
<i class="fal fa-cogs top-icon" title="Manage main simulator settings"
onclick="javascript:openSettings()"></i>
<i class="fal fa-terminal top-icon" title="Manage virtual FPGA terminal settings"
onclick="javascript:openUART()"></i>
<i class="fal fa-laptop-code top-icon" title="Learn how to use the simulator"
onclick="javascript:toggleTutorial(0)"></i>
<i class="fal fa-question-circle top-icon" title="Opens simulator handbook in new tab"
onclick="window.open ('/help', '_blank')"></i>
<input id="open_elm" type="file" name="name" style="display: none" />
<a id="downlink" href="none" download="verilog.sv" style="display: none"></a>
</div>
<h1 title="There's Easter eggs all over the site! Seek and ye shall find, and ye shall tell us on Piazza!"
class="display-4 text-center text-muted title">eceFPGA Simulator</h1>
<div class="download-div">
<p class="display-4 text-muted download-button" onclick="zipStorage()">Download as zip</p>
</div>
</div>
</nav>
<nav class="navbar navbar-page-info navbar-special" id="status-navbar">
<div class="d-flex justify-content-center">
<div class="col">
<div class="row justify-content-center">
<div class="col">
<h1 class="display-4 text-center text-muted" id="status-text">Status: Ready</h1>
</div>
<a onclick="javascript:display_info(0); return false;">
<h1 class="desc display-4 text-center text-muted">About</h1>
</a>
<a onclick="javascript:display_info(1); return false;">
<h1 class="desc display-4 text-center text-muted">Functionality</h1>
</a>
<a onclick="javascript:display_info(2); return false;">
<h1 class="desc display-4 text-center text-muted">Usage</h1>
</a>
<a onclick="javascript:display_info(3); return false;">
<h1 class="desc display-4 text-center text-muted">Credits</h1>
</a>
<a onclick="javascript:display_info(4); return false;">
<h1 class="desc display-4 text-center text-muted">Privacy</h1>
</a>
<a onclick="javascript:display_info(5); return false;">
<h1 class="desc display-4 text-center text-muted" style="border-right: 0;">Source</h1>
</a>
<div style="margin-left: 10vw"></div>
</div>
</div>
</div>
</nav>
<nav class="description-navbar" id="description-navbar"
style="height: 0vh; overflow: hidden; position: fixed; z-index: 2; background-color: #dfdfdf; transition: height 0.3s">
<p class="display-4 text-center text-muted" id="desctext"
style="padding-top: 2vh; padding-left: 20vw; padding-right: 20vw; font-size: calc(0.3vh + 0.78vw)"></p>
</nav>
<div style="padding-bottom: 1.5vh"> </div>
<div class="row text-center d-sm-flex d-xl-flex justify-content-center" id="simview">
<div id="ice40-div">
<svg id="ice40HX8K" preserveAspectRatio="xMidYMid meet" viewBox="0 0 610 690"
xmlns="http://www.w3.org/2000/svg">
<defs>
<filter id="svg_127_blur" x="-50%" y="-50%" width="200%" height="200%">
<feGaussianBlur stdDeviation="0"/>
</filter>
</defs>
<g>
<rect x="-1" y="-1" width="610" height="702" id="canvas_background" fill="#17183f"/>
<g id="canvasGrid" display="none">
<rect id="svg_2" width="100%" height="100%" x="0" y="0" stroke-width="0"
fill="url(#gridpattern)"/>
</g>
</g>
<rect fill="#111" stroke-width="1.5" x="29.136" y="32.413" width="64.193" height="123.425"
id="svg_1" stroke="#000" opacity="0.5" style="" />
<ellipse class="ss7_line" fill="#222" stroke="#333" stroke-width="3" stroke-opacity="null"
fill-opacity="null" filter="url(#svg_127_blur)" ry="2.321" rx="2.425" cy="143.624" cx="84.676"
id="ss7_dp" style="" />
<line class="ss7_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="41.075" y1="95.817" x2="80.71" y2="95.817" id="ss7_g"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<line class="ss7_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="20.11" y1="72.179" x2="59.189" y2="72.179" id="ss7_f"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 111.828501, 32.529501)" />
<line class="ss7_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="20.11" y1="113.053" x2="59.189" y2="113.053" id="ss7_e"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 152.702501, 73.403502)" />
<line class="ss7_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="41.075" y1="133.21" x2="80.71" y2="133.21" id="ss7_d"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<line class="ss7_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="62.422" y1="112.707" x2="101.731" y2="112.707" id="ss7_c"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 194.783503, 30.630499)" />
<line class="ss7_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="62.422" y1="71.833" x2="101.732" y2="71.833" id="ss7_b"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 153.910002, -10.244001)" />
<line class="ss7_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="41.075" y1="51.556" x2="80.71" y2="51.556" id="ss7_a"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<rect fill="#111" stroke-width="1.5" x="97.947" y="31.717" width="64.193" height="123.425"
id="svg_23" stroke="#000" opacity="0.5" style="" />
<ellipse class="ss6_line" fill="#222" stroke="#333" stroke-width="3" stroke-opacity="null"
fill-opacity="null" filter="url(#svg_127_blur)" ry="2.321" rx="2.425" cy="143.624" cx="153.423"
id="ss7_dp" style="" />
<line class="ss6_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="110.251" y1="92.42" x2="149.884" y2="92.42" id="ss6_g"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<line class="ss6_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="89.286" y1="72.262" x2="128.365" y2="72.262" id="ss6_f"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 181.087505, -36.563503)" />
<line class="ss6_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="89.285" y1="113.136" x2="128.364" y2="113.136" id="ss6_e"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 221.960503, 4.311501)" />
<line class="ss6_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="110.251" y1="133.294" x2="149.884" y2="133.294" id="ss6_d"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<line class="ss6_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="131.598" y1="112.789" x2="170.906" y2="112.789" id="ss6_c"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 264.041008, -38.463005)" />
<line class="ss6_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="131.598" y1="71.916" x2="170.908" y2="71.916" id="ss6_b"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 223.169006, -79.337006)" />
<line class="ss6_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="110.251" y1="50.959" x2="149.884" y2="50.959" id="ss6_a"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<rect fill="#111" stroke-width="1.5" x="167.34" y="32.09" width="64.193" height="123.425"
id="svg_79" stroke="#000" opacity="0.5" style="" />
<ellipse class="ss5_line" fill="#222" stroke="#333" stroke-width="3" stroke-opacity="null"
fill-opacity="null" filter="url(#svg_127_blur)" ry="2.321" rx="2.425" cy="143.624" cx="222.892"
id="ss7_dp" style="" />
<line class="ss5_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="179.645" y1="92.794" x2="219.28" y2="92.794" id="ss5_g"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<line class="ss5_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="158.68" y1="72.636" x2="197.758" y2="72.636" id="ss5_f"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 250.854996, -105.582993)" />
<line class="ss5_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="158.679" y1="113.51" x2="197.758" y2="113.51" id="ss5_e"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 291.7285, -64.708496)" />
<line class="ss5_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="179.645" y1="133.668" x2="219.28" y2="133.668" id="ss5_d"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<line class="ss5_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="200.992" y1="113.164" x2="240.3" y2="113.164" id="ss5_c"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 333.810005, -107.482002)" />
<line class="ss5_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="200.992" y1="72.29" x2="240.302" y2="72.29" id="ss5_b"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 292.937004, -148.357002)" />
<line class="ss5_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="179.645" y1="51.333" x2="219.28" y2="51.333" id="ss5_a"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<rect fill="#111" stroke-width="1.5" x="236.39" y="33.132" width="64.193" height="123.425"
id="svg_87" stroke="#000" opacity="0.5" style="" />
<ellipse class="ss4_line" fill="#222" stroke="#333" stroke-width="3" stroke-opacity="null"
fill-opacity="null" filter="url(#svg_127_blur)" ry="2.321" rx="2.425" cy="143.624" cx="292.486"
id="ss7_dp" style="" />
<line class="ss4_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="248.695" y1="93.836" x2="288.328" y2="93.836" id="ss4_g"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<line class="ss4_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="227.727" y1="73.678" x2="266.805" y2="73.678" id="ss4_f"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 320.944, -173.587997)" />
<line class="ss4_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="227.727" y1="114.552" x2="266.806" y2="114.552" id="ss4_e"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 361.818504, -132.7145)" />
<line class="ss4_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="248.695" y1="134.71" x2="288.328" y2="134.71" id="ss4_d"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<line class="ss4_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="270.04" y1="114.206" x2="309.349" y2="114.206" id="ss4_c"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 403.900505, -175.488503)" />
<line class="ss4_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="270.042" y1="73.332" x2="309.352" y2="73.332" id="ss4_b"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 363.028992, -216.36499)" />
<line class="ss4_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="248.695" y1="52.376" x2="288.328" y2="52.376" id="ss4_a"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<rect fill="#111" stroke-width="1.5" x="305.373" y="32.793" width="64.193" height="123.425"
id="svg_95" stroke="#000" opacity="0.5" style="" />
<ellipse class="ss3_line" fill="#222" stroke="#333" stroke-width="3" stroke-opacity="null"
fill-opacity="null" filter="url(#svg_127_blur)" ry="2.321" rx="2.425" cy="143.624" cx="360.951"
id="ss7_dp" style="" />
<line class="ss3_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="317.679" y1="93.496" x2="357.313" y2="93.496" id="ss3_g"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<line class="ss3_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="296.712" y1="73.339" x2="335.791" y2="73.339" id="ss3_f"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 389.590492, -242.912498)" />
<line class="ss3_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="296.711" y1="114.212" x2="335.791" y2="114.212" id="ss3_e"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 430.46299, -202.038994)" />
<line class="ss3_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="317.679" y1="134.371" x2="357.313" y2="134.371" id="ss3_d"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<line class="ss3_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="339.024" y1="113.866" x2="378.334" y2="113.866" id="ss3_c"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 472.544998, -244.813004)" />
<line class="ss3_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="339.025" y1="72.993" x2="378.335" y2="72.993" id="ss3_b"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 431.672989, -285.686996)" />
<line class="ss3_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="317.679" y1="52.036" x2="357.313" y2="52.036" id="ss3_a"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<rect fill="#111" stroke-width="1.5" x="374.526" y="33.835" width="64.193" height="123.425"
id="svg_103" stroke="#000" opacity="0.5" style="" />
<ellipse class="ss2_line" fill="#222" stroke="#333" stroke-width="3" stroke-opacity="null"
fill-opacity="null" filter="url(#svg_127_blur)" ry="2.321" rx="2.425" cy="143.624" cx="430.65"
id="ss7_dp" style="" />
<line class="ss2_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="386.832" y1="94.539" x2="426.465" y2="94.539" id="ss2_g"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<line class="ss2_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="365.865" y1="74.381" x2="404.944" y2="74.381" id="ss2_f"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 459.785492, -311.023499)" />
<line class="ss2_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="365.864" y1="115.255" x2="404.944" y2="115.255" id="ss2_e"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 500.659004, -270.14901)" />
<line class="ss2_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="386.832" y1="135.413" x2="426.465" y2="135.413" id="ss2_d"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<line class="ss2_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="408.484" y1="115.106" x2="446.783" y2="115.106" id="ss2_c"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 542.739502, -312.527496)" />
<line class="ss2_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="408.178" y1="74.035" x2="447.488" y2="74.035" id="ss2_b"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 501.868011, -353.798004)" />
<line class="ss2_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="386.832" y1="53.078" x2="426.465" y2="53.078" id="ss2_a"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<rect fill="#111" stroke-width="1.5" x="443.92" y="33.251" width="64.193" height="123.425"
id="svg_111" stroke="#000" opacity="0.5" style="" />
<ellipse class="ss1_line" fill="#222" stroke="#333" stroke-width="3" stroke-opacity="null"
fill-opacity="null" filter="url(#svg_127_blur)" ry="2.321" rx="2.425" cy="143.624" cx="500.116"
id="ss7_dp" style="" />
<line class="ss1_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="456.227" y1="93.953" x2="495.858" y2="93.953" id="ss1_g"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<line class="ss1_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="435.258" y1="73.796" x2="474.338" y2="73.796" id="ss1_f"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 528.594002, -381.002007)" />
<line class="ss1_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="435.258" y1="114.669" x2="474.336" y2="114.669" id="ss1_e"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 569.465996, -340.127998)" />
<line class="ss1_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="456.227" y1="134.827" x2="495.858" y2="134.827" id="ss1_d"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<line class="ss1_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="477.571" y1="114.324" x2="516.88" y2="114.324" id="ss1_c"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 611.549507, -382.901512)" />
<line class="ss1_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="477.571" y1="73.45" x2="516.881" y2="73.45" id="ss1_b"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 570.675995, -423.776001)" />
<line class="ss1_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="456.227" y1="52.493" x2="495.858" y2="52.493" id="ss1_a"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<rect fill="#111" stroke-width="1.5" x="514.077" y="33.333" width="64.193" height="123.425"
id="svg_119" stroke="#000" opacity="0.5" style="" />
<ellipse class="ss0_line" fill="#222" stroke="#333" stroke-width="3" stroke-opacity="null"
fill-opacity="null" filter="url(#svg_127_blur)" ry="2.321" rx="2.425" cy="143.624" cx="570.817"
id="ss7_dp" style="" />
<line class="ss0_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="526.384" y1="94.036" x2="566.017" y2="94.036" id="ss0_g"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<line class="ss0_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="505.416" y1="73.88" x2="544.495" y2="73.88" id="ss0_f"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 598.835487, -451.075493)" />
<line class="ss0_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="505.415" y1="114.754" x2="544.494" y2="114.754" id="ss0_e"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 639.708511, -410.200516)" />
<line class="ss0_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="526.384" y1="134.91" x2="566.017" y2="134.91" id="ss0_d"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<line class="ss0_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="547.728" y1="114.408" x2="587.038" y2="114.408" id="ss0_c"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 681.791023, -452.975029)" />
<line class="ss0_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="547.728" y1="73.534" x2="587.036" y2="73.534" id="ss0_b"
stroke-linejoin="bevel" stroke-linecap="round" style=""
transform="matrix(0, 1, -1, 0, 640.916016, -493.848022)" />
<line class="ss0_line" fill="#222" stroke="#333" stroke-width="4" stroke-opacity="null"
fill-opacity="null" x1="526.384" y1="52.577" x2="566.017" y2="52.577" id="ss0_a"
stroke-linejoin="bevel" stroke-linecap="round" style="" />
<ellipse class="lftred" fill="#300" stroke-width="1.25" stroke-opacity="null" cx="254.644"
cy="205.429" id="lf_0" rx="11.157" ry="11.157" filter="url(#svg_127_blur)" stroke="#000" />
<ellipse class="lftred" fill="#300" stroke-width="1.25" stroke-opacity="null" cx="224.291"
cy="205.429" id="lf_1" rx="11.157" ry="11.157" filter="url(#svg_127_blur)" stroke="#000" />
<ellipse class="lftred" fill="#300" stroke-width="1.25" stroke-opacity="null" cx="194.697"
cy="205.026" id="lf_2" rx="11.157" ry="11.157" filter="url(#svg_127_blur)" stroke="#000" />
<ellipse class="lftred" fill="#300" stroke-width="1.25" stroke-opacity="null" cx="164.778"
cy="205.026" id="lf_3" rx="11.157" ry="11.157" filter="url(#svg_127_blur)" stroke="#000" />
<ellipse class="lftred" fill="#300" stroke-width="1.25" stroke-opacity="null" cx="134.74"
cy="204.949" id="lf_4" rx="11.157" ry="11.157" filter="url(#svg_127_blur)" stroke="#000" />
<ellipse class="lftred" fill="#300" stroke-width="1.25" stroke-opacity="null" cx="104.386"
cy="204.949" id="lf_5" rx="11.157" ry="11.157" filter="url(#svg_127_blur)" stroke="#000" />
<ellipse class="lftred" fill="#300" stroke-width="1.25" stroke-opacity="null" cx="74.792"
cy="204.545" id="lf_6" rx="11.157" ry="11.157" filter="url(#svg_127_blur)" stroke="#000" />
<ellipse class="lftred" fill="#300" stroke-width="1.25" stroke-opacity="null" cx="44.873"
cy="204.545" id="lf_7" rx="11.157" ry="11.157" filter="url(#svg_127_blur)" stroke="#000" />
<ellipse id="rgbled" fill="#111" stroke-width="1.25" stroke-opacity="null" cx="303.1" cy="205.429"
rx="15" ry="15" filter="url(#svg_127_blur)" stroke="#000" />
<ellipse class="rgtred" fill="#300" stroke-width="1.25" stroke-opacity="null" cx="563.677"
cy="205.429" id="rt_0" rx="11.157" ry="11.157" filter="url(#svg_127_blur)" stroke="#000" />
<ellipse class="rgtred" fill="#300" stroke-width="1.25" stroke-opacity="null" cx="533.323"
cy="205.429" id="rt_1" rx="11.157" ry="11.157" filter="url(#svg_127_blur)" stroke="#000" />
<ellipse class="rgtred" fill="#300" stroke-width="1.25" stroke-opacity="null" cx="503.729"
cy="205.026" id="rt_2" rx="11.157" ry="11.157" filter="url(#svg_127_blur)" stroke="#000" />
<ellipse class="rgtred" fill="#300" stroke-width="1.25" stroke-opacity="null" cx="473.81"
cy="205.026" id="rt_3" rx="11.157" ry="11.157" filter="url(#svg_127_blur)" stroke="#000" />
<ellipse class="rgtred" fill="#300" stroke-width="1.25" stroke-opacity="null" cx="443.772"
cy="204.949" id="rt_4" rx="11.157" ry="11.157" filter="url(#svg_127_blur)" stroke="#000" />
<ellipse class="rgtred" fill="#300" stroke-width="1.25" stroke-opacity="null" cx="413.419"
cy="204.949" id="rt_5" rx="11.157" ry="11.157" filter="url(#svg_127_blur)" stroke="#000" />
<ellipse class="rgtred" fill="#300" stroke-width="1.25" stroke-opacity="null" cx="383.825"
cy="204.545" id="rt_6" rx="11.157" ry="11.157" filter="url(#svg_127_blur)" stroke="#000" />
<ellipse class="rgtred" fill="#300" stroke-width="1.25" stroke-opacity="null" cx="353.905"
cy="204.545" id="rt_7" rx="11.157" ry="11.157" filter="url(#svg_127_blur)" stroke="#000" />
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'keyW'); return false;"
onmouseup="javascript:toggle_button (event, 'keyW'); return false;" pressed="false"
id="keyW" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="413.129016" y="258.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'keyW'); return false;"
onmouseup="javascript:toggle_button (event, 'keyW'); return false;" id="textW"
x="438.129016" y="298.5" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">W</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'keyX'); return false;"
onmouseup="javascript:toggle_button (event, 'keyX'); return false;" pressed="false"
id="keyX" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="318.129016" y="258.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'keyX'); return false;"
onmouseup="javascript:toggle_button (event, 'keyX'); return false;" id="textX"
x="344.129016" y="298.5" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">X</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'keyY'); return false;"
onmouseup="javascript:toggle_button (event, 'keyY'); return false;" pressed="false"
id="keyY" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="224.129016" y="258.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'keyY'); return false;"
onmouseup="javascript:toggle_button (event, 'keyY'); return false;" id="textY"
x="250.129016" y="298.5" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">Y</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'keyZ'); return false;"
onmouseup="javascript:toggle_button (event, 'keyZ'); return false;" pressed="false"
id="keyZ" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="130.129016" y="258.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'keyZ'); return false;"
onmouseup="javascript:toggle_button (event, 'keyZ'); return false;" id="textZ"
x="155.129016" y="298.5" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">Z</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'keyC'); return false;"
onmouseup="javascript:toggle_button (event, 'keyC'); return false;" pressed="false"
id="keyC" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="413.129016" y="336.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'keyC'); return false;"
onmouseup="javascript:toggle_button (event, 'keyC'); return false;" id="textC"
x="438.129016" y="376.129053" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">C</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'keyD'); return false;"
onmouseup="javascript:toggle_button (event, 'keyD'); return false;" pressed="false"
id="keyD" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="318.129016" y="336.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'keyD'); return false;"
onmouseup="javascript:toggle_button (event, 'keyD'); return false;" id="textD"
x="344.129016" y="376.129053" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">D</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'keyE'); return false;"
onmouseup="javascript:toggle_button (event, 'keyE'); return false;" pressed="false"
id="keyE" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="224.129016" y="336.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'keyE'); return false;"
onmouseup="javascript:toggle_button (event, 'keyE'); return false;" id="textE"
x="250.129016" y="376.129053" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">E</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'keyF'); return false;"
onmouseup="javascript:toggle_button (event, 'keyF'); return false;" pressed="false"
id="keyF" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="130.129016" y="336.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'keyF'); return false;"
onmouseup="javascript:toggle_button (event, 'keyF'); return false;" id="textF"
x="155.129016" y="376.129053" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">F</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'key8'); return false;"
onmouseup="javascript:toggle_button (event, 'key8'); return false;" pressed="false"
id="key8" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="413.129016" y="415.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'key8'); return false;"
onmouseup="javascript:toggle_button (event, 'key8'); return false;" id="text8"
x="438.129016" y="455.129053" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">8</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'key9'); return false;"
onmouseup="javascript:toggle_button (event, 'key9'); return false;" pressed="false"
id="key9" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="318.129016" y="415.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'key9'); return false;"
onmouseup="javascript:toggle_button (event, 'key9'); return false;" id="text9"
x="344.129016" y="455.129053" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">9</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'keyA'); return false;"
onmouseup="javascript:toggle_button (event, 'keyA'); return false;" pressed="false"
id="keyA" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="224.129016" y="415.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'keyA'); return false;"
onmouseup="javascript:toggle_button (event, 'keyA'); return false;" id="textA"
x="250.129016" y="455.129053" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">A</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'keyB'); return false;"
onmouseup="javascript:toggle_button (event, 'keyB'); return false;" pressed="false"
id="keyB" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="130.129016" y="415.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'keyB'); return false;"
onmouseup="javascript:toggle_button (event, 'keyB'); return false;" id="textB"
x="155.129016" y="455.129053" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">B</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'key4'); return false;"
onmouseup="javascript:toggle_button (event, 'key4'); return false;" pressed="false"
id="key4" stroke="#000" fill="#333666" text="0" stroke-width="1.25" stroke-opacity="null"
x="413.129016" y="495.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'key4'); return false;"
onmouseup="javascript:toggle_button (event, 'key4'); return false;" id="text4"
x="438.129016" y="535.129053" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">4</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'key5'); return false;"
onmouseup="javascript:toggle_button (event, 'key5'); return false;" pressed="false"
id="key5" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="318.129016" y="495.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'key5'); return false;"
onmouseup="javascript:toggle_button (event, 'key5'); return false;" id="text5"
x="344.129016" y="535.129053" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">5</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'key6'); return false;"
onmouseup="javascript:toggle_button (event, 'key6'); return false;" pressed="false"
id="key6" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="224.129016" y="495.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'key6'); return false;"
onmouseup="javascript:toggle_button (event, 'key6'); return false;" id="text6"
x="250.129016" y="535.129053" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">6</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'key7'); return false;"
onmouseup="javascript:toggle_button (event, 'key7'); return false;" pressed="false"
id="key7" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="130.129016" y="495.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'key7'); return false;"
onmouseup="javascript:toggle_button (event, 'key7'); return false;" id="text7"
x="155.129016" y="535.129053" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">7</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'key0'); return false;"
onmouseup="javascript:toggle_button (event, 'key0'); return false;" pressed="false"
id="key0" stroke="#000" fill="#333666" text="0" stroke-width="1.25" stroke-opacity="null"
x="413.129016" y="575.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'key0'); return false;"
onmouseup="javascript:toggle_button (event, 'key0'); return false;" id="text0"
x="438.129016" y="615.129053" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">0</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'key1'); return false;"
onmouseup="javascript:toggle_button (event, 'key1'); return false;" pressed="false"
id="key1" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="318.129016" y="575.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'key1'); return false;"
onmouseup="javascript:toggle_button (event, 'key1'); return false;" id="text1"
x="344.129016" y="615.129053" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">1</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'key2'); return false;"
onmouseup="javascript:toggle_button (event, 'key2'); return false;" pressed="false"
id="key2" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="224.129016" y="575.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'key2'); return false;"
onmouseup="javascript:toggle_button (event, 'key2'); return false;" id="text2"
x="250.129016" y="615.129053" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">2</text>
</g>
<g>
<rect class="inputbutton" onmousedown="javascript:toggle_button (event, 'key3'); return false;"
onmouseup="javascript:toggle_button (event, 'key3'); return false;" pressed="false"
id="key3" stroke="#000" fill="#333666" stroke-width="1.25" stroke-opacity="null"
x="130.129016" y="575.129053" width="64.838718" height="65.483867" style="cursor: pointer"
rx="5" />
<text class="svg_text" onmousedown="javascript:toggle_button (event, 'key3'); return false;"
onmouseup="javascript:toggle_button (event, 'key3'); return false;" id="text3"
x="155.129016" y="615.129053" font-family="Courier" font-size="28" fill="white"
style="cursor: pointer; white-space: pre;">3</text>
</g>
</svg>
<div class="col align-self-center" id="btnarray">
<div class="row btn-row">
<button class="btn btn-info btn-bevel btn-filter" id="btn-load" type="button"
onclick="javascript:load_template(event)">Load Template</button>
<button class="btn btn-primary btn-bevel btn-filter" type="button"
onclick="javascript:ice40hx8k_handler();">Simulate</button>
</div>
<div class="row btn-row">
<button class="btn btn-dark btn-bevel btn-filter" type="button"
onclick="javascript:ice40hx8k_handler(demo=true)">Demo</button>
<button class="btn btn-warning btn-bevel btn-filter" type="button"
onclick="javascript:stop_handler()">Freeze</button>
<button class="btn btn-danger btn-bevel btn-filter" type="button"
onclick="javascript:reset_handler()">Stop</button>
</div>
<div class="btn-row row justify-content-xl-center">
<button class="btn btn-bevel btn-filter lowerbtn" id="switchsim" type="button"
onclick="javascript:switchWorkspaceSim()"
onmouseover="javascript:onHoverSwitchsim(event, 0)"
onmouseleave="javascript:onHoverSwitchsim(event, 1)"
>Workspace Simulation</button>
<button class="btn btn-bevel btn-filter lowerbtn" id="tracedown" type="button"
onclick="javascript:downloadVCD();">Download Traces</button>
</div>
</div>
</div>
<div id="editor-workspace">
<div style="width: 100%; height: 100%; display: flex; flex-direction: column;">
<div id="editor-tab-workspace-header">
<div class="editor-tab-workspace" id="editor-tab-workspace-add"><label
class="tab-label-workspace" id="wksp-tab-add">+</label></div>
</div>
<div id="editor-tab-header">
<div class="editor-tab" id="editor-tab-add"><label class="tab-label" id="tab-add">+</label>
</div>
</div>
<div class="wrapped-editor">
<div id="codemirror_box" style="width: 100%; top: 0; bottom: 0; left: 0; right: 0; z-index: 0">
</div>
<div class="radar-view" id="radar-view" style="position: relative;"></div>
</div>
<div id="terminal" style="display: none"></div>
<textarea id="outputview" readonly
style="display: none">No output has been produced from a simulation yet.</textarea>
<script src="assets/js/ace-builds/src-noconflict/ext-language_tools.js"></script>
<script>
ace.require("ace/ext/language_tools");
var editor = ace.edit("codemirror_box")
var EditSession = ace.require("ace/edit_session").EditSession
editor.setTheme("ace/theme/chrome")
editor.session.setMode("ace/mode/verilog")
editor.session.setTabSize(2)
document.getElementById('codemirror_box').style.fontSize = '14px';
editor.setShowPrintMargin(false);
var Range = ace.require('ace/range').Range;
</script>
<div id="uart_view"
style="width: 100%; display: flex; flex-direction: row; align-items: center; justify-content: flex-start;">
<button class="btn btn-bevel btn-view btn-view-active" id="view_code"
onclick="switchView(0)">Code View</button>
<button class="btn btn-bevel btn-view" id="view_output" onclick="switchView(2)">Tool
Output</button>
<button class="btn btn-bevel btn-view" id="view_terminal" onclick="switchView(1)">Terminal
View</button>
</div>
</div>
<div id="resize-editor" draggable="true"></div>
</div>
</div>
</div>
<div class="overlay align-items-center justify-content-center" id="overlay">
<div class="inner_overlay"
style="display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 60%">
<div style="margin-top: 1vh; display: flex; align-items: center; justify-content: flex-end; width: 95%">
<div style="width: calc(1vw + 1vh); float: right; cursor: pointer" onclick="javascript:closeOverlay()">
<svg viewBox="0 0 512 512" style="color: white">
<path id="close1" style="fill: #888"
d="M256 90c44.3 0 86 17.3 117.4 48.6C404.7 170 422 211.7 422 256s-17.3 86-48.6 117.4C342 404.7 300.3 422 256 422s-86-17.3-117.4-48.6C107.3 342 90 300.3 90 256s17.3-86 48.6-117.4C170 107.3 211.7 90 256 90m0-42C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z" />
<path id="close2" style="fill: #888"
d="M360 330.9L330.9 360 256 285.1 181.1 360 152 330.9l74.9-74.9-74.9-74.9 29.1-29.1 74.9 74.9 74.9-74.9 29.1 29.1-74.9 74.9z" />
</svg>
</div>
</div>
<h4 class="display-4 text-muted" style="filter: blur(0); font-size: 2vh">These are the files stored in your
browser's localStorage. Double-click to open one: </h4>
<div class="align-items-center" style="padding-left: 17%; padding-right: 20%; width: 100%; height: 100%">
<select name="project_list" multiple
style="text-align: center; margin-top: 10px; width: calc(30vw + 2vh); height: 80%; font-size: calc(0.25vh + 0.75vw)"></select>
<div id="open_dialog_icon" style="padding-top: 0.8vh; width: calc(30vw + 2vh); height: 4vh">
<i class="fal fa-play " id="btnload" style="width: 1.5vh; margin-right: 15px; cursor: pointer"
onclick="javascript:loadVerilog()"></i>
<i class="fal fa-times" id="btndel" style="width: 1.5vh; margin-right: 15px; cursor: pointer"
onclick="javascript:clearItem()"></i>
</div>
</div>
</div>
</div>
<div class="overlay align-items-center justify-content-center" id="overlay_workspace">
<div class="inner_overlay"
style="width: 65%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 60%">
<div style="margin-top: 1vh; display: flex; align-items: center; justify-content: flex-end; width: 95%">
<div style="width: calc(1vw + 1vh); float: right; cursor: pointer"
onclick="javascript:closeWorkspaceManager()">
<svg viewBox="0 0 512 512" style="color: white">
<path id="close1" style="fill: #888"
d="M256 90c44.3 0 86 17.3 117.4 48.6C404.7 170 422 211.7 422 256s-17.3 86-48.6 117.4C342 404.7 300.3 422 256 422s-86-17.3-117.4-48.6C107.3 342 90 300.3 90 256s17.3-86 48.6-117.4C170 107.3 211.7 90 256 90m0-42C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"/>
<path id="close2" style="fill: #888"
d="M360 330.9L330.9 360 256 285.1 181.1 360 152 330.9l74.9-74.9-74.9-74.9 29.1-29.1 74.9 74.9 74.9-74.9 29.1 29.1-74.9 74.9z"/>
</svg>
</div>
</div>
<h4 class="display-4 text-muted" style="filter: blur(0); font-size: 2.5vh">File Manager</h4>
<h4 class="display-4 text-muted" style="filter: blur(0); width: 100%; text-align: center; font-size: 1.5vh">
Columns: Name | Created
on | Last modified</h4>
<div id="file_browser"></div>
<div
style="height: 4vh; width: 40%; margin-bottom: 1vh; display: flex; flex-direction: row; align-items: center; justify-content: space-evenly;">
<i class="fa fa-file" style="cursor: pointer; color: var(--display-4-color)"
onclick="browserToggleNewDirfile(0)"></i>
<i class="fa fa-folder-open" style="cursor: pointer; color: var(--display-4-color)"
onclick="browserOpenSelectedFiledirs()"></i>
<i class="fa fa-trash" style="cursor: pointer; color: var(--display-4-color)"
onclick="browserDeleteSelectedFiledirs()"></i>
</div>
<div class="overlay" id="overlay_new_dirfile">
<div style="margin-top: 1vh; display: flex; align-items: center; justify-content: flex-end; width: 95%">
<div style="width: calc(1vw + 1vh); float: right; cursor: pointer"
onclick="javascript:browserToggleNewDirfile(1)">
<svg viewBox="0 0 512 512" style="color: white">
<path id="close1" style="fill: #888"
d="M256 90c44.3 0 86 17.3 117.4 48.6C404.7 170 422 211.7 422 256s-17.3 86-48.6 117.4C342 404.7 300.3 422 256 422s-86-17.3-117.4-48.6C107.3 342 90 300.3 90 256s17.3-86 48.6-117.4C170 107.3 211.7 90 256 90m0-42C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"/>
<path id="close2" style="fill: #888"
d="M360 330.9L330.9 360 256 285.1 181.1 360 152 330.9l74.9-74.9-74.9-74.9 29.1-29.1 74.9 74.9 74.9-74.9 29.1 29.1-74.9 74.9z"/>
</svg>
</div>
</div>
<h4 class="display-4 text-muted" style="filter: blur(0); font-size: 2.5vh; margin-bottom: 3vh">Create
new file/workspace</h4>
<div class="filedir_view" id="add_new_file_view">
<div
style="width: 100%; height: 6vh; display: flex; flex-direction: row; justify-content: center; align-items: first baseline;">
<p class="unselectable modern-font"
style="width: 30%; font-size: calc(0.5vw + 1vh); color: var(--display-4-color); text-align: center;">
Select a workspace: </p>
<select id="selworkspace"></select>
</div>
<div
style="width: 100%; height: 6vh; display: flex; flex-direction: row; justify-content: center; align-items: first baseline;">
<p class="unselectable modern-font"
style="width: 30%; font-size: calc(0.5vw + 1vh); color: var(--display-4-color); text-align: center;">
Enter a filename: </p>
<input
style="width: 55%; margin-left: 5%; height: 3.4vh; border-radius: 6px; font-size: calc(0.25vw + 1vh); border: 1px solid var(--display-4-color); background: transparent; color: var(--display-4-color)"
onkeydown="(function (e) { if (e.key == 'Enter') browserEventAddFile() })(event)"
id="createfilename">
<button
style="width: 7%; height: 3.3vh; margin-left: -7%; background: transparent; color: var(--display-4-color); border:0; border-left: 1px solid var(--display-4-color); display: flex; align-items: center; justify-content: center; border-radius: 0 6px 6px 0;"
onclick="browserEventAddFile()">
<i class="fa fa-paper-plane"
style="color: var(--display-4-color); font-size: calc(0.25vw + 0.5vh)"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<div class="overlay align-items-center justify-content-center" id="overlay_2">
<div class="container inner_overlay" style="height: 65%; justify-content: space-evenly;">
<div style="display: flex; flex-direction: row; justify-content: space-between;">
<h4 class="display-4 text-muted" style="width: 100%; font-size: 2.5vh">Settings</h4>
<div style="width: 1.5vw; float: right; cursor: pointer"
onclick="javascript:closeOverlay(); closeSettings()">
<svg viewBox="0 0 512 512" style="color: white">
<path id="close1" style="fill: #888"
d="M256 90c44.3 0 86 17.3 117.4 48.6C404.7 170 422 211.7 422 256s-17.3 86-48.6 117.4C342 404.7 300.3 422 256 422s-86-17.3-117.4-48.6C107.3 342 90 300.3 90 256s17.3-86 48.6-117.4C170 107.3 211.7 90 256 90m0-42C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"/>
<path id="close2" style="fill: #888"
d="M360 330.9L330.9 360 256 285.1 181.1 360 152 330.9l74.9-74.9-74.9-74.9 29.1-29.1 74.9 74.9 74.9-74.9 29.1 29.1-74.9 74.9z"/>
</svg>
</div>
</div>
<div style="width: 100%;">
<h4 class="display-4 text-muted" style="float: left; font-size: 2vh; margin-top: 10px">Dark Mode</h4>
<div style="float: right; width: 3.125vw; cursor: pointer">
<svg preserveAspectRatio="xMidYMid meet" viewBox="0 0 60 40">
<g>
<g id="canvasGrid" display="none">
<rect id="svg_1" width="100%" height="100%" x="0" y="0" stroke-width="0"
fill="url(#gridpattern)"/>
</g>
</g>
<g>
<rect onclick="javascript:toggleDarkMode()" id="settingsButtonOuter" fill="#fff" stroke-width="0.5"
x="2.35782" y="3.97817" width="55.22964" height="31.60169" id="svg_2" rx="19" stroke="#000"/>
<ellipse onclick="javascript:toggleDarkMode()" id="settingsButtonInner" fill="#444" stroke-width="0.5"
stroke-opacity="null" fill-opacity="null" cx="19" cy="19.64636" id="svg_3" rx="12" ry="12.33765"
stroke="#000"/>
<!-- <rect fill="#0aada5" stroke-width="0.5" x="23.64628" y="52.76076" width="55.22964" height="31.60169" id="svg_6" rx="19" stroke="#000"/>
<ellipse fill="#eee" stroke-width="0.5" stroke-opacity="null" fill-opacity="null" cx="64.53441" cy="68.42894" id="svg_7" rx="12" ry="12.33765" stroke="#000"/> -->
</g>
</svg>
</div>
</div>
<div style="display: flex; flex-direction: column; width: 100%">
<div style="display: flex; flex-direction: row; align-items: center; justify-content: space-between;">
<h4 class="display-4 text-muted" style="font-size: 2vh;">Simulate-upon-Save</h4>
<div
style="width: 3.125vw; margin-top: auto; margin-bottom: auto; float: right; cursor: pointer; height: 100%">
<svg preserveAspectRatio="xMidYMid meet" viewBox="0 0 60 40">
<g>
<g id="canvasGrid" display="none">
<rect id="svg_1" width="100%" height="100%" x="0" y="0" stroke-width="0"
fill="url(#gridpattern)" />
</g>
</g>
<g>
<rect onclick="javascript:toggleInstantSim()" id="settingsButtonOuter2" fill="#fff"
stroke-width="0.5" x="2.35782" y="3.97817" width="55.22964" height="31.60169"
id="svg_2" rx="19" stroke="#000" />
<ellipse onclick="javascript:toggleInstantSim()" id="settingsButtonInner2" fill="#444"
stroke-width="0.5" stroke-opacity="null" fill-opacity="null" cx="19" cy="19.64636"
id="svg_3" rx="12" ry="12.33765" stroke="#000" />
</g>
</svg>
</div>
</div>
<h4 class="display-4 text-muted" style="float: left; text-align: left; font-size: 1.5vh;">The Ctrl+S
shortcut, when used inside the editor, will both save and simulate the code you've written. If you
don't want this behavior, flip the slider to disable it.</h4>
</div>
<div style="width: 100%; height: 6vh; float: left; margin-top: 0.5vh; margin-bottom: 5px;">
<h4 class="display-4 text-muted" style="float: left; font-size: 2vh;">Change Simulation Type</h4>
<div style="max-width: 100%; height: 5vh; float: right">
<div
style="width: 3.125vw; margin-top: auto; margin-bottom: auto; float: right; cursor: pointer; height: 100%">
<svg preserveAspectRatio="xMidYMid meet" viewBox="0 0 60 40">
<g>
<g id="canvasGrid" display="none">
<rect id="svg_1" width="100%" height="100%" x="0" y="0" stroke-width="0"
fill="url(#gridpattern)" />
</g>
</g>
<g>
<rect onclick="javascript:toggleSimType()" id="settingsButtonOuterSimType" fill="#fff"
stroke-width="0.5" x="2.35782" y="3.97817" width="55.22964" height="31.60169"
id="svg_2" rx="19" stroke="#000" />
<ellipse onclick="javascript:toggleSimType()" id="settingsButtonInnerSimType"
fill="#444" stroke-width="0.5" stroke-opacity="null" fill-opacity="null" cx="19"
cy="19.64636" id="svg_3" rx="12" ry="12.33765" stroke="#000" />
</g>
</svg>
</div>
</div>
<h4 class="display-4 text-muted"
style="float: left; text-align: left; font-size: 1.5vh; padding-bottom: 15px">Disable this if you
wish to simulate the original Verilog you've written (source simulation), or enable to simulate the
synthesized version of your design (mapped simulation).</h4>
</div>
<div style="width: 100%; height: 6vh; float: left; margin-top: 0.5vh; margin-bottom: 5px;">
<h4 class="display-4 text-muted" style="float: left; font-size: 2vh;">Change Evaluation Board <a
style="cursor: pointer; text-decoration: none;"
onclick="alert('Great find! Ask Niraj how to set custom colors on the FPGA if you\'d like them. :)');">Theme</a>
</h4>
<div style="max-width: 100%; height: 5vh; float: right">
<select id="evalthemeselector"
onchange="changeBoardTheme(document.getElementById ('evalthemeselector').value)"
style="height: 3.5vh; width: 6.5vw; border-radius: 5px">
<option value="Modern">Modern</option>
<option value="Original">Original</option>
<!-- <option value="Dark Original">Dark Original</option> -->
</select>
</div>
<h4 class="display-4 text-muted"
style="float: left; text-align: left; font-size: 1.5vh; padding-bottom: 15px">Do you also wonder,
like Rick, why the simulator board is blue when the real board is green? Change the color scheme
here!</h4>
</div>
</div>
</div>
<div class="overlay align-items-center justify-content-center" id="overlay_3">
<div class="inner_overlay"
style="display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; height: 55%">
<div style="display: flex; flex-direction: row; justify-content: space-around; width: 95%">
<h4 class="display-4 text-muted" style="font-size: 2.75vh; width: 100%">FPGA Communication Terminal</h4>
<div style="width: 1.5vw; float: right; cursor: pointer" onclick="javascript:closeUART()">
<svg viewBox="0 0 512 512" style="color: white">
<path id="close1" style="fill: #888"
d="M256 90c44.3 0 86 17.3 117.4 48.6C404.7 170 422 211.7 422 256s-17.3 86-48.6 117.4C342 404.7 300.3 422 256 422s-86-17.3-117.4-48.6C107.3 342 90 300.3 90 256s17.3-86 48.6-117.4C170 107.3 211.7 90 256 90m0-42C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"/>
<path id="close2" style="fill: #888"
d="M360 330.9L330.9 360 256 285.1 181.1 360 152 330.9l74.9-74.9-74.9-74.9 29.1-29.1 74.9 74.9 74.9-74.9 29.1 29.1-74.9 74.9z"/>
</svg>
</div>
</div>
<h4 class="display-4 text-muted"
style="float: left; text-align: left; width: 100%; font-size: 1.8vh; padding-right: 1vw">
In your lab sessions towards the end of the semester, you will start working on Verilog designs
involving the implementation of a simple computer on the FPGA/simulator.
<br>
<br> For the last few labs, we would have had you use the UART communication port on the FPGA to add the
capability of communicating with your FPGA with the help of a virtual terminal. However, since we're
doing this online, we will be
using a terminal to communicate with your simulations instead.
<br>
<br> The purpose of the communication could be to send commands to the FPGA with the help of the
terminal to display things on the LEDs and SS displays, or to read the values of certain registers by
outputting them to the terminal. We
will have you implement something similar in these last two labs.
</h4>
<div style="display: flex; flex-direction: column; align-items: flex-start">
<div style="display: flex; flex-direction: row; justify-content: space-between; width: 98%">
<h4 class="display-4 text-muted" style="font-size: 2.25vh">Auto-switch to Terminal</h4>
<div style="float: right; width: 3.125vw; cursor: pointer">
<svg id="enableAutoTerminalSwitch" preserveAspectRatio="xMidYMid meet" viewBox="0 0 60 40">
<g>
<rect x="-1" y="-1" width="62" height="42" id="canvas_background_2" fill="#fff" />
<g id="canvasGrid" display="none">
<rect id="svg_1" width="100%" height="100%" x="0" y="0" stroke-width="0"
fill="url(#gridpattern)" />
</g>
</g>
<g>
<rect onclick="javascript:toggleAutoTerminal()" id="autoTerminalButtonOuter" fill="#fff"
stroke-width="0.5" x="2.35782" y="3.97817" width="55.22964" height="31.60169"
id="svg_2" rx="19" stroke="#000" />
<ellipse onclick="javascript:toggleAutoTerminal()" id="autoTerminalButtonInner"
fill="#444" stroke-width="0.5" stroke-opacity="null" fill-opacity="null" cx="19"
cy="19.64636" id="svg_3" rx="12" ry="12.33765" stroke="#000" />
</g>
</svg>
</div>
</div>
<h4 class="display-4 text-muted" style="float: left; text-align: left; width: 85%; font-size: 1.75vh;">
If this option is enabled when the simulation starts, the view immediately changes to the terminal.
Disable if you want to keep the code in view when the simulation starts.</h4>
</div>
</div>
</div>
<div class="overlay align-items-center justify-content-center" id="overlay_4">
<div class="inner_overlay" style="width: 35%; height: 50%; padding: 2vh 2vw 2vh 2vw">
<div style="display: flex; flex-direction: row; justify-content: flex-end; width: 100%">
<div style="width: 1.5vw; float: right; cursor: pointer" onclick="javascript:toggleProfile()">
<svg viewBox="0 0 512 512" style="color: white">
<path id="close1" style="fill: #888"
d="M256 90c44.3 0 86 17.3 117.4 48.6C404.7 170 422 211.7 422 256s-17.3 86-48.6 117.4C342 404.7 300.3 422 256 422s-86-17.3-117.4-48.6C107.3 342 90 300.3 90 256s17.3-86 48.6-117.4C170 107.3 211.7 90 256 90m0-42C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"/>
<path id="close2" style="fill: #888"
d="M360 330.9L330.9 360 256 285.1 181.1 360 152 330.9l74.9-74.9-74.9-74.9 29.1-29.1 74.9 74.9 74.9-74.9 29.1 29.1-74.9 74.9z"/>
</svg>
</div>
</div>