-
-
Notifications
You must be signed in to change notification settings - Fork 134
/
Copy pathindex.html
114 lines (112 loc) · 4.09 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
114
<!DOCTYPE html>
<html>
<head>
<title>All my boardgames</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=0.7">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/algoliasearch-lite.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/instantsearch.production.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/themes/reset-min.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,700&display=swap">
</head>
<body>
<header class="search">
<img class="logo" src="favicon.ico" height="36" width="36">
<div class="search-box" id="search-box"></div>
<label>Sort by:</label>
<div class="sort-by" id="sort-by"></div>
<div class="stats" id="stats"></div>
<a class="ref" href="https://www.algolia.com"><img src="search-by-algolia.png" width="130" height="18"></a>
</header>
<article class="wrapper">
<aside class="facets">
<div class="facet" id="facet-players" tabindex="0"></div>
<div class="facet" id="facet-playing-time" tabindex="0"></div>
<div class="facet" id="facet-weight" tabindex="0"></div>
<div class="facet" id="facet-categories" tabindex="0"></div>
<div class="facet" id="facet-mechanics" tabindex="0"></div>
<div class="facet" id="facet-min-age" tabindex="0"></div>
<div class="facet" id="facet-previous-players" tabindex="0"></div>
<div class="facet" id="facet-numplays" tabindex="0"></div>
<div class="clear-all" id="clear-all"></div>
</aside>
<main class="results">
<div class="hits" id="hits"></div>
<div id="pagination"></div>
</main>
</article>
<script type="text/html" id="hits-template">
<details class="game-wrapper">
<summary>
<div class="game">
<img src="{{{ image }}}" data-maincolor="{{{ color }}}" alt="{{{ name }}}">
</div>
</summary>
<div class="game-details">
<h2 class="heading">
<a href="https://boardgamegeek.com/boardgame/{{{ id }}}">
{{# helpers.highlight }}{ "attribute": "name" }{{/ helpers.highlight }}
</a>
</h2>
<dl class="properties">
<div>
<dt>Players</dt>
<dd>{{{ players_str }}}</dd>
</div>
<div>
<dt>Playing time</dt>
<dd>{{ playing_time }}</dd>
</div>
<div>
<dt>Complexity</dt>
<dd>{{ weight }}</dd>
</div>
<div>
<dt>Tags</dt>
<dd>{{ tags_str }}</dd>
</div>
<div>
<dt>Categories</dt>
<dd>
{{# categories_str }}{{ categories_str }}{{/ categories_str }}
{{^ categories_str}}<em>No categories</em>{{/ categories_str }}
</dd>
</div>
<div>
<dt>Mechanics</dt>
<dd>
{{# mechanics_str }}{{ mechanics_str }}{{/ mechanics_str }}
{{^ mechanics_str}}<em>No mechanics</em>{{/ mechanics_str }}
</dd>
</div>
<div>
<dt>Min age</dt>
<dd>{{ min_age }}</dd>
</div>
{{# has_expansions }}
<div class="expansions">
<dt>Expansions</dt>
<dd>
<ul>
{{# expansions }}
<li><a href="https://boardgamegeek.com/boardgame/{{{ id }}}">{{ name }}</a></li>
{{/ expansions }}
</ul>
{{# has_more_expansions }}
<a href="{{ has_more_expansions_url }}">... see all expansions</a>
{{/ has_more_expansions }}
</dd>
</div>
{{/ has_expansions }}
</dl>
<p class="description">
{{# helpers.highlight }}{ "attribute": "description" }{{/ helpers.highlight }}
</p>
</div>
</details>
</script>
<script src="app.js"></script>
</body>
</html>