-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
43 lines (43 loc) · 1.39 KB
/
example.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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset=utf-8>
<title>Result Viewer</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://cloud.github.com/downloads/SteveSanderson/knockout/knockout-2.0.0.js"></script>
<script type="text/javascript" src="result_viewer.js"></script>
</head>
<body>
<header>
<h1>Result Viewer</h1>
</header>
<div id="list" class="result-list" data-result-list-url="http://whyjustrun.ca/iof/3.0/events/743/result_list.xml">
<div data-bind="foreach: courses">
<h3 data-bind="text: name"></h3>
<div data-bind="if: results().length == 0">
<p><b>No results</b></p>
</div>
<div data-bind="if: results().length > 0">
<table>
<thead>
<tr>
<th>Position</th>
<th>Participant</th>
<th>Time</th>
<th>Points</th>
</tr>
</thead>
<tbody data-bind="foreach: results">
<tr>
<td data-bind="text: position || friendlyStatus"></td>
<td><a data-bind="attr: { href: person.profileUrl }"><span data-bind="text: person.givenName + ' ' + person.familyName"></span></a></td>
<td data-bind="text: time != null ? hours + ':' + minutes + ':' + seconds : ''"></td>
<td data-bind="text: scores['WhyJustRun']"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>