/
checkins.html
54 lines (50 loc) · 1.42 KB
/
checkins.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
---
layout: default
---
<div class="banner">
<h1 class="banner-head">I have had beers on {{ site.data.checkins_by_day | size }} different days</h1>
</div>
<div class="l-content information">
{% assign title = site.data.beers %}
<div class="pure-u-1" id="checkins">
<!--input class="search" placeholder="Filter"-->
<table class="pure-table pure-table-striped" style="width: 100%;">
<thead>
<tr>
<th class="sort" data-sort="year">Year</th>
<th class="sort" data-sort="month" style="min-width: 2.7em;">Month</th>
<th class="sort" data-sort="day" style="min-width: 2.7em;">Day</th>
<th class="sort" data-sort="checkins" style="min-width: 2.7em;">Checkins</th>
<th class="sort" data-sort="unique_checkins" style="min-width: 2.7em;">Unique checkins</th>
</tr>
</thead>
<tbody class="list">
{% for checkin in site.data.checkins_by_day %}
<tr>
<td class="year">
{{ checkin.year }}
</td>
<td class="month">
{{ checkin.month }}
</td>
<td class="day">
{{ checkin.day }}
</td>
<td class="checkins">
{{ checkin.checkins }}
</td>
<td class="unique_checkins">
{{ checkin.unique_checkins }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<script>
let options = {
valueNames: [ "year", "month", "day", "checkins", "unique_checkins" ]
};
let beers = new List("checkins", options);
</script>