-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
113 lines (96 loc) · 3.39 KB
/
index.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE HTML>
<html>
<head>
<title>Live Score</title>
<link rel="stylesheet" href="css/tables.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" title="style" />
<link rel="shortcut icon" href="images/favicon.ico" />
</head>
<body>
<div id="main">
<div id="header">
<div id="logo">
<div id="logo_text">
<h1><a href="index.html">Live<span class="logo_colour">Score</span></a></h1>
<h2>A simple, live updating scoreboard.</h2>
</div>
</div>
</div>
<div id="site_content">
<div id="content">
<h1>Teams</h1>
<p><i>To edit, just click on the field, then click somewhere else to save.</i></p>
<!-- The table data where we store our data -->
<table id="scoreTable">
</table>
<br />
<a href="#" id="addNewTeam">Add New Team</a>
<a href="#" id="addNewRound">Add New Round</a>
<a href="#" id="resetTable">Reset Table</a>
<a href="#" id="roundScoreBoard">Popup Scoreboard</a>
<h1>Live Scoreboard</h1>
<p><i>This updates any time you edit the above scoreboard.</i></p>
<div class="demo">
<table id="liveScores" cellspacing="5">
<thead>
<tr>
<th class="anim:update anim:number">Position</th>
<th class="anim:id">Name</th>
<th class="anim:update anim:sort anim:number">Score</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<br /><br /><br />
<h4>Subscribe to/create update channel</h4>
<p>
<i>This allows other computers to update the scores.<br />
Server address is the location of your node server, which should be running <code>node/server.js</code>.
<br />The host should "create" a channel, everyone else should subscribe.</i>
</p>
<div id="subscribeCreate">
<div id="statusMessage"></div>
<form>
Server Address: <input type="text" id="serverAddress" placeholder="127.0.0.1:1234" /><br />
Channel Name: <input type="text" id="channelName" placeholder="any word" /><br /><br />
<input type="button" id="subscribe" value="Subscribe to Channel" />
<input type="button" id="create" value="Create New Channel" />
</form><br />
<div id="forceUpdateArea"><a href="#" id="forceUpdate">Force Update</a>
<i id="forceUpdateMessage">If client request update from host. If host, send update to all clients.</i>
<br /></div><br />
<div id="statusArea">
Console:
<div id="status" class="console"> </div>
</div>
</div>
</div>
</div>
<div id="footer">
Copyright © Pez Cuckow
</div>
</div>
<!-- Hidden table that provides the default data -->
<table id="emptyScoreTable" cellspacing="5" style="display:none">
<thead>
<th>Name</th>
</thead>
<tbody>
<tr>
<td>Team 1</td>
</tr>
</tbody>
</table>
</div>
</body>
<!-- Our JS -->
<script src="js/lib/jquery-1.7.2.min.js"></script>
<script src="js/lib/animator.js"></script>
<script src="js/lib/sorttables.js"></script>
<script src="js/lib/rankingTableUpdate.js"></script>
<script src="js/PubSubSocket.js"></script>
<script src="js/tables.js"></script>
<script src="js/scoreboard.js"></script>
</html>