primo commit

This commit is contained in:
2026-09-23 18:59:27 +02:00
parent 029e9f67fb
commit bd900099a0
451 changed files with 143273 additions and 2 deletions
+89
View File
@@ -0,0 +1,89 @@
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Galaxy Viewer — OGame</title>
<link rel="stylesheet" href="/static/style.css?v=5">
</head>
<body>
<canvas id="space" aria-hidden="true"></canvas>
<div id="app">
<header id="topbar">
<div class="brand">
<span class="logo"><svg width="20" height="20" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="5" fill="none" stroke="currentColor" stroke-width="2"/><ellipse cx="12" cy="12" rx="10" ry="3.4" fill="none" stroke="currentColor" stroke-width="1.4" transform="rotate(-22 12 12)"/></svg></span>
<span>
<span id="universe-name">Galaxy Viewer</span>
<span id="universe-sub" class="dim"></span>
</span>
</div>
<div class="tools">
<div class="nav-group">
<button id="btn-prev-sys" title="Sistema precedente"><svg width="15" height="15" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 5.5L8 12l6.5 6.5" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
<label>G <input id="inp-galaxy" type="number" min="1" value="1"></label>
<span class="dim">/ <span id="max-galaxy">?</span></span>
<label>S <input id="inp-system" type="number" min="1" value="1"></label>
<span class="dim">/ <span id="max-system">?</span></span>
<button id="btn-next-sys" title="Sistema successivo"><svg width="15" height="15" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9.5 5.5L16 12l-6.5 6.5" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
</div>
<button id="btn-refresh" title="Ricarica la vista"><svg width="16" height="16" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20 12a8 8 0 1 1-2.34-5.66" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/><path d="M20 3.5V8h-4.5" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
<a class="toplink" href="/rankings" title="Classifiche e ricerca giocatori"><span class="tl-ico"></span> Classifiche</a>
</div>
</header>
<section id="meta-bar">
<span id="meta-data-age" class="dim"></span>
<span id="meta-reports" class="dim"></span>
<span id="nav-status"></span>
</section>
<section id="import-box">
<span class="lbl" id="import-label">Nuovo rapporto</span>
<input id="inp-token" type="text" spellcheck="false"
placeholder="API string, es. sr-ar-170-98018ad7...">
<button id="btn-import">Importa</button>
<span id="import-msg"></span>
</section>
<main id="galaxy-wrap">
<table id="galaxy">
<thead>
<tr>
<th class="c-pos">Pos</th>
<th>Pianeta</th>
<th>Luna</th>
<th>Giocatore</th>
<th>Alleanza</th>
<th class="c-rep">Spie</th>
</tr>
</thead>
<tbody id="galaxy-body"></tbody>
</table>
<div id="empty-state" class="empty-note hidden">Nessun pianeta in questo sistema.</div>
</main>
<footer class="dim">API pubblica OGame · aggiornamento giornaliero · rapporti archiviati localmente · icone: <a href="https://game-icons.net" target="_blank" rel="noopener">game-icons.net</a> (CC BY 3.0)</footer>
</div>
<!-- Popup pianeta / rapporto -->
<div id="overlay" class="hidden">
<div id="popup">
<header id="popup-head">
<div id="popup-avatar" class="avatar"></div>
<div>
<div id="popup-title"></div>
<div id="popup-sub"></div>
</div>
<div class="spacer"></div>
<button class="icon-btn" id="popup-close" title="Chiudi"><svg width="16" height="16" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 6l12 12M18 6L6 18" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/></svg></button>
</header>
<div id="popup-body"></div>
</div>
</div>
<script src="/static/icons.js?v=1"></script>
<script src="/static/common.js?v=5"></script>
<script src="/static/app.js?v=5"></script>
</body>
</html>