From 309abedc026dcb621d8efa63f2170c8fd8db16a9 Mon Sep 17 00:00:00 2001 From: Gitai Date: Tue, 17 Mar 2020 17:56:08 +0800 Subject: [PATCH] Update console.html Add Fullscreen box and control elements. --- html/console.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/html/console.html b/html/console.html index 6cb74af..03444b9 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").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; },