forked from EmilStenstrom/mybgg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
64 lines (59 loc) · 2.27 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
<!DOCTYPE html>
<html>
<head>
<title>Geekway to the West - Library</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">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.7.4/dist/instantsearch.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.7.4/dist/instantsearch-theme-algolia.min.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,700">
<script src="https://cdn.jsdelivr.net/npm/instantsearch.js@2.7.4"></script>
</head>
<body>
<header>
<h1>All my boardgames</h1>
</header>
<article>
<main>
<div class="search-box" id="search-box"></div>
<div id="stats"></div>
<div class="hits" id="hits"></div>
<div id="pagination"></div>
<a href="https://www.algolia.com"><img src="search-by-algolia.png" width="130" height="18"></a>
</main>
<aside>
<div class="clear-all" id="clear-all"></div>
<h2>Filter games</h2>
<div class="facet" id="facet-players"></div>
<div class="facet" id="facet-playing-time"></div>
<div class="facet" id="facet-weight"></div>
<div class="facet" id="facet-categories"></div>
<div class="facet" id="facet-mechanics"></div>
</aside>
</article>
<script type="text/html" id="hits-template">
<details>
<summary>
<div class="wrapper">
<div class="image" style="background-image: url({{{ image }}})"></div>
<h2>
{{{ _highlightResult.name.value }}}
</h2>
</div>
</summary>
<table>
<tr><th>Players</th><td>{{ players }}</td></tr>
<tr><th>Playing time</th><td>{{ playing_time }}</td></tr>
<tr><th>Complexity</th><td>{{ weight }}</td></tr>
<tr><th>Categories</th><td>{{ categories }}</td></tr>
<tr><th>Mechanics</th><td>{{ mechanics }}</td></tr>
</table>
<p><a href="https://boardgamegeek.com/boardgame/{{{ id }}}">Read more on Boardgamegeek</a></p>
<p>{{{ _highlightResult.description.value }}}</p>
</details>
</script>
<script src="app.js"></script>
</body>
</html>