Files
gd-list/roulette.html
T
miles 90310fd671 Add run submission & admin moderation
Add a live run submission workflow and admin moderation UI.

- Add run.html: new page to submit runs (video, raw footage, notes) and show recent submissions.
- Update admelist.html: admin overview plus run queue table for reviewing/approving/rejecting/deleting submissions.
- Update app.js: client-side support for runs (load/refresh/caching, SSE "runs-update", admin review actions, run submission handling, and graceful fallback when no server is available).
- Server changes: add server/runs.json, implement /api/runs (GET, POST) and /api/runs/:id (PUT, DELETE) in server/server.js, ensure runs file, emit runs-update events, broaden CORS, set BASE path (/fedl) and default port 8090.
- Add styles for admin overview, run submission UI and submission cards in styles.css.
- Update README with run/admin pages and example URLs, adjust start-server.command to use PORT=8090, and minor note in LINUX_SERVICE_SETUP.txt.

Notes: live submission/review features require running the Node server; client falls back to static behavior when served from file:// or when server is unavailable.
2026-03-31 21:24:50 -05:00

70 lines
2.7 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Demon Roulette - GD fedl</title>
<link rel="stylesheet" href="styles.css">
</head>
<body data-page="roulette">
<header>
<h1>Demon Roulette</h1>
<nav>
<a href="index.html">Home</a>
<a href="lists.html">Lists</a>
<a href="run.html">Submit Run</a>
<a href="players.html">Players</a>
<a href="rules.html">Rules</a>
<a href="admelist.html">Admin</a>
</nav>
</header>
<main>
<section class="roulette-shell">
<section class="panel roulette-panel">
<div class="roulette-head">
<div>
<p class="roulette-kicker">Random Challenge</p>
<h2>Demon Roulette</h2>
<p class="muted roulette-intro">Spin the FEDL list to get a random demon for your next roulette run, practice grind, or bad decision.</p>
</div>
<button class="btn roulette-btn" id="roulette-spin" type="button">Spin</button>
</div>
<div class="roulette-card" id="roulette-card">
<p class="roulette-status muted" id="roulette-status">Press spin to choose a demon.</p>
<h3 id="roulette-title">No demon selected</h3>
<p class="roulette-rank" id="roulette-rank">Rank: -</p>
<p class="roulette-meta" id="roulette-level-id">Level ID: -</p>
<p class="roulette-note muted" id="roulette-note">Level IDs come from your local file first, then API lookup if needed.</p>
<a class="btn roulette-open" id="roulette-open" href="#" target="_blank" rel="noopener noreferrer" hidden>Open Video</a>
</div>
</section>
<aside class="panel roulette-rules-card">
<p class="roulette-kicker">How It Works</p>
<h2>Quick rules</h2>
<div class="roulette-rule-list">
<article>
<strong>Pick from a list</strong>
<p>Use FEDL or any demon list format you want for your roulette session.</p>
</article>
<article>
<strong>Raise the target</strong>
<p>A common setup starts at 1% and increases by 1% after each new level.</p>
</article>
<article>
<strong>Use your own rules</strong>
<p>Skips, rerolls, and loss conditions can be adjusted to match your challenge format.</p>
</article>
<article>
<strong>Extra data included</strong>
<p>This page shows rank and level ID, and it tries API lookup when local info is missing.</p>
</article>
</div>
</aside>
</section>
</main>
<script src="app.js"></script>
</body>
</html>