-
Notifications
You must be signed in to change notification settings - Fork 0
/
iclc-schedule.html
83 lines (67 loc) · 2.09 KB
/
iclc-schedule.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
<!DOCTYPE html>
<html>
<head>
<meta name="robots" content="noindex">
<title>Events</title>
<style>
body {
font-family: sans-serif;
}
.breakouts {
padding: 0;
margin: 0;
}
.events li {
margin: 1em;
}
</style>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.12/handlebars.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$.getJSON('this will be a url api generated by sheety.com', function(data) {
var template = Handlebars.compile($('#item-template').html())
$('#iclc').html(template(data.iclc))
})
})
</script>
<script id="item-template" type="text/x-handlebars-template">
{{#each this}}
{{#if date}}
<h2>{{date}}</h2>
{{/if}}
<h3>{{times}} | {{event}}</h3>
{{#if breakoutsone}}
<ul>
<li>
<span> {{breakoutsone}} </span>
</li>
{{/if}}
{{#if breakoutstwo}}
<li>
<span>{{breakoutstwo}}</span>
</li>
{{/if}}
{{#if breakoutsthree}}
<li>
<span>{{breakoutsthree}}</span>
</li>
{{/if}}
{{#if breakoutsfour}}
<li>
<span>{{breakoutsfour}}</span>
</li>
{{/if}}
{{#if breakoutsfive}}
<li>
<span>{{breakoutsfive}}</span>
</li>
{{/if}}
</ul>
{{/each}}
</script>
</head>
<body>
<div id="iclc">Loading Schedule...</div>
</body>
</html>