-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtemplate.html
More file actions
157 lines (138 loc) · 5.08 KB
/
template.html
File metadata and controls
157 lines (138 loc) · 5.08 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>{title}</title>
<!-- Bootstrap -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.22.1/css/theme.bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/rickshaw/1.5.1/rickshaw.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/rickshaw/1.5.1/rickshaw.min.js"></script>
<script>
$(function(){
var table = $("table#ranking");
table.tablesorter({
textExtraction : function(node, table, cellIndex){
n = $(node);
return n.attr('data-sort-value') || n.text();
}});
table.bind("sortEnd",function() {
var i = 1;
table.find("tr:gt(0)").each(function(){
$(this).find("td:eq(0)").text(i);
i++;
});
});
});
</script>
{% if long %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-17830334-3', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
<style type="text/css">
th[data-sort]{
cursor:pointer;
}
td {
text-align: right;
}
tfoot td
{
background-color: white !important;
font-weight: normal !important;
}
.tablesorter-bootstrap .tablesorter-header-inner
{
padding: 0px 3px;
}
.nav>li>a
{
padding: 7px 10px !important;
}
</style>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-timeago/1.4.1/jquery.timeago.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.22.1/js/jquery.tablesorter.js"></script>
<script>
jQuery(document).ready(function() {
jQuery("abbr.timeago").timeago();
jQuery.timeago.settings.strings = {
prefixAgo: null,
prefixFromNow: null,
suffixAgo: "ago",
suffixFromNow: "",
seconds: "<1m",
minute: "1m",
minutes: "%dm",
hour: "1h",
hours: "%dh",
day: "1d",
days: "%dd",
month: "1mo",
months: "%dmo",
year: "1yr",
years: "%dyr",
wordSeparator: " ",
numbers: []
};
jQuery("abbr.timeago-short").timeago();
});
</script>
</head>
<body>
<div class="container-fluid" style="padding-left: {container-padding}px; padding-right: {container-padding}px;">
{% if long %}
<h1>{title}</h1>
<p>Last updated: {date} |
<a href="/steamgame/">Leaderboard</a> |
Previous days: <a href="/steamgame/day4.html">4</a>, <a href="/steamgame/day5.html">5</a>, <a href="/steamgame/day6.html">6</a>, <a href="/steamgame/day7.html">7</a>, <a href="/steamgame/day8.html">8</a>, <a href="/steamgame/day9.html">9</a>, <a href="/steamgame/day10.html">10</a> |
My <a href="http://steamcommunity.com/id/therealdrx">Steam</a> for issues |
<a href="https://github.com/drx/steamgame">Github</a> |
<a href="/steamgame/data/">Historical data</a>
</p>
{% endif %}
{extra_content}
{% if long %}
<ul class="nav nav-tabs" style="margin-bottom: -1px">
{nav}
</ul>
{% endif %}
<table class="table table-condensed table-hover table-bordered tablesorter tablesorter-bootstrap" id="ranking">
<thead>
{thead}
</thead>
<tbody>
{tbody}
</tbody>
<tfoot>
{tfoot}
</tfoot>
</table>
{% if long %}
{graphs}
<p class="text-center"><small>Powered by Steam. Generated in {run_time}s.</small></p>
</div>
{% endif %}
</body>
</html>