Update console.html

Add Fullscreen box and control elements.
pull/485/head
Gitai 5 years ago committed by GitHub
parent cf329e8b84
commit 309abedc02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      html/console.html

@ -39,7 +39,10 @@
<div class="pure-u-1-4"><legend><b>Console</b></legend></div>
<div class="pure-u-3-4"></div>
</div>
<div class="fullscreen-box">
<div class="fullscreen-control"></div>
<pre class="console flex-fill" id="console">--- No Content ---</pre>
</div>
<div>
<div class="pure-g">
<div class="pure-u-1-4"><legend><b>Console entry</b></legend></div>
@ -97,6 +100,12 @@
);
});
$(".fullscreen-control").addEventListener("click", function(e) {
e.preventDefault();
var fbc = this.parentNode.classList;
fbc[fbc.contains("full") ? "remove" : "add"].call(fbc, "full");
});
ajaxJson('GET', "/console/baud",
function(data) { $("#baud-sel").value = data.rate; },
function(s, st) { showNotification(st); }

Loading…
Cancel
Save