From 06fb37ee580f7cef47faa238cca0440760407628 Mon Sep 17 00:00:00 2001 From: Damian-I Date: Sat, 8 Mar 2025 22:03:24 +0000 Subject: [PATCH 1/3] Made the UI mroe consistent to the others --- index.html | 564 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 563 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 252a6d8..e203bc3 100644 --- a/index.html +++ b/index.html @@ -681,6 +681,220 @@ .bluetooth-device:hover .bluetooth-pair-button { pointer-events: auto; } + + /* Biometrics Panel */ + #biometrics-panel { + position: fixed; + bottom: 80px; + right: 160px; + width: 350px; + max-height: 500px; + background-color: rgba(0, 0, 0, 0.9); + color: white; + border-radius: 5px; + box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5); + z-index: 1999; + font-family: Arial, sans-serif; + display: none; + overflow: hidden; + transition: all 0.3s ease; + border: 1px solid #444; + } + + #biometrics-header { + background-color: #222; + padding: 12px 15px; + display: flex; + justify-content: space-between; + align-items: center; + border-bottom: 1px solid #444; + } + + #biometrics-title { + font-weight: bold; + font-size: 18px; + color: #e74c3c; + } + + #biometrics-close { + cursor: pointer; + font-size: 18px; + color: #aaa; + transition: color 0.2s; + } + + #biometrics-close:hover { + color: white; + } + + #biometrics-search-container { + padding: 10px 15px; + background-color: #333; + border-bottom: 1px solid #444; + } + + #biometrics-search { + width: 100%; + padding: 8px 10px; + border: none; + border-radius: 3px; + background-color: #222; + color: white; + font-size: 14px; + } + + #biometrics-search:focus { + outline: none; + box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.5); + } + + #biometrics-categories { + display: flex; + padding: 5px 15px; + background-color: #2c2c2c; + border-bottom: 1px solid #444; + } + + .biometrics-category { + padding: 5px 10px; + margin-right: 5px; + cursor: pointer; + border-radius: 3px; + font-size: 12px; + transition: all 0.2s; + } + + .biometrics-category.active { + background-color: #e74c3c; + color: white; + } + + .biometrics-category:hover:not(.active) { + background-color: #444; + } + + #biometrics-content { + padding: 15px; + overflow-y: auto; + max-height: 350px; + } + + .biometric-sample { + margin-bottom: 15px; + padding-bottom: 15px; + border-bottom: 1px solid #444; + cursor: pointer; + transition: background-color 0.2s; + padding: 10px; + border-radius: 3px; + } + + .biometric-sample:hover { + background-color: #333; + } + + .biometric-sample:last-child { + margin-bottom: 0; + padding-bottom: 0; + border-bottom: none; + } + + .biometric-sample-name { + font-weight: bold; + margin-bottom: 5px; + font-size: 14px; + color: #e74c3c; + display: flex; + justify-content: space-between; + align-items: center; + } + + .biometric-sample-icons { + display: flex; + gap: 5px; + } + + .biometric-sample-icon { + font-size: 12px; + color: #aaa; + } + + .biometric-sample-details { + font-size: 13px; + line-height: 1.4; + white-space: pre-wrap; + max-height: 80px; + overflow: hidden; + transition: max-height 0.3s; + } + + .biometric-sample.expanded .biometric-sample-details { + max-height: 1000px; + } + + .biometric-sample-timestamp { + font-size: 11px; + color: #888; + margin-top: 5px; + text-align: right; + } + + .biometric-quality-bar { + width: 100%; + height: 5px; + background: #333; + margin-top: 8px; + border-radius: 2px; + margin-bottom: 8px; + } + + .biometric-quality-fill { + height: 100%; + border-radius: 2px; + transition: width 0.3s ease; + } + + #biometrics-toggle { + position: fixed; + bottom: 20px; + right: 160px; + width: 60px; + height: 60px; + background-color: #e74c3c; + color: white; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); + z-index: 1998; + font-size: 28px; + transition: all 0.3s ease; + } + + #biometrics-toggle:hover { + background-color: #c0392b; + transform: scale(1.1); + } + + #biometrics-count { + position: absolute; + top: 0; + right: 0; + background-color: #c0392b; + color: white; + border-radius: 50%; + width: 22px; + height: 22px; + font-size: 12px; + display: none; + justify-content: center; + align-items: center; + font-weight: bold; + } + + /* Rest of existing styles follow */ @@ -734,6 +948,27 @@ 📡
0
+ + +
+
+
Biometric Samples
+
×
+
+
+ +
+
+
All
+
Fingerprints
+
Spoofed
+
+
+
+ \ No newline at end of file From 2c359fc46fbdccfc7b346a2569036db0b6153190 Mon Sep 17 00:00:00 2001 From: Damian-I Date: Sun, 9 Mar 2025 00:07:56 +0000 Subject: [PATCH 2/3] Refactor toggle buttons layout and add container for better UI organization --- index.html | 82 +++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 62 insertions(+), 20 deletions(-) diff --git a/index.html b/index.html index e203bc3..9f47632 100644 --- a/index.html +++ b/index.html @@ -266,9 +266,7 @@ } #notes-toggle { - position: fixed; - bottom: 20px; - right: 20px; + position: relative; width: 60px; height: 60px; background-color: #3498db; @@ -282,6 +280,7 @@ z-index: 1998; font-size: 28px; transition: all 0.3s ease; + margin-left: 10px; } #notes-toggle:hover { @@ -585,9 +584,7 @@ } #bluetooth-toggle { - position: fixed; - bottom: 20px; - right: 90px; + position: relative; width: 60px; height: 60px; background-color: #9b59b6; @@ -601,6 +598,7 @@ z-index: 1998; font-size: 28px; transition: all 0.3s ease; + margin-left: 10px; } #bluetooth-toggle:hover { @@ -855,9 +853,7 @@ } #biometrics-toggle { - position: fixed; - bottom: 20px; - right: 160px; + position: relative; width: 60px; height: 60px; background-color: #e74c3c; @@ -871,6 +867,7 @@ z-index: 1998; font-size: 28px; transition: all 0.3s ease; + margin-left: 10px; } #biometrics-toggle:hover { @@ -895,6 +892,27 @@ } /* Rest of existing styles follow */ + .biometric-sample-timestamp { + font-size: 11px; + color: #888; + margin-top: 5px; + text-align: right; + } + + /* Toggle Buttons Container */ + #toggle-buttons-container { + position: fixed; + bottom: 20px; + right: 20px; + display: flex; + flex-direction: row-reverse; + z-index: 1998; + } + + /* Game container */ + #game-container { + position: relative; + } @@ -923,9 +941,21 @@
-
- 📝 -
0
+ + +
+
+ 📝 +
0
+
+ +
@@ -944,10 +974,6 @@
-
@@ -965,10 +991,6 @@
- \ No newline at end of file From 538bfd2b6815871be710216bac51b8232ec7812b Mon Sep 17 00:00:00 2001 From: Damian-I Date: Sun, 9 Mar 2025 00:19:56 +0000 Subject: [PATCH 3/3] Add null checks to toggle button initialization to prevent errors --- index.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 9f47632..3754c5f 100644 --- a/index.html +++ b/index.html @@ -6406,15 +6406,21 @@ function initializeToggleButtons() { // Set up notes toggle button const notesToggle = document.getElementById('notes-toggle'); - notesToggle.addEventListener('click', toggleNotesPanel); + if (notesToggle) { + notesToggle.addEventListener('click', toggleNotesPanel); + } // Set up bluetooth toggle button const bluetoothToggle = document.getElementById('bluetooth-toggle'); - bluetoothToggle.addEventListener('click', toggleBluetoothPanel); + if (bluetoothToggle) { + bluetoothToggle.addEventListener('click', toggleBluetoothPanel); + } // Set up biometrics toggle button const biometricsToggle = document.getElementById('biometrics-toggle'); - biometricsToggle.addEventListener('click', toggleBiometricsPanel); + if (biometricsToggle) { + biometricsToggle.addEventListener('click', toggleBiometricsPanel); + } } // Call the initialization function when the game starts