forked from ramapcsx2/gbs-control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webui.html
671 lines (646 loc) · 57.9 KB
/
webui.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset='utf-8'/>
<link rel='icon' href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGklEQVR42mPsSDI9w0ABYBw1YNSAUQOGiwEAE54ewU+zbsAAAAAASUVORK5CYII='>
<!-- Design by Szymon Pluta -->
<title>GBS User Interface</title>
<style>
@font-face {
/* Iceberg font by Victor Kharyk for Cyreal (www.cyreal.org) SIL Open Font License, Version 1.1 */
src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAEDMABAAAAAAg4AAAQACAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAABAsAAAABwAAAAcapK7gkdERUYAAECQAAAAHQAAAB4AJwDiT1MvMgAAAeQAAABUAAAAYFdc%2F8NjbWFwAAAEKAAAAXsAAAHK0o3BBmN2dCAAAAmUAAAAIQAAACYDGQytZnBnbQAABaQAAAOeAAAKUQ208mdnYXNwAABAiAAAAAgAAAAIAAAAEGdseWYAAAt0AAAx0gAAakw%2F8i2%2BaGVhZAAAAWwAAAA2AAAANvkV6WRoaGVhAAABpAAAACAAAAAkBxMDfWhtdHgAAAI4AAAB8AAAA3CiojR5bG9jYQAACbgAAA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FJSgkUWFFFFVMcSWUVEppZZT9%2B1NeBRVVUlkVVVVTXQ011VJbHXXVU18DDTXSWJImkjXVTHMttNRKa2201U57HXTUSWddpOiqm%2B566KmX3vroq5%2F%2BBhhokMGGGGqY4UYYaZTRxhhrnPEmmGiSyVIdsMcKK5231RurbLTedvvsDcRY57nltvjmuw22WeOSV77aYb%2Bffvhlt4Ouu%2BqQKYI2SXNTyDU33HXLbXe8le6Be%2B47LMMXmz320CNTvffRWtOETTdDppl2yjJLtogcUblmm%2BOdueabZ4FFFjpjlyUWW2qZDz4564kjjnrqtZeeOea4U0677ISTrljtgovOBfIFYn0O5A8UCMQF4uOiM8PJySndE9OzopGcaHYoEs6KxPaIRrISMiKps0NJwdScUEJqMJqbN4sGw5FgdEZ6ZmhuXsoNZ6blpT8t5HuBAAAAAQAB%2F%2F8AD3icY2BkYGDgAWIxIGZiYATC20DMAuYxAAANBwEKAAAAAAAAAQAAAADUGBYRAAAAAMs831QAAAAAyz3GHA%3D%3D);
font-family: 'Iceberg';
}
html {
background-color: #333;
color: #bbbbbb;
font-family: 'Iceberg', cursive;
font-weight: 400;
}
.btn-h {
width: 12.6vw;
max-width: 12%;
min-width: max-content;
min-width: -moz-max-content;
min-width: -webkit-max-content;
height: 8vh;
max-height: 220px;
background-color: #26C6DA;
border-radius: 500px;
border: none;
margin: 0.66vh 0.5vw;
-webkit-transition-duration: 0.1s;
transition-duration: 0.1s;
font-family: 'Iceberg', cursive;
font-size: calc(13px + 0.8vw);
color: #333;
}
.div1 {
/* navi */
text-align: center;
margin-bottom: 4%;
}
.div2 {
/* content */
text-align: center;
}
.div3 {
/* terminal */
text-align: center;
resize: none;
}
.btn-h:hover {
background-color: #006064;
color: #bbb;
}
.btn-h:focus {
background-color: #006064;
color: #bbb;
outline: 0;
}
.btn-h:active {
background-color: #004548;
}
h1 {
margin: auto;
padding: 4px;
background: linear-gradient(#e6bc8b, #886235);
}
h1:before,h1:after {
position: absolute;
left: 0;
bottom: -6px;
border-top: 6px solid #555;
border-left: 6px solid transparent;
}
p {
margin: 1px;
}
.button {
background-color: #26A69A;
border: none;
border-radius: 500px;
color: #333;
text-align: center;
text-decoration: none;
display: inline-block;
margin: 1.5vh 1vw;
font-family: 'Iceberg', cursive;
-webkit-transition-duration: 0.1s;
transition-duration: 0.1s;
width: 16vw;
max-width: 12%;
min-width: max-content;
min-width: -moz-max-content;
min-width: -webkit-max-content;
height: 8vh;
max-height: 220px;
font-size: calc(11px + 0.8vw);
}
.button.preset, .button.slot, .button.option {
background-color: #26A69A;
}
.button.preset.active, .button.slot.active, .button.option.active {
background-color: #004D40;
color: #bbb;
}
.button:hover {
background-color: #004D40;
color: #bbb;
}
.button:active {
background-color: #001f10;
}
.button:focus {
outline: 0;
}
textarea {
width: 94vw;
max-width: 888px;
height: 50vh;
max-height: 400px;
margin: 20px;
resize: none;
color: #26C6DA;
background: #333;
border-radius: 10px;
border: solid thin #555;
}
#overlayNoWs {
position: fixed;
display: none;
width: 32px;
height: 32px;
top: 16px;
left: 8px;
right: 0;
bottom: 0;
border-radius: 24px;
background-color: rgba(200, 30, 30, 0.9);
z-index: 2;
}
br {
clear: left;
}
h2 {
clear: left;
}
</style>
<script>
function content1() {
document.getElementById("display").innerHTML =
'<p>Choose an output resolution from these presets. Your selection will also be used for startup.</p>' +
'<p>1280x960 is recommended for NTSC sources, 1280x1024 for PAL.</p>' +
'<p>Use the "Matched Presets" option to switch between the two automatically (Preferences tab)</p>' +
'<button class="button preset" type="button" id="1" onclick="loadUser(\'f\')">1280x960</button>' +
'<button class="button preset" type="button" id="2" onclick="loadUser(\'p\')">1280x1024</button>' +
'<button class="button preset" type="button" id="3" onclick="loadUser(\'g\')">1280x720</button>' +
'<button class="button preset" type="button" id="5" onclick="loadUser(\'s\')">1920x1080</button>' +
'<button class="button preset" type="button" id="4" onclick="loadUser(\'h\')">720x480 / 768x576</button>' + '<br>' +
'<button class="button preset" type="button" id="6" onclick="loadUser(\'L\')">15kHz Scale Down</button>' +
'<button class="button preset" type="button" id="8" onclick="loadDoc(\'K\')">Source Pass-through</button>' +
'<br><br><br>' +
'<p>If you want to save your customizations, first select a slot for your new preset, then save to or load from that slot.</p>' +
'<p>Selecting a slot also makes it the new startup preset.</p>' +
'<button class="button slot" type="button" id="11" onclick="loadUser(\'b\')">Slot 1</button>' +
'<button class="button slot" type="button" id="12" onclick="loadUser(\'c\')">Slot 2</button>' +
'<button class="button slot" type="button" id="13" onclick="loadUser(\'d\')">Slot 3</button>' +
'<button class="button slot" type="button" id="14" onclick="loadUser(\'j\')">Slot 4</button>' +
'<button class="button slot" type="button" id="15" onclick="loadUser(\'k\')">Slot 5</button>' +
'<br>' +
'<button class="button slot" type="button" id="16" onclick="loadUser(\'G\')">Slot 6</button>' +
'<button class="button slot" type="button" id="17" onclick="loadUser(\'H\')">Slot 7</button>' +
'<button class="button slot" type="button" id="18" onclick="loadUser(\'I\')">Slot 8</button>' +
'<button class="button slot" type="button" id="19" onclick="loadUser(\'J\')">Slot 9</button>' +
'<br>' +
'<button class="button preset" type="button" id="9" onclick="loadUser(\'3\')">Load Custom Preset</button>' +
'<button class="button" type="button" onclick="loadUser(\'4\')">Save Custom Preset</button>';
}
function content2() {
document.getElementById("display").innerHTML =
'<h2>Move Picture</h2>' +
'<button class="button repeating" type="button" onclick="loadDoc(\'*\')">Picture Up</button>' +
'<button class="button repeating" type="button" onclick="loadDoc(\'/\')">Picture Down</button>' +
'<button class="button repeating" type="button" onclick="loadDoc(\'7\')">Picture Left</button>' +
'<button class="button repeating" type="button" onclick="loadDoc(\'6\')">Picture Right</button>' +
'<h2>Scaling</h2>' +
'<button class="button repeating" type="button" onclick="loadDoc(\'z\')">Horizontal +</button>' +
'<button class="button repeating" type="button" onclick="loadDoc(\'h\')">Horizontal -</button>' +
'<button class="button repeating" type="button" onclick="loadDoc(\'4\')">Vertical +</button>' +
'<button class="button repeating" type="button" onclick="loadDoc(\'5\')">Vertical -</button>' +
'<h2>Border Masking</h2>' +
'<button class="button repeating" type="button" onclick="loadUser(\'A\')">Horizontal +</button>' +
'<button class="button repeating" type="button" onclick="loadUser(\'B\')">Horizontal -</button>' +
'<button class="button repeating" type="button" onclick="loadUser(\'C\')">Vertical +</button>' +
'<button class="button repeating" type="button" onclick="loadUser(\'D\')">Vertical -</button>' + '<br>' +
'<h2>ADC Gain (brightness)</h2>' +
'<p>Gain +/- adjusts the gain for the currently loaded preset.</p>' +
'<button class="button repeating" type="button" onclick="loadUser(\'n\')">Gain +</button>' +
'<button class="button repeating" type="button" onclick="loadUser(\'o\')">Gain -</button>' +
'<button class="button option adcAutoGain" type="button" onclick="loadDoc(\'T\')">Auto Gain Adjust Toggle</button>';
makeButtonsRepeatable();
}
function content3() {
document.getElementById("display").innerHTML =
'<p>Scanlines only work with 240p sources. They look best with the Line Filter enabled.</p>' +
'<p>Peaking and Step Response are subtle sharpening filters and recommended.</p>' +
'<button class="button option scanlines" type="button" onclick="loadUser(\'7\')">Scanlines (240p only)</button>' +
'<button class="button option vdsLineFilter" type="button" onclick="loadUser(\'m\')">Line Filter</button>' +
'<button class="button option peaking" type="button" onclick="loadDoc(\'f\')">Peaking</button>' +
'<button class="button option step" type="button" onclick="loadDoc(\'V\')">Step Response</button>' + '<br>' +
'<button class="button" type="button" onclick="loadUser(\'K\')">Scanline Strength</button>';
}
function content5() {
document.getElementById("display").innerHTML =
'<h2>Matched Preset for Source Format</h2>' +
'<p>If enabled, default to 1280x960 for NTSC 60 and 1280x1024 for PAL 50 (does not apply for 720p / 1080p presets).</p>' +
'<button class="button option matched" type="button" onclick="loadDoc(\'Z\')">Matched Presets</button>' +
'<h2>Prefer Full Height</h2>' +
'<p>Some presets default to not using the entire vertical output resolution, leaving some lines black.</p>' +
'<p>With Full Height enabled, these presets will instead scale to fill more of the screen height.</p>' +
'<p>(This currently only affects 1920 x 1080)</p>' +
'<button class="button option fullHeight" type="button" onclick="loadUser(\'v\')">Full Height</button>' +
'<h2>Low Resolution VGA input: Pass-through or Upscale</h2>' +
'<p>Low resolution sources can be either passed on directly or get upscaled.</p>' +
'<p>Upscaling may have some border / scaling issues, but is more compatible with displays.</p>' +
'<p>Also, refresh rates other than 60Hz are not well supported yet.</p>' +
'<p>"Low resolution" is currently set at below or equal to 640x480 (525 active lines).</p>' +
'<button class="button option preferScalingRgbhv" type="button" onclick="loadUser(\'x\')">Low Res: Use Upscaling</button>' +
'<h2>Output Format: RGBHV (regular) / YPbPr (Component Video)</h2>' +
'<p>The default output mode is RGBHV, suitable for use with VGA cables or HDMI converters.</p>' +
'<p>An experimental YPbPr mode can also be selected. Compatibility is still spotty.</p>' +
'<button class="button option wantOutputComponent" type="button" onclick="loadDoc(\'L\')">RGBHV/Component Toggle</button>' +
'<h2>Output Frame Rate: Force PAL 50Hz to 60Hz</h2>' +
'<p>If your TV does not support 50Hz sources (displaying unknown format, no matter the preset), try this option.</p>' +
'<p>The frame rate will not be as smooth. Reboot required.</p>' +
'<button class="button option palForce60" type="button" onclick="loadUser(\'0\')">Force PAL 60Hz</button>' +
'<h2>ADC auto offset calibration</h2>' +
'<p>Gbscontrol calibrates the ADC offsets on startup.</p>' +
'<p>In case of color shift problems, try disabling this function.</p>' +
'<button class="button option enableCalibrationADC" type="button" onclick="loadUser(\'w\')">ADC calibration</button>' +
'<h2>Active FrameTime Lock (not compatible with all displays)</h2>' +
'<p>This option keeps the input and output timings aligned, fixing the horizontal tear line that can appear sometimes.</p>' +
'<p>Two methods are available. Try switching methods if your display goes blank.</p>' +
'<button class="button option frameTimeLock" type="button" onclick="loadUser(\'5\')">FrameTime Lock</button>' +
'<button class="button" type="button" onclick="loadUser(\'i\')">Switch Lock Method</button>' +
'<h2>Deinterlace Method</h2>' +
'<p>Gbscontrol detects interlaced content and automatically toggles deinterlacing. <br>' +
'- Bob Method: essentially no deinterlacing, no added lag but flickers <br>' +
'- Motion Adaptive: removes flicker, adds 1 frame of lag and shows some artefacts in moving details<br>' +
'If possible, configure the source for progressive output. Otherwise, using Motion Adaptive is recommended.</p>' +
'<button class="button option motionAdaptive" type="button" onclick="loadUser(\'r\')">Use Motion Adaptive</button>' +
'<button class="button option bob" type="button" onclick="loadUser(\'q\')">Use Bob</button>';
}
function content6() {
document.getElementById("display").innerHTML =
'<p>Options that aid in development of gbscontrol. Users normally don\'t need to adjust these.</p>' +
'<h2>Move Picture (memory blank, HS)</h2>' +
'<button class="button" type="button" onclick="loadDoc(\'-\')">Left</button>' +
'<button class="button" type="button" onclick="loadDoc(\'+\')">Right</button>' +
'<button class="button" type="button" onclick="loadDoc(\'1\')">HS Left</button>' +
'<button class="button" type="button" onclick="loadDoc(\'0\')">HS Right</button>' +
'<h2>Information</h2>' +
'<button class="button" type="button" onclick="loadDoc(\'i\')">Print Infos</button>' +
'<button class="button" type="button" onclick="loadDoc(\',\')">Get Video Timings</button>' +
'<h2>Commands</h2>' +
'<button class="button" type="button" onclick="loadUser(\'l\')">Cycle SDRAM clock speed</button>' +
'<button class="button" type="button" onclick="loadDoc(\'q\')">Reset Chip</button>' +
'<button class="button" type="button" onclick="loadDoc(\'8\')">Invert Sync</button>' +
'<button class="button" type="button" onclick="loadDoc(\'n\')">PLL divider++</button>' +
'<br>' +
'<button class="button" type="button" onclick="loadDoc(\'D\')">Debug View</button>' +
'<button class="button" type="button" onclick="loadDoc(\'F\')">ADC Filter</button>' +
'<button class="button" type="button" onclick="loadDoc(\'o\')">Oversampling</button>' +
'<button class="button" type="button" onclick="loadUser(\'F\')">Freeze Capture</button>' +
'<br>' +
'<button class="button" type="button" onclick="loadDoc(\'a\')">HTotal++</button>' +
'<button class="button" type="button" onclick="loadDoc(\'A\')">HTotal--</button>' +
'<button class="button" type="button" onclick="loadDoc(\'.\')">Resynchronize HTotal</button>' +
'<button class="button" type="button" onclick="loadDoc(\'l\')">Reset SyncProcessor</button>' +
'<br>' +
'<button class="button" type="button" onclick="loadDoc(\'S\')">Snap to 60/50Hz for HDMI</button>' +
'<button class="button" type="button" onclick="loadDoc(\'m\')">SyncWatcher</button>' +
'<button class="button" type="button" onclick="loadDoc(\'c\')">Enable OTA Updates</button>' +
'<button class="button" type="button" onclick="loadUser(\'E\')">IF Auto Offset</button>' +
'<br>' +
'<button class="button" type="button" onclick="loadUser(\'z\')">SOG Level--</button>';
}
function content7() {
document.getElementById("display").innerHTML =
'<button class="button" type="button" onclick="javascript:location.href=\'/wifi.htm\'">Connect to WiFi Network</button>' +
'<button class="button" type="button" onclick="loadUser(\'a\')">Restart</button>' +
'<button class="button" type="button" onclick="loadUser(\'e\')">List Options</button>' +
'<button class="button" type="button" onclick="loadUser(\'1\')">Reset Defaults + Restart</button>';
}
window.addEventListener('load', function(event) {
content1();
theTerminal = document.getElementById('outputTextArea');
ws = null;
createWebSocket();
wsCheckTimer = setInterval(checkWs, 500);
updateTerminalTimer = setInterval(updateTerminal, 50);
});
window.addEventListener('unload', function(event) {
clearInterval(wsCheckTimer);
if (ws) {
if (ws.readyState == 0 || ws.readyState == 1) {
ws.close();
}
}
console.log('unload');
});
var dataQueued = 0;
var theTerminal;
var ws = null;
var isWsActive = 0;
var wsTimeout;
var wsCheckTimer;
var wsConnectCounter = 0;
var wsNoSuccessConnectingCounter = 0;
var updateTerminalTimer;
var queuedText = '';
function loadDoc(link) {
var xhttp = new XMLHttpRequest();
xhttp.open('GET', 'sc?' + link + '&nocache=' + new Date().getTime(), true);
xhttp.send();
}
function loadUser(link) {
var xhttp = new XMLHttpRequest();
xhttp.open('GET', 'uc?' + link + '&nocache=' + new Date().getTime(), true);
xhttp.send();
if (link == 'a' || link == '1') {
isWsActive = 0;
theTerminal.value += ' Restart';
theTerminal.value += '\n';
theTerminal.scrollTop = theTerminal.scrollHeight;
}
}
var repeatTimeout = null;
var repeatInterval = null;
function repeatStart(fn, link) {
repeatStop();
fn(link);
repeatTimeout = setTimeout(function() {
repeatInterval = setInterval(function() {
fn(link);
}, 80);
}, 600);
}
function repeatStop() {
if (repeatTimeout) {
clearTimeout(repeatTimeout);
repeatTimeout = null;
}
if (repeatInterval) {
clearInterval(repeatInterval);
repeatInterval = null;
}
}
function makeButtonsRepeatable() {
var buttons = document.getElementById('display').getElementsByTagName('button');
for (var i = 0; i < buttons.length; ++i) {
var button = buttons[i];
if (/(^|\s)repeating(\s|$)/.test(button.className)) {
var onClick = /(load(User|Doc))\(\'(.+)\'\)/.exec(button.onclick);
if (onClick) {
var fn = onClick[1];
var link = onClick[3];
if (typeof window[fn] == 'function') {
fn = window[fn];
(function(fn, link) {
button.onclick = null;
button.onmousedown = function() { repeatStart(fn, link); };
button.onmouseup = repeatStop;
button.onmouseleave = repeatStop;
button.onkeypress = function(e) { if (e.keyCode == 13) fn(link); };
})(fn, link);
}
}
}
}
}
function updateTerminal() {
if (queuedText.length > 0) {
requestAnimationFrame(function() {
theTerminal.value += queuedText;
theTerminal.scrollTop = theTerminal.scrollHeight;
queuedText = '';
});
}
}
function checkWs() {
if (isWsActive === 0) {
if (ws) {
/*
0 CONNECTING
1 OPEN
2 CLOSING
3 CLOSED
*/
if (ws.readyState == 3) {
ws = null;
}
else if (ws.readyState == 2) {
/* console.log('ws CLOSING > repeat ws.close()'); */
ws.close();
}
else if (ws.readyState == 1) {
ws.close();
}
/* createWebSocket deals with 0 */
}
document.getElementById('overlayNoWs').style.display = 'block'; /*show*/
createWebSocket();
}
}
function timeOutWs() {
console.log('timeOutWs');
if (ws) {
ws.close();
}
isWsActive = 0;
document.getElementById('overlayNoWs').style.display = 'block'; /*show*/
}
function createWebSocket() {
if (ws) {
if (ws.readyState == 2) {
wsNoSuccessConnectingCounter++;
/* console.log(wsNoSuccessConnectingCounter); */
if (wsNoSuccessConnectingCounter >= 7) {
console.log('ws still closing, force close');
ws = null;
wsNoSuccessConnectingCounter = 0;
/* fall through */
}
else {
return;
}
}
else if (ws.readyState == 0) {
wsNoSuccessConnectingCounter++;
/*console.log(wsNoSuccessConnectingCounter); */
if (wsNoSuccessConnectingCounter >= 14) {
console.log('ws still connecting, retry');
ws.close();
wsNoSuccessConnectingCounter = 0;
}
return;
}
else {
return;
}
}
wsNoSuccessConnectingCounter = 0;
ws = new WebSocket('ws://' + location.hostname + ':81/',['arduino']);
ws.onopen = function() {
wsConnectCounter++;
console.log('ws onopen');
isWsActive = 1;
document.getElementById('overlayNoWs').style.display = 'none'; /*hide*/
wsTimeout = setTimeout(timeOutWs, 6000);
wsNoSuccessConnectingCounter = 0;
/*theTerminal.value += 'ws' + wsConnectCounter + ' connected\n';
theTerminal.scrollTop = theTerminal.scrollHeight;*/
}
;
ws.onclose = function(event) {
console.log('ws.onclose');
clearTimeout(wsTimeout);
isWsActive = 0;
}
;
ws.onmessage = function(e) {
clearTimeout(wsTimeout);
wsTimeout = setTimeout(timeOutWs, 2700);
isWsActive = 1;
if (e.data[0] != '#') {
queuedText += e.data;
dataQueued += e.data.length;
/*console.log(queuedText);
console.log(dataQueued);*/
if (dataQueued >= 70000) {
theTerminal.value = '';
dataQueued = 0;
}
} else {
var presetId = e.data[1];
var activePresetButton = document.getElementById(presetId);
if (activePresetButton) {
var presetButtonList = document.getElementsByClassName('button preset');
/* for (let button of presetButtonList) { .. } */
[].forEach.call(presetButtonList, function(button) {
if (button !== activePresetButton) {
button.classList.remove('active');
} else {
button.classList.add('active');
}
});
}
var slotId = '1' + e.data[2];
var activeSlotButton = document.getElementById(slotId);
if (activeSlotButton) {
var slotButtonList = document.getElementsByClassName('button slot');
[].forEach.call(slotButtonList, function(button) {
if (button !== activeSlotButton) {
button.classList.remove('active');
} else {
button.classList.add('active');
}
});
}
if (e.data[3] && e.data[4] && e.data[5]) {
var optionByte0 = e.data[3].charCodeAt(0);
var optionByte1 = e.data[4].charCodeAt(0);
var optionByte2 = e.data[5].charCodeAt(0);
var optionButtonList = document.getElementsByClassName('button option');
[].forEach.call(optionButtonList, function(button) {
/* optionByte0 */
if (button.classList.contains('adcAutoGain')) {
if ((optionByte0 & 0x01) == 0x01) {
button.classList.add('active');
} else {
button.classList.remove('active');
}
} else if (button.classList.contains('scanlines')) {
if ((optionByte0 & 0x02) == 0x02) {
button.classList.add('active');
} else {
button.classList.remove('active');
}
} else if (button.classList.contains('vdsLineFilter')) {
if ((optionByte0 & 0x04) == 0x04) {
button.classList.add('active');
} else {
button.classList.remove('active');
}
} else if (button.classList.contains('peaking')) {
if ((optionByte0 & 0x08) == 0x08) {
button.classList.add('active');
} else {
button.classList.remove('active');
}
} else if (button.classList.contains('palForce60')) {
if ((optionByte0 & 0x10) == 0x10) {
button.classList.add('active');
} else {
button.classList.remove('active');
}
} else if (button.classList.contains('wantOutputComponent')) {
if ((optionByte0 & 0x20) == 0x20) {
button.classList.add('active');
} else {
button.classList.remove('active');
}
}
/* optionByte1 */
if (button.classList.contains('matched')) {
if ((optionByte1 & 0x01) == 0x01) {
button.classList.add('active');
} else {
button.classList.remove('active');
}
}
if (button.classList.contains('frameTimeLock')) {
if ((optionByte1 & 0x02) == 0x02) {
button.classList.add('active');
} else {
button.classList.remove('active');
}
}
if (button.classList.contains('motionAdaptive')) {
if ((optionByte1 & 0x04) == 0x04) {
button.classList.remove('active');
} else {
button.classList.add('active');
}
}
/* inverse of motionAdaptive, 1=bob*/
if (button.classList.contains('bob')) {
if ((optionByte1 & 0x04) == 0x04) {
button.classList.add('active');
} else {
button.classList.remove('active');
}
}
if (button.classList.contains('tap6')) {
if ((optionByte1 & 0x08) == 0x08) {
button.classList.add('active');
} else {
button.classList.remove('active');
}
}
if (button.classList.contains('step')) {
if ((optionByte1 & 0x10) == 0x10) {
button.classList.add('active');
} else {
button.classList.remove('active');
}
}
if (button.classList.contains('fullHeight')) {
if ((optionByte1 & 0x20) == 0x20) {
button.classList.add('active');
} else {
button.classList.remove('active');
}
}
/* optionByte2 */
if (button.classList.contains('enableCalibrationADC')) {
if ((optionByte2 & 0x01) == 0x01) {
button.classList.add('active');
} else {
button.classList.remove('active');
}
}
if (button.classList.contains('preferScalingRgbhv')) {
if ((optionByte2 & 0x02) == 0x02) {
button.classList.add('active');
} else {
button.classList.remove('active');
}
}
});
}
}
}
;
}
</script>
</head>
<body>
<div class="div1">
<button class="btn-h" onclick="content1()">Presets</button>
<button class="btn-h" onclick="content2()">Picture Control</button>
<button class="btn-h" onclick="content3()">Enhancements</button>
<button class="btn-h" onclick="content5()">Preferences</button>
<button class="btn-h" onclick="content6()">Development</button>
<button class="btn-h" onclick="content7()">System</button>
</div>
<div class="div2" id="display"></div>
<div id="overlayNoWs"></div>
<div class="div3" id="terminal">
<form>
<textarea id='outputTextArea' readonly></textarea>
</form>
</div>
</body>
</html>