DISCLAIMER
@@ -1910,24 +1899,21 @@
const welcome = document.getElementById('welcomePage');
welcome.classList.add('fade-out');
- // After fade out, hide welcome and switch to mode
+ // After fade out, hide welcome and show disclaimer if needed
setTimeout(() => {
welcome.style.display = 'none';
- switchMode(mode);
+ checkDisclaimer();
}, 400);
}
- // Disclaimer handling - called on page load
+ // Disclaimer handling
function checkDisclaimer() {
const accepted = localStorage.getItem('disclaimerAccepted');
if (accepted === 'true') {
- // Already accepted - ensure welcome page is shown, disclaimer hidden
- document.documentElement.classList.remove('disclaimer-pending');
document.getElementById('disclaimerModal').style.display = 'none';
- document.getElementById('welcomePage').style.display = '';
+ // Switch to the selected mode
+ switchMode(selectedStartMode);
} else {
- // Not accepted - show disclaimer, hide welcome page
- document.documentElement.classList.add('disclaimer-pending');
document.getElementById('disclaimerModal').style.display = 'flex';
}
}
@@ -1935,13 +1921,9 @@
function acceptDisclaimer() {
localStorage.setItem('disclaimerAccepted', 'true');
document.getElementById('disclaimerModal').classList.add('disclaimer-hidden');
-
- // Remove pending class and show welcome page after disclaimer fades out
+ // Switch to the selected mode after accepting
setTimeout(() => {
- document.documentElement.classList.remove('disclaimer-pending');
- document.getElementById('disclaimerModal').style.display = 'none';
- document.getElementById('welcomePage').style.display = '';
- document.getElementById('welcomePage').classList.remove('fade-out');
+ switchMode(selectedStartMode);
}, 300);
}
@@ -1950,29 +1932,7 @@
document.getElementById('rejectionPage').classList.remove('disclaimer-hidden');
}
- // Check disclaimer on DOMContentLoaded
- document.addEventListener('DOMContentLoaded', function() {
- checkDisclaimer();
-
- // Handle URL parameters for settings/help (from dashboard utility bar)
- const urlParams = new URLSearchParams(window.location.search);
- if (urlParams.get('settings') === 'open') {
- // Wait for page to initialize, then open settings
- setTimeout(function() {
- if (typeof showSettings === 'function') showSettings();
- }, 500);
- // Clean up URL
- history.replaceState({}, '', window.location.pathname);
- }
- if (urlParams.get('help') === 'open') {
- // Wait for page to initialize, then open help
- setTimeout(function() {
- if (typeof showHelp === 'function') showHelp();
- }, 500);
- // Clean up URL
- history.replaceState({}, '', window.location.pathname);
- }
- });
+ // Don't auto-check disclaimer - wait for welcome page mode selection
let eventSource = null;
let isRunning = false;
diff --git a/templates/partials/utility-bar.html b/templates/partials/utility-bar.html
deleted file mode 100644
index a26da37..0000000
--- a/templates/partials/utility-bar.html
+++ /dev/null
@@ -1,221 +0,0 @@
-
-
-
-
-
-
diff --git a/templates/satellite_dashboard.html b/templates/satellite_dashboard.html
index b16c5f2..74d56a9 100644
--- a/templates/satellite_dashboard.html
+++ b/templates/satellite_dashboard.html
@@ -22,8 +22,6 @@
- {% include 'partials/utility-bar.html' %}
-