From 33cf35578503ff70a6daef67897e9357763eff94 Mon Sep 17 00:00:00 2001 From: yoannmultigaming Date: Fri, 20 Nov 2026 00:29:15 +0100 Subject: [PATCH] APmanageur Wi-Fi V1.0 --- index.html | 211 ++++++++++++++++++----- jeux/dino.html | 425 ++++++++++++++++++++++++++++++++-------------- jeux/tetris.html | 214 +++++++++++++++++------ jeux/zipline.html | 241 +++++++++++++++++++++----- 4 files changed, 825 insertions(+), 266 deletions(-) diff --git a/index.html b/index.html index c76fbf4..a57e058 100644 --- a/index.html +++ b/index.html @@ -443,74 +443,162 @@ } /* Boutons de sélection du fournisseur de stockage distant */ - .backup-prov-btn { + .backup-prov-btn, + button.backup-prov-btn { background: var(--panel2) !important; border: 1px solid var(--line) !important; - color: var(--text) !important; + color: #ffffff !important; transition: all .15s ease; user-select: none; } - .backup-prov-btn span { - color: inherit !important; + .backup-prov-btn span, + button.backup-prov-btn span { + color: #ffffff !important; } - .backup-prov-btn:hover:not(.active) { + .backup-prov-btn:hover:not(.active), + button.backup-prov-btn:hover:not(.active) { background: var(--panel) !important; border-color: var(--blue) !important; - color: var(--text) !important; + color: #ffffff !important; } - .backup-prov-btn.active { + .backup-prov-btn.active, + button.backup-prov-btn.active { border: 2px solid var(--blue) !important; box-shadow: 0 0 0 1px var(--blue) !important; font-weight: 700 !important; - background: rgba(92, 167, 255, 0.22) !important; + background: rgba(92, 167, 255, 0.28) !important; color: #ffffff !important; } - .backup-prov-btn.active span { - color: inherit !important; + .backup-prov-btn.active span, + button.backup-prov-btn.active span { + color: #ffffff !important; } - /* Adaptation pour les thèmes clairs (Light, Windows XP, macOS Clair) */ + /* Thème Clair */ html[data-theme="light"] .backup-prov-btn, - html[data-theme="winxp"] .backup-prov-btn, - html[data-theme="macos"][data-macos-mode="light"] .backup-prov-btn, - html[data-theme="macos"]:not([data-macos-mode="dark"]) .backup-prov-btn { - background: var(--panel2) !important; - border-color: var(--line) !important; - color: var(--text) !important; + html[data-theme="light"] button.backup-prov-btn { + background: #f0f2f5 !important; + border-color: #d1d5db !important; + color: #111827 !important; } html[data-theme="light"] .backup-prov-btn span, - html[data-theme="winxp"] .backup-prov-btn span, - html[data-theme="macos"][data-macos-mode="light"] .backup-prov-btn span, - html[data-theme="macos"]:not([data-macos-mode="dark"]) .backup-prov-btn span { - color: var(--text) !important; + html[data-theme="light"] button.backup-prov-btn span { + color: #111827 !important; } html[data-theme="light"] .backup-prov-btn.active, - html[data-theme="winxp"] .backup-prov-btn.active, - html[data-theme="macos"][data-macos-mode="light"] .backup-prov-btn.active, - html[data-theme="macos"]:not([data-macos-mode="dark"]) .backup-prov-btn.active { - background: rgba(30, 110, 240, 0.12) !important; + html[data-theme="light"] button.backup-prov-btn.active { + background: var(--blue) !important; border-color: var(--blue) !important; - color: var(--blue) !important; + color: #ffffff !important; } html[data-theme="light"] .backup-prov-btn.active span, + html[data-theme="light"] button.backup-prov-btn.active span { + color: #ffffff !important; + } + + /* Thème Windows XP */ + html[data-theme="winxp"] .backup-prov-btn, + html[data-theme="winxp"] button.backup-prov-btn { + background: #ece9d8 !important; + border-color: #7f9db9 !important; + color: #000000 !important; + } + html[data-theme="winxp"] .backup-prov-btn span, + html[data-theme="winxp"] button.backup-prov-btn span { + color: #000000 !important; + } + html[data-theme="winxp"] .backup-prov-btn.active, + html[data-theme="winxp"] button.backup-prov-btn.active { + background: #0a246a !important; + border-color: #0a246a !important; + color: #ffffff !important; + } html[data-theme="winxp"] .backup-prov-btn.active span, - html[data-theme="macos"][data-macos-mode="light"] .backup-prov-btn.active span, - html[data-theme="macos"]:not([data-macos-mode="dark"]) .backup-prov-btn.active span { - color: var(--blue) !important; + html[data-theme="winxp"] button.backup-prov-btn.active span { + color: #ffffff !important; + } + + /* Thème macOS (Clair & Sombre) */ + html[data-theme="macos"][data-macos-mode="light"] .backup-prov-btn, + html[data-theme="macos"]:not([data-macos-mode="dark"]) .backup-prov-btn, + html[data-theme="macos"][data-macos-mode="light"] button.backup-prov-btn, + html[data-theme="macos"]:not([data-macos-mode="dark"]) button.backup-prov-btn { + background: #f2f2f7 !important; + border-color: rgba(0, 0, 0, 0.12) !important; + color: #1d1d1f !important; + } + html[data-theme="macos"][data-macos-mode="light"] .backup-prov-btn span, + html[data-theme="macos"]:not([data-macos-mode="dark"]) .backup-prov-btn span, + html[data-theme="macos"][data-macos-mode="light"] button.backup-prov-btn span, + html[data-theme="macos"]:not([data-macos-mode="dark"]) button.backup-prov-btn span { + color: #1d1d1f !important; + } + html[data-theme="macos"][data-macos-mode="dark"] .backup-prov-btn, + html[data-theme="macos"][data-macos-mode="dark"] button.backup-prov-btn { + background: rgba(255, 255, 255, 0.08) !important; + border-color: rgba(255, 255, 255, 0.15) !important; + color: #ffffff !important; + } + html[data-theme="macos"][data-macos-mode="dark"] .backup-prov-btn span, + html[data-theme="macos"][data-macos-mode="dark"] button.backup-prov-btn span { + color: #ffffff !important; + } + html[data-theme="macos"] .backup-prov-btn.active, + html[data-theme="macos"] button.backup-prov-btn.active { + background: #0071e3 !important; + border-color: #0071e3 !important; + color: #ffffff !important; + } + html[data-theme="macos"] .backup-prov-btn.active span, + html[data-theme="macos"] button.backup-prov-btn.active span { + color: #ffffff !important; } /* Thème Hacker */ - html[data-theme="hacker"] .backup-prov-btn.active { - background: rgba(0, 255, 65, 0.25) !important; - border-color: #00ff41 !important; + html[data-theme="hacker"] .backup-prov-btn, + html[data-theme="hacker"] button.backup-prov-btn { + background: #020a04 !important; + border-color: rgba(0, 255, 65, 0.3) !important; color: #00ff41 !important; } + html[data-theme="hacker"] .backup-prov-btn span, + html[data-theme="hacker"] button.backup-prov-btn span { + color: #00ff41 !important; + } + html[data-theme="hacker"] .backup-prov-btn.active, + html[data-theme="hacker"] button.backup-prov-btn.active { + background: rgba(0, 255, 65, 0.25) !important; + border-color: #00ff41 !important; + box-shadow: 0 0 10px rgba(0, 255, 65, 0.4) !important; + color: #ffffff !important; + } + html[data-theme="hacker"] .backup-prov-btn.active span, + html[data-theme="hacker"] button.backup-prov-btn.active span { + color: #ffffff !important; + } + /* Thème Futuriste */ - html[data-theme="futuristic"] .backup-prov-btn.active { - background: rgba(0, 240, 255, 0.22) !important; - border-color: #00f0ff !important; + html[data-theme="futuristic"] .backup-prov-btn, + html[data-theme="futuristic"] button.backup-prov-btn { + background: rgba(8, 20, 44, 0.8) !important; + border-color: rgba(0, 240, 255, 0.3) !important; color: #e6f6ff !important; } + html[data-theme="futuristic"] .backup-prov-btn span, + html[data-theme="futuristic"] button.backup-prov-btn span { + color: #e6f6ff !important; + } + html[data-theme="futuristic"] .backup-prov-btn.active, + html[data-theme="futuristic"] button.backup-prov-btn.active { + background: rgba(0, 240, 255, 0.28) !important; + border-color: #00f0ff !important; + box-shadow: 0 0 10px rgba(0, 240, 255, 0.35) !important; + color: #ffffff !important; + } + html[data-theme="futuristic"] .backup-prov-btn.active span, + html[data-theme="futuristic"] button.backup-prov-btn.active span { + color: #ffffff !important; + } /* Boutons de sélection de jeu Easter Egg */ .game-switch-btn.active { @@ -5195,27 +5283,27 @@
- - - - - - -
@@ -8214,7 +8302,8 @@ ${vpnBadgeTopo} // $ est défini globalement en haut du script let themePref = localStorage.getItem('apTheme') || 'dark'; const themeMedia = window.matchMedia('(prefers-color-scheme: light)'); function applyTheme() { - document.documentElement.dataset.theme = themePref === 'auto' ? (themeMedia.matches ? 'light' : 'dark') : themePref; + const activeTheme = themePref === 'auto' ? (themeMedia.matches ? 'light' : 'dark') : themePref; + document.documentElement.dataset.theme = activeTheme; if (themePref === 'macos') { document.documentElement.dataset.macosMode = themeMedia.matches ? 'light' : 'dark'; } else { @@ -8222,6 +8311,17 @@ ${vpnBadgeTopo} } const s = document.getElementById('themeSelect'); if (s) s.value = themePref; if (typeof renderStatsChart === 'function' && statsDataCache) renderStatsChart(currentStatsRange, true); + // Synchroniser le thème avec le jeu d'arcade Easter Egg (si ouvert) + try { + const iframe = document.getElementById('easterEggGameIframe'); + if (iframe && iframe.contentWindow) { + iframe.contentWindow.postMessage({ + type: 'themeChange', + theme: activeTheme, + macosMode: document.documentElement.dataset.macosMode || '' + }, '*'); + } + } catch (_) { } } themeMedia.addEventListener('change', () => { if (themePref === 'auto' || themePref === 'macos') applyTheme() }); applyTheme(); @@ -14367,7 +14467,10 @@ ${vpnBadgeTopo} const iframe = $('easterEggGameIframe'); if (iframe) { - iframe.src = '/jeux/' + gameName + '.html'; + const activeTheme = document.documentElement.dataset.theme || 'dark'; + const activeMacosMode = document.documentElement.dataset.macosMode || ''; + const themeQuery = '?theme=' + encodeURIComponent(activeTheme) + (activeMacosMode ? '&macosMode=' + encodeURIComponent(activeMacosMode) : ''); + iframe.src = '/jeux/' + gameName + '.html' + themeQuery; setTimeout(() => { try { iframe.focus(); if (iframe.contentWindow) iframe.contentWindow.focus(); } catch (e) { } }, 150); @@ -14394,6 +14497,26 @@ ${vpnBadgeTopo} if (game) { e.preventDefault(); e.stopPropagation(); + + // 1. Effacer immédiatement la saisie de texte + inputEl.value = ''; + + // 2. Réinitialiser les filtres associés pour ne pas fausser l'affichage du tableau + if (inputEl.id === 'packetFilterInput') { + captureFilter = ''; + capturePage = 1; + document.querySelectorAll('.filter-chip').forEach(c => c.classList.remove('active')); + const allChip = document.querySelector('.filter-chip[data-filter=""]'); + if (allChip) allChip.classList.add('active'); + if (typeof renderCaptureTable === 'function') renderCaptureTable(); + } else if (inputEl.id === 'devicesSearchInput') { + deviceFilter = ''; + if (typeof renderDevicesTable === 'function') renderDevicesTable(); + } else if (inputEl.id === 'vpnClientsSearchInput') { + if (typeof renderVpnClientsTable === 'function') renderVpnClientsTable(); + } + + // 3. Ouvrir l'arcade Easter Egg openEasterEggModal(game); } } diff --git a/jeux/dino.html b/jeux/dino.html index 6aa0b53..3870d24 100644 --- a/jeux/dino.html +++ b/jeux/dino.html @@ -1,15 +1,159 @@ - + T-Rex Dino Runner - AP Manageur @@ -141,6 +290,31 @@