A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol
C arduinobluetoothcan-busdebuggingeepromesp32flipperzerogpiohardware-hackingi2cjtagopenocdprotocolspwmradiorfidspisubghzuartwifi
close littlefs panel for webui if clicked out
Geob7c5f5dd3ddf
diff --git a/webui/index.h b/webui/index.hindex 9ac016b5..69bb94d0 100644--- a/webui/index.h+++ b/webui/index.h@@ -7,6 +7,7 @@ inline const char* index_html = R"rawliteral(<meta charset="UTF-8"><title>ESP32 Bus Pirate</title><link rel="stylesheet" href="/style.css">+ <link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ctext x='50%25' y='50%25' text-anchor='middle' dominant-baseline='central' font-family='sans-serif' font-size='56' font-weight='900' fill='%2300ff00'%3EB%3C/text%3E%3C/svg%3E"><meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover, user-scalable=no"></head><body>diff --git a/webui/scripts.h b/webui/scripts.hindex 3a27a95f..6cddbe02 100644--- a/webui/scripts.h+++ b/webui/scripts.h@@ -12,6 +12,7 @@ let fsTotalBytes = 0;let fsUsedBytes = 0;let isUploading = false;const filePanel = document.getElementById("file-panel");+const filePanelOverlay = document.getElementById("file-panel-overlay");/* =========================WebSocket / Terminal@@ -172,10 +173,15 @@ function isValidCommand(cmd) {/* =========================File Panel========================= */++function onOverlayClick(e) {+ if (e.target === filePanelOverlay && !isUploading) closeFilePanel();+}function openFilePanel() {document.getElementById("file-panel-overlay").style.display = "block";document.getElementById("file-panel").style.display = "flex";+ filePanelOverlay.addEventListener("click", onOverlayClick);refreshFileList();}