diff --git a/html/console.html b/html/console.html index 6cb74af..187c8f3 100644 --- a/html/console.html +++ b/html/console.html @@ -39,7 +39,10 @@
Console
-
--- No Content ---
+
+
+
--- No Content ---
+
Console entry
@@ -96,6 +99,12 @@ function(s, st) { showWarning("Error clearing buffer in uC"); } ); }); + + $(".fullscreen-control")[0].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; }, diff --git a/html/log.html b/html/log.html index 884cf20..f4be511 100644 --- a/html/log.html +++ b/html/log.html @@ -1,60 +1,69 @@ -
-
-

Debug Log

-
+
+
+

Debug Log

+
-
-

The debug log shows the most recent characters printed by the esp-link software itself to - its own debug log.

-
-

- Refresh -  Reset esp-link -

-

- UART debug log: - auto - off - on uart0 - on uart1 -

-
+
+

The debug log shows the most recent characters printed by the esp-link software itself to + its own debug log.

+
+

+ Refresh +  Reset esp-link +

+

+ UART debug log: + auto + off + on uart0 + on uart1 +

+
+
+

     
+
diff --git a/html/style.css b/html/style.css index 1bb11cd..acc6f36 100644 --- a/html/style.css +++ b/html/style.css @@ -69,7 +69,7 @@ a:hover { } .click-to-edit span:active, .click-to-edit div:active { box-shadow: 0 0 0 1px rgba(0,0,0, 0.15) inset, 0 0 6px rgba(0,0,0, 0.20) inset; - border-color: #000\9; + border-color: #000; } /* Firefox: Get rid of the inner focus border */ .click-to-edit span::-moz-focus-inner, @@ -248,14 +248,59 @@ input.inline { margin-left: 0.5em; } +/* Console fullscreen */ +.fullscreen-box { + position: relative; +} + +.fullscreen-box.full { + position: fixed; + height: 100vh; + width: 100vw; + left: 0; + top: 0; + z-index: 1001; +} + +.fullscreen-box > .fullscreen-control { + position: absolute; + border-radius: 2px; + top: 16px; + right: 16px; + width: 1em; + height: 1em; + text-align: center; + background: #00000025; + padding: 15px; + line-height: 1em; + color: #fff; + cursor: pointer; +} + +.fullscreen-box > .fullscreen-control::before { + content: "F"; +} + +.fullscreen-box.full > .fullscreen-control::before { + content: "X"; +} + +.fullscreen-box > pre.console { + height: 500px; +} + +.fullscreen-box.full > pre.console { + height: 100vh; +} + /* Text console */ pre.console { + box-sizing: border-box; background-color: #663300; border-radius: 5px; border: 0px solid #000000; color: #66ff66; padding: 5px; - overflow: scroll; margin: 0px; }