From 3729bb1dda6a31b8edaca68293677bea313e39a2 Mon Sep 17 00:00:00 2001 From: Xayton <30591904+Xayton@users.noreply.github.com> Date: Mon, 29 Apr 2024 18:26:35 +0200 Subject: [PATCH 1/2] Update the home.html file that powers the "Debug Console": - Improved the CSS code and JS code - Added the support for the "show 'list'" options as a select - Add an additional section to show only the "list" commands, when the user selects such option - Fixed the code detecting "list" messages, as it was missing cases where the JSON content had a "Ports" property but its value was null instead of an empty array. --- home.html | 476 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 270 insertions(+), 206 deletions(-) diff --git a/home.html b/home.html index 30c241f22..796dc1a8b 100644 --- a/home.html +++ b/home.html @@ -1,38 +1,53 @@ + -Arduino Create Agent Debug Console - - - - - + + + + #autoscroll, + #list { + vertical-align: middle; + width: 20px; + height: 20px; + } + + + #secondary-controls .button { + margin-bottom: 15px; + vertical-align: top; + height: 36px; + } + + .button { + background-color: #b5c8c9; + border: 1px solid #b5c8c9; + border-radius: 2px 2px 0 0; + box-shadow: 0 4px #95a5a6; + margin-bottom: 4px; + color: #000; + cursor: pointer; + font-size: 14px; + letter-spacing: 1.28px; + line-height: normal; + outline: none; + padding: 9px 18px; + text-align: center; + text-transform: uppercase; + transition: box-shadow .1s ease-out, transform .1s ease-out; + } + + .button:hover { + box-shadow: 0 2px #95a5a6; + outline: none; + transform: translateY(2px); + } + + .button:active { + box-shadow: none; + transform: translateY(4px); + } + + .textfield { + background-color: #dae3e3; + width: auto; + height: auto; + padding: 10px 8px; + margin-left: 8px; + vertical-align: top; + border: none; + font-family: "Open Sans", "Lucida Grande", Lucida, Verdana, sans-serif; + font-size: 1em; + outline: none; + } + - -
+ + +
+

-            
+
+
+
\ No newline at end of file

From 2b3e8ae9b439a8d4913350427b35a5b5569df3a7 Mon Sep 17 00:00:00 2001
From: Xayton <30591904+Xayton@users.noreply.github.com>
Date: Tue, 30 Apr 2024 16:36:10 +0200
Subject: [PATCH 2/2] The Debug Console is now jQuery-free. The code has been
 restructured to be simpler and avoid global variable as much as possible.

---
 home.html | 233 +++++++++++++++++++++++++++++-------------------------
 1 file changed, 127 insertions(+), 106 deletions(-)

diff --git a/home.html b/home.html
index 796dc1a8b..e66b7c975 100644
--- a/home.html
+++ b/home.html
@@ -5,121 +5,64 @@
     Arduino Create Agent Debug Console
     
     
-    
-    
-    
 
+