APmanageur Wi-Fi V1.0
This commit is contained in:
1 parent
28ed3eb8ae
commit
d87b617a38
7 files changed
+40
-45
No files matched your search
+18
-23
@@ -6277,7 +6277,7 @@
|
|||||||
|
|
||||||
<!-- 10. Modal Easter Egg Arcade Games (Tetris, Dino, Zipline) -->
|
<!-- 10. Modal Easter Egg Arcade Games (Tetris, Dino, Zipline) -->
|
||||||
<div id="modalEasterEggGames" class="modal-overlay" style="z-index:99999">
|
<div id="modalEasterEggGames" class="modal-overlay" style="z-index:99999">
|
||||||
<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 id="modalEasterEggCard" class="modal-card" style="max-width:560px;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">
|
<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 -->
|
<!-- 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%">
|
<div style="display:flex;align-items:center;justify-content:space-between;width:100%">
|
||||||
@@ -6290,19 +6290,19 @@
|
|||||||
</div>
|
</div>
|
||||||
<button type="button" class="secondary" style="padding:3px 9px;font-size:15px;line-height:1;border-radius:6px;cursor:pointer" onclick="closeEasterEggModal()" title="Fermer (Échap)">✕</button>
|
<button type="button" class="secondary" style="padding:3px 9px;font-size:15px;line-height:1;border-radius:6px;cursor:pointer" onclick="closeEasterEggModal()" title="Fermer (Échap)">✕</button>
|
||||||
</div>
|
</div>
|
||||||
<!-- Barre de sélection centrée au milieu -->
|
<!-- Barre de sélection centrée au milieu sur 1 ligne -->
|
||||||
<div style="display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;width:100%">
|
<div style="display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;width:100%">
|
||||||
<button type="button" id="btnEggGame_tetris" class="game-switch-btn active" onclick="switchEasterEggGame('tetris')" style="padding:4px 9px;font-size:11px;border-radius:6px;display:inline-flex;align-items:center;gap:4px">🧱 <span>Tetris</span></button>
|
<button type="button" id="btnEggGame_tetris" class="game-switch-btn active" onclick="switchEasterEggGame('tetris')" style="padding:4px 8px;font-size:11px;border-radius:6px;white-space:nowrap;display:inline-flex;align-items:center;gap:4px">🧱 <span>Tetris</span></button>
|
||||||
<button type="button" id="btnEggGame_dino" class="game-switch-btn" onclick="switchEasterEggGame('dino')" style="padding:4px 9px;font-size:11px;border-radius:6px;display:inline-flex;align-items:center;gap:4px">🦖 <span>Dino</span></button>
|
<button type="button" id="btnEggGame_dino" class="game-switch-btn" onclick="switchEasterEggGame('dino')" style="padding:4px 8px;font-size:11px;border-radius:6px;white-space:nowrap;display:inline-flex;align-items:center;gap:4px">🦖 <span>Dino</span></button>
|
||||||
<button type="button" id="btnEggGame_zipline" class="game-switch-btn" onclick="switchEasterEggGame('zipline')" style="padding:4px 9px;font-size:11px;border-radius:6px;display:inline-flex;align-items:center;gap:4px">⚡ <span>Zip</span></button>
|
<button type="button" id="btnEggGame_zipline" class="game-switch-btn" onclick="switchEasterEggGame('zipline')" style="padding:4px 8px;font-size:11px;border-radius:6px;white-space:nowrap;display:inline-flex;align-items:center;gap:4px">⚡ <span>Zip</span></button>
|
||||||
<button type="button" id="btnEggGame_demineur" class="game-switch-btn" onclick="switchEasterEggGame('demineur')" style="padding:4px 9px;font-size:11px;border-radius:6px;display:inline-flex;align-items:center;gap:4px">💣 <span>Démineur</span></button>
|
<button type="button" id="btnEggGame_demineur" class="game-switch-btn" onclick="switchEasterEggGame('demineur')" style="padding:4px 8px;font-size:11px;border-radius:6px;white-space:nowrap;display:inline-flex;align-items:center;gap:4px">💣 <span>Démineur</span></button>
|
||||||
<button type="button" id="btnEggGame_pacman" class="game-switch-btn" onclick="switchEasterEggGame('pacman')" style="padding:4px 9px;font-size:11px;border-radius:6px;display:inline-flex;align-items:center;gap:4px">🟡 <span>Pac-Man</span></button>
|
<button type="button" id="btnEggGame_pacman" class="game-switch-btn" onclick="switchEasterEggGame('pacman')" style="padding:4px 8px;font-size:11px;border-radius:6px;white-space:nowrap;display:inline-flex;align-items:center;gap:4px">🟡 <span>Pac-Man</span></button>
|
||||||
<button type="button" id="btnEggGame_spaceinvaders" class="game-switch-btn" onclick="switchEasterEggGame('spaceinvaders')" style="padding:4px 9px;font-size:11px;border-radius:6px;display:inline-flex;align-items:center;gap:4px">👾 <span>Space Invaders</span></button>
|
<button type="button" id="btnEggGame_spaceinvaders" class="game-switch-btn" onclick="switchEasterEggGame('spaceinvaders')" style="padding:4px 8px;font-size:11px;border-radius:6px;white-space:nowrap;display:inline-flex;align-items:center;gap:4px">👾 <span>Space Invaders</span></button>
|
||||||
<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>
|
<button type="button" id="btnEggGame_2048" class="game-switch-btn" onclick="switchEasterEggGame('2048')" style="padding:4px 8px;font-size:11px;border-radius:6px;white-space:nowrap;display:inline-flex;align-items:center;gap:4px">🔢 <span>2048</span></button>
|
||||||
</div>
|
</div>
|
||||||
</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:300px">
|
<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>
|
<iframe id="easterEggGameIframe" src="" style="width:100%;height:540px;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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -9104,11 +9104,6 @@ ${vpnBadgeTopo}
|
|||||||
|
|
||||||
function setQuotaPreset(val, unit) {
|
function setQuotaPreset(val, unit) {
|
||||||
if ($('inputQuotaValue')) $('inputQuotaValue').value = val;
|
if ($('inputQuotaValue')) $('inputQuotaValue').value = val;
|
||||||
if ($('selectQuotaUnit')) $('selectQuotaUnit').value = unit;
|
|
||||||
updateQuotaPreview();
|
|
||||||
}
|
|
||||||
|
|
||||||
function setBwPreset(downMbps, upMbps) {
|
|
||||||
if ($('inputRateUp')) $('inputRateUp').value = upMbps;
|
if ($('inputRateUp')) $('inputRateUp').value = upMbps;
|
||||||
if ($('selectRateUpUnit')) $('selectRateUpUnit').value = 'Mbps';
|
if ($('selectRateUpUnit')) $('selectRateUpUnit').value = 'Mbps';
|
||||||
}
|
}
|
||||||
@@ -14475,13 +14470,13 @@ ${vpnBadgeTopo}
|
|||||||
};
|
};
|
||||||
|
|
||||||
const GAME_DIMENSIONS = {
|
const GAME_DIMENSIONS = {
|
||||||
tetris: { maxWidth: '490px', height: '520px' },
|
tetris: { maxWidth: '560px', height: '540px' },
|
||||||
dino: { maxWidth: '690px', height: '360px' },
|
dino: { maxWidth: '720px', height: '370px' },
|
||||||
zipline: { maxWidth: '470px', height: '500px' },
|
zipline: { maxWidth: '550px', height: '520px' },
|
||||||
demineur: { maxWidth: '560px', height: '530px' },
|
demineur: { maxWidth: '570px', height: '560px' },
|
||||||
pacman: { maxWidth: '460px', height: '510px' },
|
pacman: { maxWidth: '550px', height: '540px' },
|
||||||
spaceinvaders: { maxWidth: '550px', height: '540px' },
|
spaceinvaders: { maxWidth: '580px', height: '570px' },
|
||||||
'2048': { maxWidth: '440px', height: '500px' }
|
'2048': { maxWidth: '550px', height: '530px' }
|
||||||
};
|
};
|
||||||
|
|
||||||
window.switchEasterEggGame = function (gameName) {
|
window.switchEasterEggGame = function (gameName) {
|
||||||
|
|||||||
+4
-4
@@ -105,7 +105,7 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
padding: 10px;
|
padding: 4px;
|
||||||
transition: background 0.3s ease, color 0.3s ease;
|
transition: background 0.3s ease, color 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -113,13 +113,13 @@
|
|||||||
background: var(--card-bg);
|
background: var(--card-bg);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
padding: 18px;
|
padding: 10px 14px;
|
||||||
box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(92,167,255,0.1);
|
box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(92,167,255,0.1);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 420px;
|
max-width: 400px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,7 +128,7 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-area h1 {
|
.title-area h1 {
|
||||||
|
|||||||
+7
-7
@@ -133,7 +133,7 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
padding: 10px;
|
padding: 4px;
|
||||||
transition: background 0.3s ease, color 0.3s ease;
|
transition: background 0.3s ease, color 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -141,12 +141,12 @@
|
|||||||
background: var(--card-bg);
|
background: var(--card-bg);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
padding: 16px;
|
padding: 10px 14px;
|
||||||
box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(92,167,255,0.1);
|
box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(92,167,255,0.1);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
max-width: 620px;
|
max-width: 540px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -256,14 +256,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.cell {
|
.cell {
|
||||||
width: 28px;
|
width: 23px;
|
||||||
height: 28px;
|
height: 23px;
|
||||||
background: var(--cell-up);
|
background: var(--cell-up);
|
||||||
border: 2px outset var(--cell-border-light);
|
border: 2px outset var(--cell-border-light);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
font-size: 15px;
|
font-size: 13px;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
@@ -486,7 +486,7 @@
|
|||||||
|
|
||||||
const gridEl = document.getElementById('mineGrid');
|
const gridEl = document.getElementById('mineGrid');
|
||||||
gridEl.innerHTML = '';
|
gridEl.innerHTML = '';
|
||||||
gridEl.style.gridTemplateColumns = `repeat(${cols}, 28px)`;
|
gridEl.style.gridTemplateColumns = `repeat(${cols}, 23px)`;
|
||||||
|
|
||||||
board = [];
|
board = [];
|
||||||
for (let r = 0; r < rows; r++) {
|
for (let r = 0; r < rows; r++) {
|
||||||
|
|||||||
+2
-2
@@ -119,7 +119,7 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
padding: 10px;
|
padding: 4px;
|
||||||
transition: background 0.3s ease, color 0.3s ease;
|
transition: background 0.3s ease, color 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -127,7 +127,7 @@
|
|||||||
background: var(--card-bg);
|
background: var(--card-bg);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
padding: 14px;
|
padding: 10px 12px;
|
||||||
box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(92,167,255,0.12);
|
box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(92,167,255,0.12);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
@@ -133,7 +133,7 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
padding: 10px;
|
padding: 4px;
|
||||||
transition: background 0.3s ease, color 0.3s ease;
|
transition: background 0.3s ease, color 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
background: var(--card-bg);
|
background: var(--card-bg);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
padding: 14px;
|
padding: 10px 12px;
|
||||||
box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(92,167,255,0.12);
|
box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(92,167,255,0.12);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
+2
-2
@@ -239,8 +239,8 @@
|
|||||||
touch-action: manipulation;
|
touch-action: manipulation;
|
||||||
}
|
}
|
||||||
.touch-btn:active { background: var(--blue); color: var(--blue-btn-text); }
|
.touch-btn:active { background: var(--blue); color: var(--blue-btn-text); }
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 360px) {
|
||||||
.arcade-wrap { flex-direction: column; align-items: center; padding: 10px; }
|
.arcade-wrap { flex-direction: column; align-items: center; padding: 6px; }
|
||||||
.sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
|
.sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
|
||||||
.sidebar .panel-box { flex: 1; min-width: 80px; }
|
.sidebar .panel-box { flex: 1; min-width: 80px; }
|
||||||
.touch-controls { display: grid; }
|
.touch-controls { display: grid; }
|
||||||
|
|||||||
+5
-5
@@ -146,16 +146,16 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
padding: 10px;
|
padding: 4px;
|
||||||
transition: background 0.3s ease, color 0.3s ease;
|
transition: background 0.3s ease, color 0.3s ease;
|
||||||
}
|
}
|
||||||
.game-container {
|
.game-container {
|
||||||
background: var(--card-bg);
|
background: var(--card-bg);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
padding: 16px 20px;
|
padding: 10px 14px;
|
||||||
box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(92,167,255,0.12);
|
box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(92,167,255,0.12);
|
||||||
max-width: 540px;
|
max-width: 480px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -310,10 +310,10 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.btn {
|
.btn {
|
||||||
padding: 10px 12px;
|
padding: 7px 12px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 13px;
|
font-size: 12px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
background: var(--panel-box);
|
background: var(--panel-box);
|
||||||
|
|||||||
Reference in new issue
Block a user