|
|
|
@ -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, |
|
|
|
|