-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (63 loc) · 2.68 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
<html>
<head>
<title>World Cup matches parser</title>
<link rel="stylesheet" type="text/css" href="bower_components/bootstrap/dist/css/bootstrap.css">
<link type="text/css" rel="stylesheet" href="tooltip/themes/1/tooltip.css">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1>World Cup 2014 matches today</h1>
<div id="info">
</div>
<div id="matchesTodayContainer" class="container">
</div>
<span id="tooltipped"class="tooltip" onmouseover="tooltip.pop(this, '#demo2_tip')">
Hover me
</span>
<div style="display:none;">
<div id="current_team_tooltip">
</div>
</div>
<script src="tooltip/themes/1/tooltip.js"></script>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/handlebars/handlebars.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="app.js"></script>
<script id="tooltip-template" type="text/x-handlebars-template">
<h3>{{country}}</h3>
<p>{{country}} is in {{group_letter}} group. With {{wins}} wins, {{draws}} draws, {{losses}} losses in {{games_played}} games played.</p>
</script>
<script id="tooltip-text-template" type="text/x-handlebars-template">
{{country}} is in {{group_letter}} group. With {{wins}} wins, {{draws}} draws, {{losses}} losses in {{games_played}} games played.
</script>
<script id="single-match" type="text/x-handlebars-template">
<div class="row">
{{#if isInProgress}}
<h4>{{minutesPlayed}}</h4>
<div class="progress progress-striped active">
<div class="progress-bar" role="progressbar" aria-valuenow="{{minutesPlayed}}" aria-valuemin="0" aria-valuemax="90">
<span class="sr-only">{{minutesPlayed}}</span>
</div>
</div>
{{/if}}
{{#if isMatchFullTime}}
<h4>Full-time</h4>
{{/if}}
{{#if isUpcoming}}
<h4>Starts at: {{formattedStartTime}}</h4>
<div class="progress progress-striped active">
<div class="progress-bar" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="90">
<span class="sr-only">{{minutesPlayed}}</span>
</div>
</div>
{{/if}}
<div class="col-md-5 team-area" data-teamname="{{home_team.code}}">
<span class="team-name">{{home_team.country}}</span><img src="images/flags/{{home_team.code}}.png"><span class="goal">{{home_team.goals}}</span>
</div>
<div class="col-md-5 team-area" data-teamname="{{away_team.code}}">
<span class="goal">{{away_team.goals}}</span><img src="images/flags/{{away_team.code}}.png"><span class="team-name">{{away_team.country}}</span>
</div>
</div>
</script>
</body>
</html>