54 lines
2.1 KiB
HTML
54 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Schnitzeljagd</title>
|
|
<meta charset="utf-8">
|
|
<meta name="theme-color" content="#c50e1f">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
<link href="/game/style.css" rel="stylesheet" type="text/css">
|
|
<script>
|
|
// 1st script, prepares values needed for writing document
|
|
function getParams() {
|
|
var qparams = document.location.search.substr(1)
|
|
if (qparams == "") return {}
|
|
qparams = qparams.split('&')
|
|
var qps = {}
|
|
for (var qparam of qparams) {
|
|
var vals = qparam.split('=')
|
|
qps[vals[0]] = vals[1] || null
|
|
}
|
|
return qps
|
|
}
|
|
var qp = getParams()
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1><script>
|
|
document.write(qp.checkpoint ? ("Checkpoint<br>" + qp.checkpoint) : 'Schnitzeljagd<br>V 0.1')
|
|
</script></h1>
|
|
<div id="startpage">
|
|
This is a web app to track games at the 20J FaSTTUBe festival.<br><br>
|
|
If you've reached this page that either means your're testing
|
|
things or something has gone quite wrong with the URL.<br>
|
|
In the former case: Yay it works! In the latter you should
|
|
probably contact an admin or a dev nearby :(<br><br>
|
|
Here are a few links for testing:<br>
|
|
<a href="/game/view">View Data</a>,
|
|
<a href="/game/QRgen">Checkpoint Generator</a>,
|
|
<a href="/game?game=schnitzeljagd&checkpoint=Test42&askname=true">Test Checkpoint</a>
|
|
<br><br>
|
|
© 2025 made by <a target="_blank" href="mailto:o.winkels@fasttube.de">Oskar</a>
|
|
for <a target="_blank" href="//fasttube.de">FaSTTUBe</a>.<br>
|
|
For source code & licensing see <a href="//git.fasttube.de/FaSTTUBe/schnitzeljagd">git repo</a>
|
|
</div>
|
|
<form id="mainform" action="javascript:void(0);" style="display: none">
|
|
<label>
|
|
Vollständiger Name:<br>
|
|
<input type="text" name="name" id="name" placeholder="Max Mustermensch" required disabled>
|
|
</label>
|
|
<input type="submit" value="Einchecken">
|
|
</form>
|
|
<script src="/game/main.js"></script>
|
|
</body>
|
|
</html>
|