-
WebRTC Magic
-
-
-
-
+
-
+
+
diff --git a/www/log.html b/www/log.html
index 84ec0675..67476603 100644
--- a/www/log.html
+++ b/www/log.html
@@ -1,69 +1,64 @@
+
+
go2rtc - Logs
-
-
+
-
-
-
-
-
-
-
-
-
- | Time |
- Level |
- Message |
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ | Time |
+ Level |
+ Message |
+
+
+
+
+
+
+
+
diff --git a/www/main.js b/www/main.js
index 714c9127..36b04495 100644
--- a/www/main.js
+++ b/www/main.js
@@ -1,200 +1,134 @@
-// main menu
-document.body.innerHTML = `
+document.head.innerHTML += `
-
+`;
+
+document.body.innerHTML = `
+
` + document.body.innerHTML;
-
-const sunIcon = '☀️';
-const moonIcon = '🌕';
-
-document.addEventListener('DOMContentLoaded', () => {
- const darkModeToggle = document.getElementById('darkModeToggle');
- const prefersDarkScheme = window.matchMedia('(prefers-color-scheme: dark)');
-
- const isDarkModeEnabled = () => document.body.classList.contains('dark-mode');
-
- // Update the toggle button based on the dark mode state
- const updateToggleButton = () => {
- if (isDarkModeEnabled()) {
- darkModeToggle.innerHTML = sunIcon;
- darkModeToggle.setAttribute('aria-label', 'Enable light mode');
- } else {
- darkModeToggle.innerHTML = moonIcon;
- darkModeToggle.setAttribute('aria-label', 'Enable dark mode');
- }
- };
-
- const updateDarkMode = () => {
- if (localStorage.getItem('darkMode') === 'enabled' || prefersDarkScheme.matches && localStorage.getItem('darkMode') !== 'disabled') {
- document.body.classList.add('dark-mode');
- } else {
- document.body.classList.remove('dark-mode');
- }
- updateEditorTheme();
- updateToggleButton();
- };
-
- // Update the editor theme based on the dark mode state
- const updateEditorTheme = () => {
- if (typeof editor !== 'undefined') {
- editor.setTheme(isDarkModeEnabled() ? 'ace/theme/tomorrow_night_eighties' : 'ace/theme/github');
- }
- };
-
- // Initial update for dark mode and toggle button
- updateDarkMode();
-
- // Listen for changes in the system's color scheme preference
- prefersDarkScheme.addEventListener('change', updateDarkMode); // Modern approach
-
- // Toggle dark mode and update local storage on button click
- darkModeToggle.addEventListener('click', () => {
- const enabled = document.body.classList.toggle('dark-mode');
- localStorage.setItem('darkMode', enabled ? 'enabled' : 'disabled');
- updateToggleButton(); // Update the button after toggling
- updateEditorTheme();
- });
-});
diff --git a/www/network.html b/www/net.html
similarity index 87%
rename from www/network.html
rename to www/net.html
index 79875012..8f0f91ac 100644
--- a/www/network.html
+++ b/www/net.html
@@ -2,31 +2,21 @@
+
go2rtc - Network
-
+
+
+
+
+