APmanageur Wi-Fi V1.0

This commit is contained in:
yoannmultigaming committed 2026-11-20 17:07:52 +01:00
1 parent 9195d18a39
commit 28ed3eb8ae
1 file changed
+20 -5
+20 -5
View File
@@ -6277,7 +6277,7 @@
<!-- 10. Modal Easter Egg Arcade Games (Tetris, Dino, Zipline) -->
<div id="modalEasterEggGames" class="modal-overlay" style="z-index:99999">
<div class="modal-card" style="max-width:680px;width:95%;max-height:94vh;display:flex;flex-direction:column;padding:0;overflow:hidden;border:1px solid var(--blue);box-shadow:0 0 35px rgba(92,167,255,0.25);border-radius:14px">
<div id="modalEasterEggCard" class="modal-card" style="max-width:490px;width:95%;max-height:94vh;display:flex;flex-direction:column;padding:0;overflow:hidden;border:1px solid var(--blue);box-shadow:0 0 35px rgba(92,167,255,0.25);border-radius:14px;transition:max-width 0.25s cubic-bezier(0.4,0,0.2,1)">
<div class="modal-header" style="padding:10px 16px;background:var(--panel2);border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:8px">
<!-- Ligne du haut : Titre à gauche, Croix de fermeture tout en haut à droite -->
<div style="display:flex;align-items:center;justify-content:space-between;width:100%">
@@ -6301,8 +6301,8 @@
<button type="button" id="btnEggGame_2048" class="game-switch-btn" onclick="switchEasterEggGame('2048')" style="padding:4px 9px;font-size:11px;border-radius:6px;display:inline-flex;align-items:center;gap:4px">🔢 <span>2048</span></button>
</div>
</div>
<div class="modal-body" style="padding:0;flex:1;background:var(--bg,#071326);display:flex;justify-content:center;align-items:center;min-height:530px">
<iframe id="easterEggGameIframe" src="" style="width:100%;height:530px;border:0;display:block" title="Easter Egg Game" allow="autoplay"></iframe>
<div class="modal-body" style="padding:0;flex:1;background:var(--bg,#071326);display:flex;justify-content:center;align-items:center;min-height:300px">
<iframe id="easterEggGameIframe" src="" style="width:100%;height:520px;border:0;display:block;transition:height 0.25s cubic-bezier(0.4,0,0.2,1)" title="Easter Egg Game" allow="autoplay"></iframe>
</div>
</div>
</div>
@@ -9109,8 +9109,6 @@ ${vpnBadgeTopo}
}
function setBwPreset(downMbps, upMbps) {
if ($('inputRateDown')) $('inputRateDown').value = downMbps;
if ($('selectRateDownUnit')) $('selectRateDownUnit').value = 'Mbps';
if ($('inputRateUp')) $('inputRateUp').value = upMbps;
if ($('selectRateUpUnit')) $('selectRateUpUnit').value = 'Mbps';
}
@@ -14476,11 +14474,27 @@ ${vpnBadgeTopo}
if (iframe) iframe.src = '';
};
const GAME_DIMENSIONS = {
tetris: { maxWidth: '490px', height: '520px' },
dino: { maxWidth: '690px', height: '360px' },
zipline: { maxWidth: '470px', height: '500px' },
demineur: { maxWidth: '560px', height: '530px' },
pacman: { maxWidth: '460px', height: '510px' },
spaceinvaders: { maxWidth: '550px', height: '540px' },
'2048': { maxWidth: '440px', height: '500px' }
};
window.switchEasterEggGame = function (gameName) {
currentEasterEggGame = gameName;
const validGames = ['tetris', 'dino', 'zipline', 'demineur', 'pacman', 'spaceinvaders', '2048'];
if (!validGames.includes(gameName)) gameName = 'tetris';
const dim = GAME_DIMENSIONS[gameName] || GAME_DIMENSIONS.tetris;
const card = $('modalEasterEggCard') || document.querySelector('#modalEasterEggGames .modal-card');
if (card) {
card.style.maxWidth = dim.maxWidth;
}
document.querySelectorAll('.game-switch-btn').forEach(btn => {
const isActive = (btn.id === 'btnEggGame_' + gameName);
btn.classList.toggle('active', isActive);
@@ -14501,6 +14515,7 @@ ${vpnBadgeTopo}
const iframe = $('easterEggGameIframe');
if (iframe) {
iframe.style.height = dim.height;
const activeTheme = document.documentElement.dataset.theme || 'dark';
const activeMacosMode = document.documentElement.dataset.macosMode || '';
const activeLang = (typeof currentLanguage !== 'undefined' ? currentLanguage : (document.documentElement.lang || 'fr'));