@@ -389,6 +389,11 @@ const homeTemplateHtml = `<!DOCTYPE html>
389
389
link.click();
390
390
});
391
391
392
+ $('#clear').click(function() {
393
+ messages = [];
394
+ log.innerHTML = '';
395
+ });
396
+
392
397
if (window['WebSocket']) {
393
398
if (window.location.protocol === 'https:') {
394
399
socket = io('https://{{$}}')
@@ -440,7 +445,8 @@ body {
440
445
441
446
#footer {
442
447
display: flex;
443
- flex-wrap: wrap;
448
+ flex-wrap: wrap;
449
+ align-items: flex-start;
444
450
justify-content: space-between;
445
451
margin: 0px 15px 0px;
446
452
}
@@ -468,15 +474,17 @@ body {
468
474
}
469
475
470
476
471
- #export {
477
+ #secondary-controls button {
472
478
margin-bottom: 15px;
479
+ vertical-align: top;
473
480
}
474
481
475
482
.button {
476
483
background-color: #b5c8c9;
477
484
border: 1px solid #b5c8c9;
478
485
border-radius: 2px 2px 0 0;
479
486
box-shadow: 0 4px #95a5a6;
487
+ margin-bottom: 4px;
480
488
color: #000;
481
489
cursor: pointer;
482
490
font-size: 14px;
@@ -490,13 +498,13 @@ body {
490
498
}
491
499
492
500
.button:hover {
493
- box-shadow: 0 2px #95a5a6;
501
+ box-shadow: 0 2px #95a5a6;
494
502
outline: none;
495
503
transform: translateY(2px);
496
504
}
497
505
498
506
.button:active {
499
- box-shadow: none;
507
+ box-shadow: none;
500
508
transform: translateY(4px);
501
509
}
502
510
@@ -530,8 +538,9 @@ body {
530
538
</div>
531
539
<div>
532
540
<input name="list" type="checkbox" checked id="list" />
533
- <label for="list">List Command Enabled </label>
541
+ <label for="list">Enable List Command </label>
534
542
</div>
543
+ <button id="clear" class="button">Clear Log</button>
535
544
<button id="export" class="button">Export Log</button>
536
545
</div>
537
546
</div>
0 commit comments