-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rosedale Brewing Company On-Tap Offerings - Example.html
363 lines (348 loc) · 12.3 KB
/
Rosedale Brewing Company On-Tap Offerings - Example.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head><!--Load the AJAX API-->
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
setInterval(function() {
//Particle code
//Keg 1
function Particle1(callback) {
var deviceID = "xxxxxxxxxxxxxxxxxxxxxxxx";
var accessToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
var varName = "Keg1";
requestURL = "https://api.particle.io/v1/devices/" + deviceID + "/" + varName + "/?access_token=" + accessToken;
$.getJSON(requestURL, function(json) {
var Keg1 = json.result;
callback(Keg1);
});
};
//Keg 2
function Particle2(callback) {
var deviceID = "xxxxxxxxxxxxxxxxxxxxxxxx";
var accessToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
var varName = "Keg2";
requestURL = "https://api.particle.io/v1/devices/" + deviceID + "/" + varName + "/?access_token=" + accessToken;
$.getJSON(requestURL, function(json) {
var Keg2 = json.result;
callback(Keg2);
});
};
//Keg 3
function Particle3(callback) {
var deviceID = "xxxxxxxxxxxxxxxxxxxxxxxx";
var accessToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
var varName = "Keg3";
requestURL = "https://api.particle.io/v1/devices/" + deviceID + "/" + varName + "/?access_token=" + accessToken;
$.getJSON(requestURL, function(json) {
var Keg3 = json.result;
callback(Keg3);
});
};
//Keg 4
function Particle4(callback) {
var deviceID = "xxxxxxxxxxxxxxxxxxxxxxxx";
var accessToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
var varName = "Keg4";
requestURL = "https://api.particle.io/v1/devices/" + deviceID + "/" + varName + "/?access_token=" + accessToken;
$.getJSON(requestURL, function(json) {
var Keg4 = json.result;
callback(Keg4);
});
};
//Keg 5
function Particle5(callback) {
var deviceID = "xxxxxxxxxxxxxxxxxxxxxxxx";
var accessToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
var varName = "Keg5";
requestURL = "https://api.particle.io/v1/devices/" + deviceID + "/" + varName + "/?access_token=" + accessToken;
$.getJSON(requestURL, function(json) {
var Keg5 = json.result;
callback(Keg5);
});
};
//Temp
function Particle6(callback) {
var deviceID = "xxxxxxxxxxxxxxxxxxxxxxxx";
var accessToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
var varName = "Temp";
requestURL = "https://api.particle.io/v1/devices/" + deviceID + "/" + varName + "/?access_token=" + accessToken;
$.getJSON(requestURL, function(json) {
var Temp = json.result;
callback(Temp);
});
};
//PSI
function Particle7(callback) {
var deviceID = "xxxxxxxxxxxxxxxxxxxxxxxx";
var accessToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
var varName = "PSI";
requestURL = "https://api.particle.io/v1/devices/" + deviceID + "/" + varName + "/?access_token=" + accessToken;
$.getJSON(requestURL, function(json) {
var PSI = json.result;
callback(PSI);
});
};
//Gas
function Particle8(callback) {
var deviceID = "xxxxxxxxxxxxxxxxxxxxxxxx";
var accessToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
var varName = "Gas";
requestURL = "https://api.particle.io/v1/devices/" + deviceID + "/" + varName + "/?access_token=" + accessToken;
$.getJSON(requestURL, function(json) {
var Gas = json.result;
callback(Gas);
});
};
//Create the chart for all of the kegs
// Load the Visualization API and the corechart package.
google.charts.load('current', {'packages':['gauge']});
// Set a callback to run when the Google Visualization API is loaded.
google.charts.setOnLoadCallback(drawChart);
// Callback that creates and populates a data table,
// instantiates the pie chart, passes in the data and
// draws it.
function drawChart() {
// Create the data table.
Particle1(function(Keg1){
Particle2(function(Keg2){
Particle3(function(Keg3){
Particle4(function(Keg4){
Particle5(function(Keg5){
var data = google.visualization.arrayToDataTable([
['Label', 'Value'],
['Keg 1', Keg1],
['Keg 2', Keg2],
['Keg 3', Keg3],
['Keg 4', Keg4],
['Keg 5', Keg5]
]);
// Set chart options
var options = {
width: 875, height: 170,
redFrom: 0, redTo: 5,
yellowFrom:5, yellowTo: 15,
minorTicks: 5,
majorTicks: ['0', '25', '50', '75', '100']
};
// Instantiate and draw our chart, passing in some options.
var chart = new google.visualization.Gauge(document.getElementById('chart_div'));
chart.draw(data, options);
});
});
});
});
});
}
//Create the chart for the temp
// Load the Visualization API and the corechart package.
google.charts.load('current', {'packages':['gauge']});
// Set a callback to run when the Google Visualization API is loaded.
google.charts.setOnLoadCallback(drawChart2);
// Callback that creates and populates a data table,
// instantiates the pie chart, passes in the data and
// draws it.
function drawChart2() {
// Create the data table.
Particle6(function(Temp){
var data2 = google.visualization.arrayToDataTable([
['Label', 'Value'],
['Temp', Temp],
]);
// Set chart options
var options2 = {
width: 175, height: 170,
greenFrom: 40,
greenTo: 55,
redFrom: 65,
redTo: 70,
yellowFrom:55,
yellowTo: 65,
min: 30, max: 70,
minorTicks: 5,
majorTicks: ['30', '40', '50', '60', '70']
};
// Instantiate and draw our chart, passing in some options.
var chart2 = new google.visualization.Gauge(document.getElementById('chart_div2'));
chart2.draw(data2, options2);
});
}
//Create the chart for the PSI
// Load the Visualization API and the corechart package.
google.charts.load('current', {'packages':['gauge']});
// Set a callback to run when the Google Visualization API is loaded.
google.charts.setOnLoadCallback(drawChart3);
// Callback that creates and populates a data table,
// instantiates the pie chart, passes in the data and
// draws it.
function drawChart3() {
// Create the data table.
Particle7(function(PSI){
var data3 = google.visualization.arrayToDataTable([
['Label', 'Value'],
['PSI', PSI],
]);
// Set chart options
var options3 = {
width: 175, height: 170,
redFrom: 0, redTo: 15,
yellowFrom:15, yellowTo: 35,
minorTicks: 4,
max: 40,
majorTicks: ['0', '10', '20', '30', '40']
};
// Instantiate and draw our chart, passing in some options.
var chart3 = new google.visualization.Gauge(document.getElementById('chart_div3'));
chart3.draw(data3, options3);
});
}
//Create the chart for the Gas
// Load the Visualization API and the corechart package.
google.charts.load('current', {'packages':['gauge']});
// Set a callback to run when the Google Visualization API is loaded.
google.charts.setOnLoadCallback(drawChart4);
// Callback that creates and populates a data table,
// instantiates the pie chart, passes in the data and
// draws it.
function drawChart4() {
// Create the data table.
Particle8(function(Gas){
var data4 = google.visualization.arrayToDataTable([
['Label', 'Value'],
['Gas', Gas],
]);
// Set chart options
var options4 = {
width: 875, height: 170,
redFrom: 0, redTo: 5,
yellowFrom:5, yellowTo: 15,
minorTicks: 5,
majorTicks: ['0', '25', '50', '75', '100']
};
// Instantiate and draw our chart, passing in some options.
var chart4 = new google.visualization.Gauge(document.getElementById('chart_div4'));
chart4.draw(data4, options4);
});
}
}, 5000); //Re-create all of the charts every 5,000 ms or 5 seconds
</script>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Rosedale Brewing Company On-Tap Offerings</title></head><body>
<table style="width: 100%; text-align: left; margin-left: auto; margin-right: auto;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
<div style="text-align: right;"></div>
<table style="text-align: left; width: 100%;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="width: 70%;">
<div style="text-align: right;"></div>
<table style="text-align: left; width: 100%;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="text-align: right;" colspan="3" rowspan="1"><img style="width: 828px; height: 146px;" alt="On-Tap Offerings" src="Title.png"><br>
</td>
</tr>
<tr>
<td style="width: 15%; text-align: center;"><big><big><big><big><span style="font-family: Garamond;">#1<br>
</span></big></big></big></big></td>
<td style="width: 15%; text-align: center; vertical-align: bottom;"><img style="width: 101px; height: 75px;" alt="John's Mole Stout Cap" src="Johns%20Mole%20Stout%20Cap.jpg"></td>
<td style="vertical-align: middle;"><big><big><big><big><big><span style="font-family: Garamond;"><small>Lorenzo's Mole
Stout</small><br>
</span></big></big></big></big></big></td>
</tr>
<tr>
<td style="text-align: center;"><big><big><big><big><big><span style="font-family: Garamond;"><small>#2</small><br>
</span></big></big></big></big></big></td>
<td style="text-align: center;"><img style="width: 100px; height: 75px;" alt="Helles Lager Cap" src="Helles%20Lager%20Cap.jpg"><br>
</td>
<td style="vertical-align: middle;"><big><big><big><big><big><span style="font-family: Garamond;"><small>Helles Yeah Lager</small><br>
</span></big></big></big></big></big></td>
</tr>
<tr>
<td style="text-align: center;"><big><big><big><big><big><span style="font-family: Garamond;"><small>#3</small><br>
</span></big></big></big></big></big></td>
<td style="text-align: center;"><img style="width: 100px; height: 75px;" alt="Back Patio Saison Cap" src="Back%20Patio%20Saison%20Cap.jpg"><br>
</td>
<td style="vertical-align: middle;"><big><big><big><big><big><span style="font-family: Garamond;"></span></big></big></big></big></big><big><big><big><big><big><span style="font-family: Garamond;"><small>Back Patio Saison</small></span></big></big></big></big></big></td>
</tr>
<tr>
<td style="text-align: center;"><big><big><big><big><big><span style="font-family: Garamond;"><small>#4</small><br>
</span></big></big></big></big></big></td>
<td style="text-align: center;"><img style="width: 100px; height: 75px;" alt="Bourbon Vanilla Imperial Porter Cap" src="Bourbon%20Vanilla%20Imperial%20Porter%20Cap.jpg"></td>
<td style="vertical-align: middle;"><big><big><big><big><big><span style="font-family: Garamond;"><small>Bourbon Vanilla
Imperial
Porter</small></span></big></big></big></big></big></td>
</tr>
<tr>
<td style="text-align: center;"><big><big><big><big><big><span style="font-family: Garamond;"><small>#5</small><br>
</span></big></big></big></big></big></td>
<td style="text-align: center; white-space: nowrap;"><img style="width: 99px; height: 75px;" alt="Ginger Beer Cap" src="Ginger%20Beer%20Cap.jpg"></td>
<td style="vertical-align: middle;"><big><big><big><big><big><span style="font-family: Garamond;"><small>Ginger Beer
(non-alcoholic)</small>
</span></big></big></big></big></big></td>
</tr>
</tbody>
</table>
</td>
<td style="width: 30%;">
<div style="text-align: center;"><img style="height: 221px; width: 231px;" alt="Arch Logo" src="Arch.jpg"><br>
</div>
<big><big><big><span style="font-family: Garamond;"><span style="font-weight: bold;">Bottle List:</span> <br>
Lemon
Ginger Shandy Weizen<br>
Spiced Mocha Porter<br>
Kriek Lambic<br>
Belgian
Dubbel<br>
Framboise<br>
</span></big></big></big>
<table style="width: 350px; text-align: left; margin-left: auto; margin-right: 0px;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
</td>
<td>
<div id="chart_div3" style="width: 150px; height: 170px;"></div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="width: 70%;"><small><small>
<br>
</small></small><div id="chart_div" style="width: 700px; height: 170px;"></div>
</td>
<td>
<table style="width: 350px; text-align: left; margin-left: auto; margin-right: 0px;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
<br>
<div id="chart_div2" style="width: 150px; height: 170px;"></div>
</td>
<td>
<br>
<div id="chart_div4" style="width: 150px; height: 170px;"></div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<table style="text-align: left; margin-left: auto; margin-right: auto; width: 1054px;" border="0" cellpadding="0" cellspacing="0">
<tbody>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</body></html>