From 329ea4f5c32eee2f100e7d3e8c3e2388957ef96c Mon Sep 17 00:00:00 2001 From: yoannmultigaming Date: Wed, 18 Nov 2026 16:05:03 +0100 Subject: [PATCH] APmanageur Wi-Fi V1.0 --- index.html | 3 +++ setup.html | 52 +++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 42 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index 99d6bf5..b4a1d8b 100644 --- a/index.html +++ b/index.html @@ -12965,6 +12965,9 @@ ${vpnBadgeTopo} sessionStorage.removeItem('apAppStarted'); localStorage.removeItem('apAppStarted'); sessionStorage.removeItem('apVisited'); + localStorage.removeItem('apTheme'); + sessionStorage.removeItem('setupExplicitTheme'); + sessionStorage.removeItem('setupExplicitLang'); clearAuthCookie(); } catch (_) {} await new Promise(resolve => setTimeout(resolve, 600)); diff --git a/setup.html b/setup.html index bd1cb4d..964c632 100644 --- a/setup.html +++ b/setup.html @@ -37,10 +37,11 @@ } } try { - var t = localStorage.getItem('apTheme') || 'auto'; + var explicitTheme = sessionStorage.getItem('setupExplicitTheme'); + var t = explicitTheme || 'auto'; setT(t); window.matchMedia('(prefers-color-scheme: light)').addEventListener('change', function (e) { - var cur = localStorage.getItem('apTheme') || 'auto'; + var cur = sessionStorage.getItem('setupExplicitTheme') || 'auto'; if (cur === 'auto') { document.documentElement.dataset.theme = e.matches ? 'light' : 'dark'; } @@ -2015,31 +2016,31 @@
-
+
🖥️
Auto (Système)
-
+
🌙
Sombre
-
+
☀️
Clair
-
+
🪟
Windows XP
-
+
🚀
Futuriste
-
+
🍏
macOS
-
+
🟩
Hacker
@@ -2048,7 +2049,7 @@ + placeholder="Ex : Wi-Fi Maison" data-i18n-placeholder="step5_app_title_placeholder">