APmanageur Wi-Fi V1.0
This commit is contained in:
1 parent
a72d161092
commit
33cf355785
4 files changed
+825
-266
No files matched your search
+197
-44
@@ -1,15 +1,145 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<html lang="fr" data-theme="dark">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
||||
<title>Zip (LinkedIn) - AP Manageur</title>
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; }
|
||||
|
||||
:root, html[data-theme="dark"] {
|
||||
--bg: #071326;
|
||||
--card-bg: #0d1d36;
|
||||
--panel-box: #132746;
|
||||
--border: #223c68;
|
||||
--text: #eef4ff;
|
||||
--muted: #9aa8c5;
|
||||
--blue: #5ca7ff;
|
||||
--blue-btn-text: #071326;
|
||||
--board-bg: #050d1a;
|
||||
--cell-bg: #0d1d36;
|
||||
--cell-border: #1a345e;
|
||||
--cell-hover: #16315c;
|
||||
--cell-visited: rgba(92, 167, 255, 0.28);
|
||||
--path-stroke: #5ca7ff;
|
||||
--wall-color: #ff6b6b;
|
||||
--node-color: #ffffff;
|
||||
}
|
||||
html[data-theme="light"] {
|
||||
--bg: #f2f5fa;
|
||||
--card-bg: #ffffff;
|
||||
--panel-box: #e9eef7;
|
||||
--border: #d2dcec;
|
||||
--text: #15203a;
|
||||
--muted: #5b6b8c;
|
||||
--blue: #1e6ef0;
|
||||
--blue-btn-text: #ffffff;
|
||||
--board-bg: #f8fafc;
|
||||
--cell-bg: #ffffff;
|
||||
--cell-border: #d2dcec;
|
||||
--cell-hover: #e9eef7;
|
||||
--cell-visited: rgba(30, 110, 240, 0.15);
|
||||
--path-stroke: #1e6ef0;
|
||||
--wall-color: #ef4444;
|
||||
--node-color: #0f172a;
|
||||
}
|
||||
html[data-theme="winxp"] {
|
||||
--bg: #ece9d8;
|
||||
--card-bg: #ece9d8;
|
||||
--panel-box: #ffffff;
|
||||
--border: #7f9db9;
|
||||
--text: #000000;
|
||||
--muted: #444444;
|
||||
--blue: #0055ea;
|
||||
--blue-btn-text: #ffffff;
|
||||
--board-bg: #ffffff;
|
||||
--cell-bg: #f5f5f5;
|
||||
--cell-border: #7f9db9;
|
||||
--cell-hover: #e0e8f5;
|
||||
--cell-visited: rgba(0, 85, 234, 0.18);
|
||||
--path-stroke: #0055ea;
|
||||
--wall-color: #cc0000;
|
||||
--node-color: #000000;
|
||||
font-family: 'Tahoma', sans-serif !important;
|
||||
}
|
||||
html[data-theme="macos"][data-macos-mode="light"],
|
||||
html[data-theme="macos"]:not([data-macos-mode="dark"]) {
|
||||
--bg: #f5f5f7;
|
||||
--card-bg: #ffffff;
|
||||
--panel-box: #f2f2f7;
|
||||
--border: rgba(0, 0, 0, 0.12);
|
||||
--text: #1d1d1f;
|
||||
--muted: #86868b;
|
||||
--blue: #0071e3;
|
||||
--blue-btn-text: #ffffff;
|
||||
--board-bg: #f2f2f7;
|
||||
--cell-bg: #ffffff;
|
||||
--cell-border: rgba(0, 0, 0, 0.08);
|
||||
--cell-hover: #e5e5ea;
|
||||
--cell-visited: rgba(0, 113, 227, 0.15);
|
||||
--path-stroke: #0071e3;
|
||||
--wall-color: #ff3b30;
|
||||
--node-color: #1d1d1f;
|
||||
}
|
||||
html[data-theme="macos"][data-macos-mode="dark"] {
|
||||
--bg: #1e1e1e;
|
||||
--card-bg: #2d2d2d;
|
||||
--panel-box: #3a3a3c;
|
||||
--border: rgba(255, 255, 255, 0.15);
|
||||
--text: #f5f5f7;
|
||||
--muted: #98989d;
|
||||
--blue: #0a84ff;
|
||||
--blue-btn-text: #ffffff;
|
||||
--board-bg: #1c1c1e;
|
||||
--cell-bg: #2c2c2e;
|
||||
--cell-border: rgba(255, 255, 255, 0.1);
|
||||
--cell-hover: #3a3a3c;
|
||||
--cell-visited: rgba(10, 132, 255, 0.25);
|
||||
--path-stroke: #0a84ff;
|
||||
--wall-color: #ff453a;
|
||||
--node-color: #f5f5f7;
|
||||
}
|
||||
html[data-theme="futuristic"] {
|
||||
--bg: #050811;
|
||||
--card-bg: #091124;
|
||||
--panel-box: #0f1c3a;
|
||||
--border: #00f0ff;
|
||||
--text: #e6f6ff;
|
||||
--muted: #64b5f6;
|
||||
--blue: #00f0ff;
|
||||
--blue-btn-text: #050811;
|
||||
--board-bg: #030712;
|
||||
--cell-bg: #0b1730;
|
||||
--cell-border: rgba(0, 240, 255, 0.25);
|
||||
--cell-hover: #13254e;
|
||||
--cell-visited: rgba(0, 240, 255, 0.25);
|
||||
--path-stroke: #00f0ff;
|
||||
--wall-color: #ff3366;
|
||||
--node-color: #e6f6ff;
|
||||
}
|
||||
html[data-theme="hacker"] {
|
||||
--bg: #000000;
|
||||
--card-bg: #051206;
|
||||
--panel-box: #0a1f0c;
|
||||
--border: #00ff41;
|
||||
--text: #00ff41;
|
||||
--muted: #008f11;
|
||||
--blue: #00ff41;
|
||||
--blue-btn-text: #000000;
|
||||
--board-bg: #000000;
|
||||
--cell-bg: #020a04;
|
||||
--cell-border: rgba(0, 255, 65, 0.25);
|
||||
--cell-hover: #07240c;
|
||||
--cell-visited: rgba(0, 255, 65, 0.25);
|
||||
--path-stroke: #00ff41;
|
||||
--wall-color: #ff3333;
|
||||
--node-color: #00ff41;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #071326;
|
||||
color: #eef4ff;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@@ -17,19 +147,21 @@
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden;
|
||||
padding: 10px;
|
||||
transition: background 0.3s ease, color 0.3s ease;
|
||||
}
|
||||
.game-container {
|
||||
background: #0d1d36;
|
||||
border: 1px solid #223c68;
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
padding: 16px 20px;
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(92,167,255,0.15);
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(92,167,255,0.12);
|
||||
max-width: 540px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
.top-bar {
|
||||
width: 100%;
|
||||
@@ -44,13 +176,13 @@
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-weight: 700;
|
||||
color: #5ca7ff;
|
||||
color: var(--blue);
|
||||
font-size: 16px;
|
||||
}
|
||||
.level-selector select {
|
||||
background: #132746;
|
||||
color: #eef4ff;
|
||||
border: 1px solid #223c68;
|
||||
background: var(--panel-box);
|
||||
color: var(--text);
|
||||
border: 1px solid var(--border);
|
||||
padding: 5px 10px;
|
||||
border-radius: 6px;
|
||||
font-size: 12px;
|
||||
@@ -61,39 +193,40 @@
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: #132746;
|
||||
background: var(--panel-box);
|
||||
padding: 8px 14px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #223c68;
|
||||
border: 1px solid var(--border);
|
||||
margin-bottom: 14px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.stats-bar strong {
|
||||
color: #5ca7ff;
|
||||
color: var(--blue);
|
||||
}
|
||||
.progress-bar-wrap {
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
background: #050d1a;
|
||||
background: var(--board-bg);
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 14px;
|
||||
border: 1px solid #223c68;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.progress-bar-fill {
|
||||
height: 100%;
|
||||
width: 0%;
|
||||
background: linear-gradient(90deg, #5ca7ff, #32d583);
|
||||
background: linear-gradient(90deg, var(--blue), #32d583);
|
||||
transition: width 0.2s ease;
|
||||
}
|
||||
.board-container {
|
||||
position: relative;
|
||||
background: #050d1a;
|
||||
border: 3px solid #223c68;
|
||||
background: var(--board-bg);
|
||||
border: 3px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 8px;
|
||||
box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
|
||||
box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
|
||||
touch-action: none;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
.grid {
|
||||
display: grid;
|
||||
@@ -103,8 +236,8 @@
|
||||
.cell {
|
||||
width: 58px;
|
||||
height: 58px;
|
||||
background: #0d1d36;
|
||||
border: 1px solid #1a345e;
|
||||
background: var(--cell-bg);
|
||||
border: 1px solid var(--cell-border);
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -113,32 +246,32 @@
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
transition: background 0.15s ease, transform 0.1s ease;
|
||||
transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
|
||||
}
|
||||
.cell:hover {
|
||||
background: #16315c;
|
||||
background: var(--cell-hover);
|
||||
}
|
||||
.cell.visited {
|
||||
background: rgba(92, 167, 255, 0.28);
|
||||
border-color: #5ca7ff;
|
||||
background: var(--cell-visited);
|
||||
border-color: var(--path-stroke);
|
||||
}
|
||||
.cell.current {
|
||||
background: #5ca7ff;
|
||||
color: #071326;
|
||||
box-shadow: 0 0 14px #5ca7ff;
|
||||
background: var(--blue);
|
||||
color: var(--blue-btn-text);
|
||||
box-shadow: 0 0 14px var(--blue);
|
||||
transform: scale(1.04);
|
||||
}
|
||||
.cell.number-node {
|
||||
color: #ffffff;
|
||||
color: var(--node-color);
|
||||
font-family: monospace;
|
||||
font-size: 22px;
|
||||
text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
|
||||
text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
.cell.number-node::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 4px;
|
||||
border: 2px dashed rgba(255, 255, 255, 0.3);
|
||||
border: 2px dashed rgba(255, 255, 255, 0.35);
|
||||
border-radius: 6px;
|
||||
pointer-events: none;
|
||||
}
|
||||
@@ -146,8 +279,8 @@
|
||||
color: #32d583;
|
||||
text-shadow: 0 0 10px rgba(50, 213, 131, 0.8);
|
||||
}
|
||||
.cell.wall-right { border-right: 4px solid #ff6b6b !important; }
|
||||
.cell.wall-bottom { border-bottom: 4px solid #ff6b6b !important; }
|
||||
.cell.wall-right { border-right: 4px solid var(--wall-color) !important; }
|
||||
.cell.wall-bottom { border-bottom: 4px solid var(--wall-color) !important; }
|
||||
|
||||
/* SVG overlay for path */
|
||||
.path-svg {
|
||||
@@ -158,11 +291,11 @@
|
||||
}
|
||||
.path-line {
|
||||
fill: none;
|
||||
stroke: #5ca7ff;
|
||||
stroke: var(--path-stroke);
|
||||
stroke-width: 6;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
filter: drop-shadow(0 0 6px #5ca7ff);
|
||||
filter: drop-shadow(0 0 6px var(--path-stroke));
|
||||
}
|
||||
|
||||
.bottom-actions {
|
||||
@@ -178,23 +311,23 @@
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
border: 1px solid #223c68;
|
||||
background: #132746;
|
||||
color: #eef4ff;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--panel-box);
|
||||
color: var(--text);
|
||||
transition: all 0.15s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.btn:hover { background: #1c3863; border-color: #5ca7ff; }
|
||||
.btn:hover { background: var(--cell-hover); border-color: var(--blue); }
|
||||
.btn.primary {
|
||||
background: #5ca7ff;
|
||||
color: #071326;
|
||||
border-color: #5ca7ff;
|
||||
background: var(--blue);
|
||||
color: var(--blue-btn-text);
|
||||
border-color: var(--blue);
|
||||
font-weight: 700;
|
||||
}
|
||||
.btn.primary:hover { background: #7ab7ff; }
|
||||
.btn.primary:hover { opacity: 0.9; }
|
||||
|
||||
.instructions {
|
||||
margin-top: 12px;
|
||||
@@ -280,6 +413,26 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// Theme Management
|
||||
function setTheme(theme, macosMode) {
|
||||
if (!theme) theme = 'dark';
|
||||
document.documentElement.dataset.theme = theme;
|
||||
if (theme === 'macos' && macosMode) {
|
||||
document.documentElement.dataset.macosMode = macosMode;
|
||||
} else {
|
||||
delete document.documentElement.dataset.macosMode;
|
||||
}
|
||||
}
|
||||
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
setTheme(urlParams.get('theme') || 'dark', urlParams.get('macosMode'));
|
||||
|
||||
window.addEventListener('message', e => {
|
||||
if (e.data && e.data.type === 'themeChange') {
|
||||
setTheme(e.data.theme, e.data.macosMode);
|
||||
}
|
||||
});
|
||||
|
||||
// Audio synthesizer
|
||||
let audioCtx = null;
|
||||
function playBeep(type) {
|
||||
|
||||
Reference in new issue
Block a user