Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 37 additions & 37 deletions Goalcounter.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html lang="de">
<head>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<meta name="apple-mobile-web-app-capable" content="yes">
Expand All @@ -12,40 +12,40 @@
<link rel="manifest" href="manifest.webmanifest">
<link rel="stylesheet" href="css/style.css">
<title>Torstand</title>
</head>
<body>
<div id="sb">
<div style="flex:1"><button id="tt" onclick="toggleTimer()">▶ Start</button></div>
<div style="text-align:center"><div id="timer">00:00</div><div id="ri">Paarung 1 von 3</div></div>
<div style="flex:1;display:flex;justify-content:flex-end"><button id="undo" onclick="undoGoal()">↩️ Rückgängig</button></div>
</div>
<div id="ga">
<div class="team" id="t1" onclick="addGoal(1)">
<img class="logo" id="l1" src="https://www.og1o.com/_assets/625e2d6cb54141905b51c20d13baa45b/Images/oneo-logo.svg" alt="one.O">
<div class="sc" id="s1">0</div>
<div class="hi">Tippen zum Zählen</div>
<div class="rows" id="d1"></div>
</div>
<button id="swp" onclick="swapTeams()" aria-label="Seiten tauschen" title="Seiten tauschen">⇄</button>
<div id="kball" onclick="kickoffClick()">⚽</div>
<div class="team" id="t2" onclick="addGoal(2)">
<div class="tn" id="t2n">Team 2</div>
<div class="sc" id="s2">0</div>
<div class="hi">Tippen zum Zählen</div>
<div class="rows" id="d2"></div>
</div>
</div>
<button class="fxb" id="stg" onclick="openSettings()" aria-label="Einstellungen">⚙️</button>
<button class="fxb" id="rst" onclick="resetScores()">🔄 Neu starten</button>
<button class="fxb" id="lgt" onclick="toggleLog()">📋 Tore</button>
<div id="lgp"><h3>⚽ Tor-Protokoll</h3><div id="lge"></div></div>
<div id="ro" class="ov"><h2 id="rt"></h2><p id="rs"></p><p id="rsc"></p><button onclick="dismissRound()">Weiter spielen ▶</button></div>
<div id="wo" class="ov"><h1 id="wt"></h1><p id="ws"></p><p id="wti"></p><button onclick="resetScores()">🔄 Neues Spiel</button><button class="obtn" onclick="dismissWinner()">📋 Protokoll ansehen</button></div>
<div id="so" class="ov">
<h2>⚙️ Teams einstellen</h2>
<label>🏠 Heimteam</label><div id="t1p"></div>
<div id="cw"><label>Logo-URL</label><input type="text" id="curl" placeholder="https://..."><label>Oder Datei</label><input type="file" id="cfile" accept="image/*" style="color:white;font-size:.8rem;margin-top:4px"></div>
<label>Farbe Heimteam</label><div class="crow" id="c1"></div>
</head>
<body>
<div id="sb">
<div style="flex:1"><button id="tt" onclick="toggleTimer()">▶ Start</button></div>
<div style="text-align:center"><div id="timer">00:00</div><div id="ri">Paarung 1 von 3</div></div>
<div style="flex:1;display:flex;justify-content:flex-end"><button id="undo" onclick="undoGoal()">↩️ Rückgängig</button></div>
</div>
<div id="ga">
<div class="team" id="t1" onclick="addGoal(1)">
<img class="logo" id="l1" src="https://www.og1o.com/_assets/625e2d6cb54141905b51c20d13baa45b/Images/oneo-logo.svg" alt="one.O">
<div class="sc" id="s1">0</div>
<div class="hi">Tippen zum Zählen</div>
<div class="rows" id="d1"></div>
</div>
<button id="swp" onclick="swapTeams()" aria-label="Seiten tauschen" title="Seiten tauschen">⇄</button>
<div id="kball" onclick="kickoffClick()">⚽</div>
<div class="team" id="t2" onclick="addGoal(2)">
<div class="tn" id="t2n">Team 2</div>
<div class="sc" id="s2">0</div>
<div class="hi">Tippen zum Zählen</div>
<div class="rows" id="d2"></div>
</div>
</div>
<button class="fxb" id="stg" onclick="openSettings()" aria-label="Einstellungen">⚙️</button>
<button class="fxb" id="rst" onclick="resetScores()">🔄 Neu starten</button>
<button class="fxb" id="lgt" onclick="toggleLog()">📋 Tore</button>
<div id="lgp"><h3>⚽ Tor-Protokoll</h3><div id="lge"></div></div>
<div id="ro" class="ov"><h2 id="rt"></h2><p id="rs"></p><p id="rsc"></p><button onclick="dismissRound()">Weiter spielen ▶</button></div>
<div id="wo" class="ov"><h1 id="wt"></h1><p id="ws"></p><p id="wti"></p><button onclick="resetScores()">🔄 Neues Spiel</button><button class="obtn" onclick="dismissWinner()">📋 Protokoll ansehen</button></div>
<div id="so" class="ov">
<h2>⚙️ Teams einstellen</h2>
<label>🏠 Heimteam</label><select class="tsel" id="t1s" onchange="T1PickChange()"></select>
<div id="cw"><label>Logo-URL</label><input type="text" id="curl" placeholder="https://..."><label>Oder Datei</label><input type="file" id="cfile" accept="image/*" style="color:white;font-size:.8rem;margin-top:4px"></div>
<label>Farbe Heimteam</label><div class="crow" id="c1"></div>
<label>Gastteam Name</label><input type="text" id="ni" placeholder="Team 2" maxlength="20">
<label>Farbe Gastteam</label><div class="crow" id="c2"></div>
<label>Spielphase</label>
Expand Down
1 change: 1 addition & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ body{height:100vh;display:flex;flex-direction:column;font-family:Arial,sans-seri
#so{background:rgba(0,0,0,.92)}
.ov h1{font-size:2.5rem}.ov h2{font-size:1.8rem}.ov p{font-size:1rem;opacity:.8}
.ov button{margin-top:6px;padding:10px 24px;border:none;border-radius:24px;background:white;color:#1a1a2e;font-size:1rem;font-weight:bold;cursor:pointer}
.ov select{margin-top:6px;padding:10px 24px;border:none;border-radius:24px;background:white;color:#1a1a2e;font-size:1rem;font-weight:bold;cursor:pointer}
.obtn{background:rgba(255,255,255,.2)!important;color:white!important}
.ov label{font-size:.85rem;opacity:.8;display:block;margin-top:10px;margin-bottom:3px}
.ov input[type=text]{width:200px;padding:8px 12px;border-radius:12px;border:none;font-size:.9rem;text-align:center}
Expand Down
5 changes: 3 additions & 2 deletions js/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.