APmanageur Wi-Fi V1.0
This commit is contained in:
1 parent
9a734b6a20
commit
fe6594b964
8 files changed
+50
-50
No files matched your search
+9
-9
@@ -6276,7 +6276,7 @@
|
||||
|
||||
<!-- 10. Modal Easter Egg Arcade Games (Tetris, Dino, Zipline) -->
|
||||
<div id="modalEasterEggGames" class="modal-overlay" style="z-index:99999">
|
||||
<div id="modalEasterEggCard" class="modal-card" style="max-width:570px;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:650px;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,7 +6301,7 @@
|
||||
</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;overflow:hidden">
|
||||
<iframe id="easterEggGameIframe" src="" scrolling="no" style="width:100%;height:515px;border:0;display:block;overflow:hidden;transition:height 0.25s cubic-bezier(0.4,0,0.2,1)" title="Easter Egg Game" allow="autoplay"></iframe>
|
||||
<iframe id="easterEggGameIframe" src="" scrolling="no" style="width:100%;height:560px;border:0;display:block;overflow:hidden;transition:height 0.25s cubic-bezier(0.4,0,0.2,1)" title="Easter Egg Game" allow="autoplay"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -14478,13 +14478,13 @@ ${vpnBadgeTopo}
|
||||
};
|
||||
|
||||
const GAME_DIMENSIONS = {
|
||||
tetris: { maxWidth: '570px', height: '515px' },
|
||||
dino: { maxWidth: '710px', height: '340px' },
|
||||
zipline: { maxWidth: '570px', height: '500px' },
|
||||
demineur: { maxWidth: '590px', height: '510px' },
|
||||
pacman: { maxWidth: '570px', height: '505px' },
|
||||
spaceinvaders: { maxWidth: '580px', height: '495px' },
|
||||
'2048': { maxWidth: '570px', height: '465px' }
|
||||
tetris: { maxWidth: '650px', height: '560px' },
|
||||
dino: { maxWidth: '800px', height: '390px' },
|
||||
zipline: { maxWidth: '650px', height: '560px' },
|
||||
demineur: { maxWidth: '680px', height: '560px' },
|
||||
pacman: { maxWidth: '650px', height: '580px' },
|
||||
spaceinvaders: { maxWidth: '660px', height: '560px' },
|
||||
'2048': { maxWidth: '650px', height: '540px' }
|
||||
};
|
||||
|
||||
window.switchEasterEggGame = function (gameName) {
|
||||
|
||||
+15
-15
@@ -123,13 +123,13 @@
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
padding: 8px 12px;
|
||||
padding: 10px 14px;
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(92,167,255,0.1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
max-width: 360px;
|
||||
max-width: 410px;
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -219,13 +219,13 @@
|
||||
position: relative;
|
||||
background: var(--grid-bg);
|
||||
border-radius: 10px;
|
||||
width: 296px;
|
||||
height: 296px;
|
||||
padding: 8px;
|
||||
width: 346px;
|
||||
height: 346px;
|
||||
padding: 10px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
grid-template-rows: repeat(4, 1fr);
|
||||
gap: 8px;
|
||||
gap: 10px;
|
||||
touch-action: none;
|
||||
box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
|
||||
}
|
||||
@@ -239,23 +239,23 @@
|
||||
|
||||
.tile-layer {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
left: 8px;
|
||||
width: 280px;
|
||||
height: 280px;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
width: 326px;
|
||||
height: 326px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.tile {
|
||||
position: absolute;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
width: 74px;
|
||||
height: 74px;
|
||||
border-radius: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 800;
|
||||
font-size: 24px;
|
||||
font-size: 26px;
|
||||
transition: transform 0.11s ease-in-out, opacity 0.11s ease-in-out;
|
||||
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
|
||||
}
|
||||
@@ -617,8 +617,8 @@
|
||||
const layer = document.getElementById('tileLayer');
|
||||
layer.innerHTML = '';
|
||||
|
||||
const CELL_SIZE = 64;
|
||||
const GAP = 8;
|
||||
const CELL_SIZE = 74;
|
||||
const GAP = 10;
|
||||
|
||||
for (let r = 0; r < SIZE; r++) {
|
||||
for (let c = 0; c < SIZE; c++) {
|
||||
|
||||
+4
-4
@@ -151,12 +151,12 @@
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
padding: 8px 12px;
|
||||
padding: 10px 14px;
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(92,167,255,0.1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
max-width: 540px;
|
||||
max-width: 640px;
|
||||
width: 100%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -496,8 +496,8 @@
|
||||
|
||||
const gridEl = document.getElementById('mineGrid');
|
||||
gridEl.innerHTML = '';
|
||||
const cellSize = cols > 16 ? 15 : (cols > 9 ? 18 : 24);
|
||||
const cellFont = cols > 16 ? '10px' : (cols > 9 ? '11px' : '13px');
|
||||
const cellSize = cols > 16 ? 18 : (cols > 9 ? 22 : 28);
|
||||
const cellFont = cols > 16 ? '11px' : (cols > 9 ? '13px' : '16px');
|
||||
document.documentElement.style.setProperty('--cell-size', cellSize + 'px');
|
||||
document.documentElement.style.setProperty('--cell-font', cellFont);
|
||||
gridEl.style.gridTemplateColumns = `repeat(${cols}, ${cellSize}px)`;
|
||||
|
||||
+4
-4
@@ -180,7 +180,7 @@
|
||||
padding: 10px 14px;
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(92, 167, 255, 0.12);
|
||||
position: relative;
|
||||
max-width: 660px;
|
||||
max-width: 760px;
|
||||
width: 100%;
|
||||
flex-shrink: 0;
|
||||
transition: all 0.3s ease;
|
||||
@@ -218,7 +218,7 @@
|
||||
canvas {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
height: 230px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.controls-hint {
|
||||
@@ -291,7 +291,7 @@
|
||||
</div>
|
||||
|
||||
<div class="canvas-wrap" id="canvasWrap">
|
||||
<canvas id="dinoCanvas" width="640" height="200"></canvas>
|
||||
<canvas id="dinoCanvas" width="720" height="230"></canvas>
|
||||
<div id="gameOverlay" class="overlay-message" style="display:none">
|
||||
<h2 id="dinoGameOverText">G A M E O V E R</h2>
|
||||
<button id="dinoRestartBtn" class="restart-btn" onclick="resetGame()">🔄 REJOUER (Espace)</button>
|
||||
@@ -421,7 +421,7 @@
|
||||
const overlay = document.getElementById('gameOverlay');
|
||||
const canvasWrap = document.getElementById('canvasWrap');
|
||||
|
||||
const GROUND_Y = 165;
|
||||
const GROUND_Y = 190;
|
||||
let highScore = parseInt(localStorage.getItem('ap_dino_hi') || '0', 10);
|
||||
hiScoreEl.textContent = String(highScore).padStart(5, '0');
|
||||
|
||||
|
||||
+3
-3
@@ -142,7 +142,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
max-width: 480px;
|
||||
max-width: 500px;
|
||||
width: 100%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -268,7 +268,7 @@
|
||||
</div>
|
||||
|
||||
<div class="canvas-wrap">
|
||||
<canvas id="pacmanCanvas" width="342" height="378"></canvas>
|
||||
<canvas id="pacmanCanvas" width="418" height="462"></canvas>
|
||||
|
||||
<div id="gameOverlay" class="overlay" style="display:none">
|
||||
<h2 id="overlayTitle">GAME OVER</h2>
|
||||
@@ -428,7 +428,7 @@
|
||||
|
||||
const canvas = document.getElementById('pacmanCanvas');
|
||||
const ctx = canvas.getContext('2d');
|
||||
const TILE = 18;
|
||||
const TILE = 22;
|
||||
const COLS = 19;
|
||||
const ROWS = 21;
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
max-width: 520px;
|
||||
max-width: 580px;
|
||||
width: 100%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -285,7 +285,7 @@
|
||||
</div>
|
||||
|
||||
<div class="canvas-wrap">
|
||||
<canvas id="siCanvas" width="480" height="360"></canvas>
|
||||
<canvas id="siCanvas" width="540" height="420"></canvas>
|
||||
|
||||
<div id="gameOverlay" class="overlay" style="display:none">
|
||||
<h2 id="overlayTitle">GAME OVER</h2>
|
||||
|
||||
+7
-7
@@ -145,8 +145,8 @@
|
||||
.sidebar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
width: 146px;
|
||||
gap: 7px;
|
||||
width: 154px;
|
||||
}
|
||||
.panel-box {
|
||||
background: var(--panel-box);
|
||||
@@ -275,7 +275,7 @@
|
||||
|
||||
<div class="arcade-wrap">
|
||||
<div class="canvas-container">
|
||||
<canvas id="tetris" width="220" height="440"></canvas>
|
||||
<canvas id="tetris" width="240" height="480"></canvas>
|
||||
<div id="gameOverlay" class="overlay-msg" style="display:none">
|
||||
<h2 id="overlayTitle">GAME OVER</h2>
|
||||
<div id="overlayScore" style="color:var(--blue);font-size:16px;font-weight:700">Score: 0</div>
|
||||
@@ -284,9 +284,9 @@
|
||||
</div>
|
||||
|
||||
<div class="sidebar">
|
||||
<div class="panel-box" style="padding:5px">
|
||||
<h3 id="labelNext" style="font-size:9.5px;margin-bottom:3px">Prochaine</h3>
|
||||
<canvas id="next" class="preview-canvas" width="74" height="66"></canvas>
|
||||
<div class="panel-box" style="padding:6px">
|
||||
<h3 id="labelNext" style="font-size:10px;margin-bottom:3px">Prochaine</h3>
|
||||
<canvas id="next" class="preview-canvas" width="78" height="70"></canvas>
|
||||
</div>
|
||||
<div class="panel-box stats-box">
|
||||
<div class="stat-col">
|
||||
@@ -612,7 +612,7 @@
|
||||
|
||||
const COLS = 10;
|
||||
const ROWS = 20;
|
||||
const BLOCK = 22;
|
||||
const BLOCK = 24;
|
||||
|
||||
const COLORS = [
|
||||
null,
|
||||
|
||||
+6
-6
@@ -165,7 +165,7 @@
|
||||
border-radius: 14px;
|
||||
padding: 10px 14px;
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(92,167,255,0.12);
|
||||
max-width: 430px;
|
||||
max-width: 470px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -245,15 +245,15 @@
|
||||
position: relative;
|
||||
}
|
||||
.cell {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
background: var(--cell-bg);
|
||||
border: 1px solid var(--cell-border);
|
||||
border-radius: 7px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 17px;
|
||||
font-size: 19px;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
@@ -275,7 +275,7 @@
|
||||
.cell.number-node {
|
||||
color: var(--node-color);
|
||||
font-family: monospace;
|
||||
font-size: 18px;
|
||||
font-size: 20px;
|
||||
text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
.cell.number-node::after {
|
||||
|
||||
Reference in new issue
Block a user