forked from rollerderby/scoreboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.html
70 lines (53 loc) · 1.44 KB
/
start.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<html>
<head>
<title>
CRG ScoreBoard Start Page
</title>
<script type="text/javascript" src="html/external/jquery/jquery.js" ></script>
<script type="text/javascript" >
function runningCheck() {
$.ajax({ url: "http://localhost:8000/running-test.js", dataType: "script" });
}
var nChecks = 0;
$(function() {
var recheck = setInterval(function() {
if (window._crgScoreBoardIsRunning) {
$("p#Checking,p#NotStarted").hide();
$("p#Started").show();
clearInterval(recheck);
window.location.href = "http://localhost:8000/";
} else {
runningCheck();
if (nChecks++ > 4) {
$("p#Checking").hide();
$("p#NotStarted").show();
}
}
}, 500);
runningCheck();
});
</script>
<style type="text/css" >
p#header { text-align: center; font-weight: bold; font-size: 30px; }
p#header>img { height: 150px; }
p#NotStarted,p#Started { display: none; }
</style>
</head>
<body>
<p id="header" >
<a>CRG Browser-based Roller Derby Scoreboard</a>
<hr/>
</p>
<p id="Checking" >
Checking if the scoreboard is running...
</p>
<p id="NotStarted" >
<b>It appears the CRG ScoreBoard is not running - this page will automatically update once you start the scoreboard.</b>
<br/>
Please check the instructions in the <a href="README.md">README</a> file on how to start the scoreboard.
</p>
<p id="Started" >
<a href="http://localhost:8000/">CRG ScoreBoard</a> is running - redirecting you there.
</p>
</body>
</html>