From abf33b992948f54b072f708ad121fdab03411172 Mon Sep 17 00:00:00 2001 From: yoannmultigaming Date: Sat, 21 Nov 2026 02:08:05 +0100 Subject: [PATCH] APmanageur Wi-Fi V1.0 --- index.html | 50 +++++++++++++++----------- jeux/2048.html | 74 ++++++++++++++++++++++---------------- jeux/demineur.html | 72 ++++++++++++++++++++++--------------- jeux/dino.html | 39 +++++++++++++------- jeux/pacman.html | 43 ++++++++++++++-------- jeux/spaceinvaders.html | 31 +++++++++++----- jeux/tetris.html | 66 ++++++++++++++++++---------------- jeux/zipline.html | 80 +++++++++++++++++++++++------------------ 8 files changed, 273 insertions(+), 182 deletions(-) diff --git a/index.html b/index.html index aae8247..dcbb2bc 100644 --- a/index.html +++ b/index.html @@ -3137,7 +3137,6 @@ -
- @@ -9104,8 +9103,15 @@ ${vpnBadgeTopo} function setQuotaPreset(val, unit) { if ($('inputQuotaValue')) $('inputQuotaValue').value = val; - if ($('inputRateUp')) $('inputRateUp').value = upMbps; - if ($('selectRateUpUnit')) $('selectRateUpUnit').value = 'Mbps'; + if ($('selectQuotaUnit')) $('selectQuotaUnit').value = unit; + updateQuotaPreview(); + } + + function setBwPreset(downMbps, upMbps) { + if ($('inputRateDown')) $('inputRateDown').value = downMbps; + if ($('selectRateDownUnit')) $('selectRateDownUnit').value = 'Mbps'; + if ($('selectQuotaUnit')) $('selectQuotaUnit').value = unit; + updateQuotaPreview(); } async function onQuotaPeriodChanged() { @@ -10956,15 +10962,17 @@ ${vpnBadgeTopo} document.querySelectorAll('.filter-chip').forEach(c => c.classList.remove('active')); renderCaptureTable(); }; - $('clearFilterBtn').onclick = function () { - $('packetFilterInput').value = ''; - 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'); - renderCaptureTable(); - }; + if ($('clearFilterBtn')) { + $('clearFilterBtn').onclick = function () { + $('packetFilterInput').value = ''; + 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'); + renderCaptureTable(); + }; + } document.querySelectorAll('.filter-chip').forEach(chip => { chip.onclick = function () { document.querySelectorAll('.filter-chip').forEach(c => c.classList.remove('active')); @@ -14470,13 +14478,13 @@ ${vpnBadgeTopo} }; const GAME_DIMENSIONS = { - tetris: { maxWidth: '560px', height: '540px' }, - dino: { maxWidth: '720px', height: '370px' }, - zipline: { maxWidth: '550px', height: '520px' }, - demineur: { maxWidth: '570px', height: '560px' }, - pacman: { maxWidth: '550px', height: '540px' }, - spaceinvaders: { maxWidth: '580px', height: '570px' }, - '2048': { maxWidth: '550px', height: '530px' } + tetris: { maxWidth: '540px', height: '490px' }, + dino: { maxWidth: '680px', height: '320px' }, + zipline: { maxWidth: '540px', height: '475px' }, + demineur: { maxWidth: '560px', height: '480px' }, + pacman: { maxWidth: '540px', height: '480px' }, + spaceinvaders: { maxWidth: '550px', height: '470px' }, + '2048': { maxWidth: '540px', height: '440px' } }; window.switchEasterEggGame = function (gameName) { diff --git a/jeux/2048.html b/jeux/2048.html index 1f95ec4..48bd9f1 100644 --- a/jeux/2048.html +++ b/jeux/2048.html @@ -95,6 +95,17 @@ font-family: 'Courier New', monospace !important; } + html, body { + overflow: hidden !important; + height: 100%; + width: 100%; + margin: 0; + padding: 0; + box-sizing: border-box; + } + ::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; } + * { scrollbar-width: none !important; } + body { background: var(--bg); color: var(--text); @@ -103,9 +114,8 @@ flex-direction: column; align-items: center; justify-content: center; - min-height: 100vh; - overflow-x: hidden; - padding: 4px; + height: 100%; + padding: 6px; transition: background 0.3s ease, color 0.3s ease; } @@ -113,14 +123,15 @@ background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; - padding: 10px 14px; + padding: 8px 12px; 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: 400px; + max-width: 360px; position: relative; + flex-shrink: 0; } .header-bar { @@ -128,33 +139,33 @@ justify-content: space-between; align-items: center; width: 100%; - margin-bottom: 8px; + margin-bottom: 6px; } .title-area h1 { - font-size: 38px; + font-size: 28px; font-weight: 900; line-height: 1; color: var(--blue); letter-spacing: -1px; } .title-area p { - font-size: 11.5px; + font-size: 10.5px; color: var(--muted); - margin-top: 2px; + margin-top: 1px; } .scores-row { display: flex; - gap: 8px; + gap: 6px; } .score-badge { background: var(--panel-box); border: 1px solid var(--border); border-radius: 8px; - padding: 6px 12px; - min-width: 72px; + padding: 4px 8px; + min-width: 58px; text-align: center; } .score-badge .score-label { @@ -176,8 +187,8 @@ justify-content: space-between; align-items: center; width: 100%; - margin-bottom: 14px; - gap: 8px; + margin-bottom: 6px; + gap: 6px; } .btn { @@ -185,9 +196,9 @@ color: var(--blue-btn-text); border: 0; border-radius: 6px; - padding: 7px 14px; + padding: 5px 10px; font-weight: 700; - font-size: 12px; + font-size: 11.5px; cursor: pointer; display: inline-flex; align-items: center; @@ -208,13 +219,13 @@ position: relative; background: var(--grid-bg); border-radius: 10px; - width: 330px; - height: 330px; - padding: 10px; + width: 296px; + height: 296px; + padding: 8px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); - gap: 10px; + gap: 8px; touch-action: none; box-shadow: inset 0 0 10px rgba(0,0,0,0.3); } @@ -228,23 +239,23 @@ .tile-layer { position: absolute; - top: 10px; - left: 10px; - width: 310px; - height: 310px; + top: 8px; + left: 8px; + width: 280px; + height: 280px; pointer-events: none; } .tile { position: absolute; - width: 70px; - height: 70px; + width: 64px; + height: 64px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 800; - font-size: 26px; + font-size: 24px; transition: transform 0.11s ease-in-out, opacity 0.11s ease-in-out; box-shadow: 0 2px 6px rgba(0,0,0,0.2); } @@ -318,9 +329,10 @@ .instructions { font-size: 11px; color: var(--muted); - line-height: 1.4; + line-height: 1.35; text-align: center; - margin-top: 12px; + margin-top: 6px; + padding: 2px 4px; } .instructions kbd { background: var(--panel-box); @@ -605,8 +617,8 @@ const layer = document.getElementById('tileLayer'); layer.innerHTML = ''; - const CELL_SIZE = 70; - const GAP = 10; + const CELL_SIZE = 64; + const GAP = 8; for (let r = 0; r < SIZE; r++) { for (let c = 0; c < SIZE; c++) { diff --git a/jeux/demineur.html b/jeux/demineur.html index b5accc2..eec5195 100644 --- a/jeux/demineur.html +++ b/jeux/demineur.html @@ -123,6 +123,17 @@ font-family: 'Courier New', monospace !important; } + html, body { + overflow: hidden !important; + height: 100%; + width: 100%; + margin: 0; + padding: 0; + box-sizing: border-box; + } + ::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; } + * { scrollbar-width: none !important; } + body { background: var(--bg); color: var(--text); @@ -131,9 +142,8 @@ flex-direction: column; align-items: center; justify-content: center; - min-height: 100vh; - overflow-x: hidden; - padding: 4px; + height: 100%; + padding: 6px; transition: background 0.3s ease, color 0.3s ease; } @@ -141,13 +151,14 @@ background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; - padding: 10px 14px; + padding: 8px 12px; 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; width: 100%; + flex-shrink: 0; } .top-controls { @@ -155,18 +166,17 @@ justify-content: space-between; align-items: center; width: 100%; - margin-bottom: 12px; - gap: 10px; - flex-wrap: wrap; + margin-bottom: 6px; + gap: 8px; } .level-select { background: var(--panel-box); color: var(--text); border: 1px solid var(--border); - padding: 6px 10px; + padding: 4px 8px; border-radius: 6px; - font-size: 12px; + font-size: 11.5px; cursor: pointer; } @@ -174,9 +184,9 @@ background: var(--panel-box); color: var(--text); border: 1px solid var(--border); - padding: 6px 12px; + padding: 4px 10px; border-radius: 6px; - font-size: 12px; + font-size: 11.5px; cursor: pointer; display: inline-flex; align-items: center; @@ -198,33 +208,33 @@ background: var(--panel-box); border: 2px solid var(--border); border-radius: 8px; - padding: 8px 14px; + padding: 4px 12px; width: 100%; - margin-bottom: 12px; + margin-bottom: 6px; } .digital-counter { background: var(--display-bg); color: var(--display-text); font-family: 'Courier New', Courier, monospace; - font-size: 26px; + font-size: 22px; font-weight: 900; - padding: 2px 10px; + padding: 2px 8px; border-radius: 4px; border: 1px solid var(--border); letter-spacing: 2px; - min-width: 70px; + min-width: 62px; text-align: center; text-shadow: 0 0 6px currentColor; } .face-btn { - font-size: 26px; + font-size: 22px; background: var(--cell-up); border: 2px outset var(--cell-border-light); border-radius: 50%; - width: 44px; - height: 44px; + width: 36px; + height: 36px; display: flex; align-items: center; justify-content: center; @@ -237,10 +247,9 @@ } .board-wrap { - overflow: auto; + overflow: hidden !important; max-width: 100%; - max-height: 400px; - padding: 4px; + padding: 3px; border-radius: 8px; background: var(--display-bg); border: 2px solid var(--border); @@ -256,14 +265,14 @@ } .cell { - width: 23px; - height: 23px; + width: var(--cell-size, 18px); + height: var(--cell-size, 18px); background: var(--cell-up); border: 2px outset var(--cell-border-light); display: flex; align-items: center; justify-content: center; - font-size: 13px; + font-size: var(--cell-font, 11px); font-weight: 800; cursor: pointer; user-select: none; @@ -287,11 +296,12 @@ .c-8 { color: #6b7280; } .instructions { - font-size: 11.5px; + font-size: 11px; color: var(--muted); - margin-top: 12px; + margin-top: 6px; text-align: center; - line-height: 1.4; + line-height: 1.35; + padding: 2px 4px; } @@ -486,7 +496,11 @@ const gridEl = document.getElementById('mineGrid'); gridEl.innerHTML = ''; - gridEl.style.gridTemplateColumns = `repeat(${cols}, 23px)`; + const cellSize = cols > 16 ? 15 : (cols > 9 ? 18 : 24); + const cellFont = cols > 16 ? '10px' : (cols > 9 ? '11px' : '13px'); + document.documentElement.style.setProperty('--cell-size', cellSize + 'px'); + document.documentElement.style.setProperty('--cell-font', cellFont); + gridEl.style.gridTemplateColumns = `repeat(${cols}, ${cellSize}px)`; board = []; for (let r = 0; r < rows; r++) { diff --git a/jeux/dino.html b/jeux/dino.html index 8bba80a..77b8ad7 100644 --- a/jeux/dino.html +++ b/jeux/dino.html @@ -150,6 +150,17 @@ --star-color: #00ff41; } + html, body { + overflow: hidden !important; + height: 100%; + width: 100%; + margin: 0; + padding: 0; + box-sizing: border-box; + } + ::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; } + * { scrollbar-width: none !important; } + body { background: var(--bg); color: var(--text); @@ -158,32 +169,32 @@ flex-direction: column; align-items: center; justify-content: center; - min-height: 100vh; - overflow: hidden; - padding: 10px; + height: 100%; + padding: 6px; transition: background 0.3s ease, color 0.3s ease; } .game-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; - padding: 16px; + 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: 700px; + max-width: 660px; width: 100%; + flex-shrink: 0; transition: all 0.3s ease; } .header-bar { display: flex; justify-content: space-between; align-items: center; - margin-bottom: 12px; - font-size: 14px; + margin-bottom: 6px; + font-size: 13px; color: var(--muted); } .scores { - font-size: 18px; + font-size: 17px; font-weight: 700; letter-spacing: 2px; color: var(--blue); @@ -207,17 +218,19 @@ canvas { display: block; width: 100%; - height: 220px; + height: 200px; cursor: pointer; } .controls-hint { display: flex; justify-content: space-between; align-items: center; - margin-top: 12px; - font-size: 12px; + margin-top: 6px; + font-size: 11px; color: var(--muted); flex-wrap: wrap; + gap: 6px; + } gap: 8px; } .controls-hint kbd { @@ -278,7 +291,7 @@
- +
- +
- +