Update log.html

Fullscreen for log
pull/485/head
Gitai 5 years ago committed by GitHub
parent 2729d64d3b
commit 219e66ee4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      html/log.html

@ -19,10 +19,13 @@
<a id="dbg-on1" class="dbg-btn pure-button" href="#">on uart1</a>
</p>
</div>
<div class="fullscreen-box">
<div class="fullscreen-control"></div>
<pre id="console" class="console" style="margin-top: 0px;"></pre>
</div>
</div>
</div>
</div>
<script type="text/javascript">console_url = "/log/text"</script>
<script src="console.js"></script>
@ -45,6 +48,12 @@
);
});
$(".fullscreen-control")[0].addEventListener("click", function(e) {
e.preventDefault();
var fbc = this.parentNode.classList;
fbc[fbc.contains("full") ? "remove" : "add"].call(fbc, "full");
});
["auto", "off", "on0", "on1"].forEach(function(mode) {
bnd($('#dbg-'+mode), "click", function(el) {
ajaxJsonSpin('POST', "/log/dbg?mode="+mode,

Loading…
Cancel
Save