-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
155 lines (142 loc) · 6.04 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BJCP 2021 Styleviewer</title>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" />
<style>
span.twitter-typeahead {
width: 100%;
}
.tt-menu {
width: 100%;
}
.tt-dataset {
max-height: 600px;
overflow-y: scroll;
background: #f8f9fa;
padding: 0 10px;
}
.bar {
border: 1px solid #ccc;
border-radius: 2px;
height: 12px;
background: #fafafa;
}
.bar.comp {
border-top: none;
}
.rangebar {
background: #a2aac5;
background-image: linear-gradient(to right, #5a626b, #3a444f);
height: 100%;
}
main>div {
padding-bottom: 0.5em;
}
label {
font-weight: bold;
}
.comp {
display: none;
color: #888;
}
#compSwap .btn {
font-size: 90%;
}
body {
position: relative;
min-height: 100vh;
}
main {
padding-bottom: 4em;
}
footer {
border-top: 1px solid #888;
background: #fafafa;
text-align: center;
padding: 0.5em 0;
margin-top: 1em;
position: absolute;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<main class="container">
<h1 class="text-center">BJCP 2021 Styleviewer</h1>
<div>
<label for="styleSelector">Style:</label>
<input class="typeahead form-control w-100" type="text" id="styleSelector" placeholder="Style name">
</div>
<div>
<label for="compSelector">Compare To:</label>
<input class="typeahead form-control w-100" type="text" id="compSelector" placeholder="Style name or blank">
</div>
<div id="compSwap" class="d-none">
<button type="button" class="btn btn-light border border-secondary p-1 py-0">Swap Styles</button>
</div>
<div class="descript-group"><label for="ibumin">IBU:</label> <span id="ibumin"> </span>-<span
id="ibumax"> </span>
<span class="comp fst-italic">vs
<span id="ibuminComp"> </span>-<span id="ibumaxComp"></span>
</span>
<div id="ibubar" class="bar"></div>
<div id="ibubarComp" class="bar comp"></div>
</div>
<div class="descript-group"><label for="abvmin">ABV:</label> <span id="abvmin"> </span>-<span
id="abvmax"> </span>
<span class="comp fst-italic">vs
<span id="abvminComp"> </span>-<span id="abvmaxComp"></span>
</span>
<div id="abvbar" class="bar"></div>
<div id="abvbarComp" class="bar comp"></div>
</div>
<div class="descript-group"><label for="ogmin">OG:</label> <span id="ogmin"> </span>-<span
id="ogmax"> </span>
<span class="comp fst-italic">vs
<span id="ogminComp"> </span>-<span id="ogmaxComp"></span>
</span>
<div id="ogbar" class="bar"></div>
<div id="ogbarComp" class="bar comp"></div>
</div>
<div class="descript-group"><label for="srmmin">SRM:</label>
<span id="srmmin"> </span>-<span id="srmmax"></span>
<span class="comp fst-italic">vs
<span id="srmminComp"> </span>-<span id="srmmaxComp"></span>
</span>
<div id="srmbar" class="bar"></div>
<div id="srmbarComp" class="bar comp"></div>
</div>
<div class="descript-group"><label for="category">Category:</label> <span id="category"> </span></div>
<div class="descript-group"><label for="number">Style #:</label> <span id="number"> </span></div>
<div class="descript-group"><label for="overallimpression">Info:</label> <span id="overallimpression"> </span></div>
<div class="descript-group"><label for="appearance">Appearance:</label> <span id="appearance"> </span></div>
<div class="descript-group"><label for="aroma">Aroma:</label> <span id="aroma"> </span></div>
<div class="descript-group"><label for="flavor">Flavor:</label> <span id="flavor"> </span></div>
<div class="descript-group"><label for="mouthfeel">Mouthfeel:</label> <span id="mouthfeel"> </span></div>
<div class="descript-group"><label for="history">History:</label> <span id="history"> </span></div>
<div class="descript-group"><label for="characteristicingredients">Characteristic Ingredients:</label> <span id="characteristicingredients"> </span></div>
<div class="descript-group"><label for="stylecomparison">Style Comparisons:</label> <span id="stylecomparison"> </span></div>
<div class="descript-group"><label for="comments">Comments:</label> <span id="comments"> </span></div>
<div class="descript-group"><label for="entryinstructions">Entry Instructions:</label> <span id="entryinstructions"> </span></div>
<div class="descript-group"><label for="commercialexamples">Commercial Examples:</label> <span id="commercialexamples"> </span></div>
</main>
<footer>All style information Copyright © 2021, <a href="https://www.bjcp.org/bjcp-style-guidelines/">BJCP</a>. Updated 9/8/2022.</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"
integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/typeahead.js/0.11.1/typeahead.bundle.min.js"
integrity="sha512-qOBWNAMfkz+vXXgbh0Wz7qYSLZp6c14R0bZeVX2TdQxWpuKr6yHjBIM69fcF8Ve4GUX6B6AKRQJqiiAmwvmUmQ=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0"
crossorigin="anonymous"></script>
<script src="beerReader.js"></script>
</body>
</html>