238 lines
8.6 KiB
HTML
238 lines
8.6 KiB
HTML
<!doctype html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
|
<meta name="theme-color" content="#140700" />
|
|
<meta name="application-name" content="ChessCubing Arena" />
|
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
<meta name="apple-mobile-web-app-title" content="ChessCubing" />
|
|
<meta
|
|
name="description"
|
|
content="Phase cube de ChessCubing Arena avec gros boutons de fin."
|
|
/>
|
|
<title>ChessCubing Arena | Phase Cube</title>
|
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
|
<link rel="shortcut icon" href="/favicon.png" />
|
|
<link rel="apple-touch-icon" href="logo.png" />
|
|
<link rel="manifest" href="site.webmanifest" />
|
|
<script>
|
|
(() => {
|
|
const assetTokenStorageKey = "chesscubing-arena-asset-token";
|
|
const pageUrl = new URL(window.location.href);
|
|
const refreshToken = pageUrl.searchParams.get("refresh");
|
|
if (refreshToken) {
|
|
try {
|
|
window.sessionStorage.setItem(assetTokenStorageKey, refreshToken);
|
|
} catch {
|
|
// Ignore storage failures in restricted browsers.
|
|
}
|
|
pageUrl.searchParams.delete("refresh");
|
|
window.history.replaceState(null, "", pageUrl.toString());
|
|
}
|
|
|
|
let assetToken = "";
|
|
try {
|
|
assetToken = window.sessionStorage.getItem(assetTokenStorageKey) || "";
|
|
} catch {
|
|
assetToken = "";
|
|
}
|
|
|
|
window.__CHESSCUBING_ASSET_TOKEN__ = assetToken;
|
|
window.__CHESSCUBING_ASSET_URL__ = (path) => {
|
|
if (!assetToken) {
|
|
return path;
|
|
}
|
|
|
|
const assetUrl = new URL(path, window.location.href);
|
|
assetUrl.searchParams.set("v", assetToken);
|
|
return `${assetUrl.pathname}${assetUrl.search}${assetUrl.hash}`;
|
|
};
|
|
|
|
const stylesheet = document.createElement("link");
|
|
stylesheet.rel = "stylesheet";
|
|
stylesheet.href = window.__CHESSCUBING_ASSET_URL__("styles.css");
|
|
document.head.append(stylesheet);
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body data-page="cube" class="phase-body">
|
|
<main class="phase-shell cube-shell">
|
|
<header class="phase-header">
|
|
<a class="brand-link brand-link-logo" href="application.html" aria-label="Retour à l'application">
|
|
<img class="brand-link-icon" src="logo.png" alt="Icône ChessCubing" />
|
|
<img class="brand-link-mark" src="transparent.png" alt="Logo ChessCubing" />
|
|
</a>
|
|
<div class="phase-title">
|
|
<p class="eyebrow">Phase cube</p>
|
|
<h1 id="cubeTitle">Cube n°1</h1>
|
|
<p id="cubeSubtitle" class="phase-subtitle"></p>
|
|
</div>
|
|
<button class="button ghost small utility-button" id="openCubeHelpButton" type="button">
|
|
Arbitre
|
|
</button>
|
|
</header>
|
|
|
|
<section class="status-strip">
|
|
<article class="status-card">
|
|
<span id="cubeBlockLabelText">Block</span>
|
|
<strong id="cubeBlockLabel">1</strong>
|
|
</article>
|
|
<article class="status-card">
|
|
<span>Temps max</span>
|
|
<strong id="cubeElapsed">00:00.0</strong>
|
|
</article>
|
|
<article class="status-card wide">
|
|
<span id="cubeCenterLabel">État</span>
|
|
<strong id="cubeCenterValue">Prêt</strong>
|
|
</article>
|
|
</section>
|
|
|
|
<section class="faceoff-board">
|
|
<article class="player-zone opponent-zone" id="blackCubeZone">
|
|
<div class="zone-inner mirrored-mobile">
|
|
<div class="zone-head">
|
|
<div>
|
|
<span class="seat-tag dark-seat">Noir</span>
|
|
<h2 id="blackNameCube">Noir</h2>
|
|
</div>
|
|
<div class="zone-stats">
|
|
<strong id="blackCubeResult">--</strong>
|
|
<span id="blackCubeCap"></span>
|
|
</div>
|
|
</div>
|
|
|
|
<button class="zone-button dark-button" id="blackCubeButton" type="button">
|
|
Démarrer mon chrono
|
|
</button>
|
|
|
|
<p class="zone-foot" id="blackHintCube"></p>
|
|
</div>
|
|
</article>
|
|
|
|
<article class="phase-spine">
|
|
<div class="spine-card">
|
|
<p class="micro-label" id="cubeSpineLabel">Blocage</p>
|
|
<strong id="cubeSpineHeadline">Lancer la phase cube</strong>
|
|
<p id="cubeSpineText"></p>
|
|
</div>
|
|
|
|
<button class="button primary spine-button" id="primaryCubeButton" type="button">
|
|
En attente des joueurs
|
|
</button>
|
|
</article>
|
|
|
|
<article class="player-zone" id="whiteCubeZone">
|
|
<div class="zone-inner">
|
|
<div class="zone-head">
|
|
<div>
|
|
<span class="seat-tag light-seat">Blanc</span>
|
|
<h2 id="whiteNameCube">Blanc</h2>
|
|
</div>
|
|
<div class="zone-stats">
|
|
<strong id="whiteCubeResult">--</strong>
|
|
<span id="whiteCubeCap"></span>
|
|
</div>
|
|
</div>
|
|
|
|
<button class="zone-button light-button" id="whiteCubeButton" type="button">
|
|
Démarrer mon chrono
|
|
</button>
|
|
|
|
<p class="zone-foot" id="whiteHintCube"></p>
|
|
</div>
|
|
</article>
|
|
</section>
|
|
</main>
|
|
|
|
<section class="modal hidden" id="cubeHelpModal" aria-hidden="true">
|
|
<div class="modal-backdrop" data-close-cube-modal="true"></div>
|
|
<div class="modal-card">
|
|
<div class="modal-head">
|
|
<div>
|
|
<p class="eyebrow">Outils arbitre</p>
|
|
<h2>Phase cube</h2>
|
|
</div>
|
|
<button class="button ghost small" id="closeCubeHelpButton" type="button">
|
|
Fermer
|
|
</button>
|
|
</div>
|
|
|
|
<p class="section-copy" id="cubeHelpStatus"></p>
|
|
|
|
<div class="modal-actions">
|
|
<button class="button secondary" id="replayCubeButton" type="button">
|
|
Rejouer la phase cube
|
|
</button>
|
|
<button class="button ghost danger" id="cubeResetButton" type="button">
|
|
Réinitialiser le match
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="modal hidden" id="cubeResultModal" aria-hidden="true">
|
|
<div class="modal-backdrop" data-close-cube-result-modal="true"></div>
|
|
<div class="modal-card result-modal-card">
|
|
<div class="modal-head">
|
|
<div>
|
|
<p class="eyebrow">Fin de phase cube</p>
|
|
<h2 id="cubeResultModalTitle">Résumé du cube</h2>
|
|
</div>
|
|
<button class="button ghost small" id="closeCubeResultButton" type="button">
|
|
Fermer
|
|
</button>
|
|
</div>
|
|
|
|
<p class="section-copy" id="cubeResultSummary"></p>
|
|
|
|
<div class="cube-result-overview">
|
|
<article class="result-pill-card">
|
|
<span>Vainqueur cube</span>
|
|
<strong id="cubeResultWinner">--</strong>
|
|
</article>
|
|
<article class="result-pill-card">
|
|
<span>Suite</span>
|
|
<strong id="cubeResultOutcome">--</strong>
|
|
</article>
|
|
</div>
|
|
|
|
<div class="cube-result-player-grid">
|
|
<article class="cube-result-player-card">
|
|
<span class="seat-tag light-seat">Blanc</span>
|
|
<strong id="cubeResultWhiteName">Blanc</strong>
|
|
<span id="cubeResultWhiteTime">Temps cube --</span>
|
|
<span id="cubeResultWhiteDetail">Résultat --</span>
|
|
<span id="cubeResultWhiteClock">Chrono après --</span>
|
|
</article>
|
|
<article class="cube-result-player-card">
|
|
<span class="seat-tag dark-seat">Noir</span>
|
|
<strong id="cubeResultBlackName">Noir</strong>
|
|
<span id="cubeResultBlackTime">Temps cube --</span>
|
|
<span id="cubeResultBlackDetail">Résultat --</span>
|
|
<span id="cubeResultBlackClock">Chrono après --</span>
|
|
</article>
|
|
</div>
|
|
|
|
<div class="modal-actions">
|
|
<button class="button primary" id="cubeResultActionButton" type="button">
|
|
Appliquer et ouvrir la page chrono
|
|
</button>
|
|
<button class="button ghost" id="cubeResultDismissButton" type="button">
|
|
Revenir à la phase cube
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<script>
|
|
const appScript = document.createElement("script");
|
|
appScript.type = "module";
|
|
appScript.src = window.__CHESSCUBING_ASSET_URL__("app.js");
|
|
document.body.append(appScript);
|
|
</script>
|
|
</body>
|
|
</html>
|