forked from NHDNUG/nhdnug.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deck.html
270 lines (238 loc) · 12.3 KB
/
deck.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
---
permalink: /deck/
title: Meeting Deck
---
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{% if page.title %}{% if page.title_pretext %}{{ page.title_pretext }}{% endif %}{{ page.title }}{% if page.title_posttext %}{{ page.title_posttext }}{% endif %} - {{ site.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="author" content="{{ site.data.organization.legalName }}" />
<link rel="stylesheet" href="/css/reveal.css" />
<link rel="stylesheet" href="/css/reveal-themes/white.css" />
<link rel="stylesheet" href="/css/reveal-nhdnug.css" />
</head>
<body>
{% assign meetings = site.posts | where: "is_meeting", "true" | sort: "date" %}
{% assign post = '' %}
{% for meeting in meetings %}
{% if meeting.date > site.time %}
{% assign post = meeting %}
{% break %}
{% endif %}
{% endfor %}
{% if post == '' %}
{% assign post = meetings | last %}
{% endif %}
{% assign post_num_speakers = post.speakers | size %}
<div class="reveal">
<div class="slides">
<!-- Welcome Slide -->
<section>
<h2>North Houston<br />.NET Users Group</h2>
<p>{% include datetime.html date=post.date day=true time=false %}</p>
</section>
<section>
<h2>Check in please!</h2>
<p style="color: blue;">https://bit.ly/2EBSZRP</p>
<div class="qrcode" data-value="https://bit.ly/2EBSZRP"></div>
</section>
<!-- Sponsor Slides Start -->
{% assign post_sponsors = site.empty_array %}
{% assign this_now = post.date | date: "%Y%j" %}
{% assign post_sponsors = post.sponsors %}
{% assign post_sponsors_count = post_sponsors | size %}
{% assign this_sponsors_flat = site.empty_array %}
{% assign this_sponsors = site.empty_array %}
{% assign this_sponsors_platinum = site.empty_array %}
{% assign this_sponsors_gold = site.empty_array %}
{% assign this_sponsors_silver = site.empty_array %}
{% assign this_sponsors_meeting = site.empty_array %}
{% assign num_platinum = 0 %}
{% assign num_gold = 0 %}
{% assign num_silver = 0 %}
{% assign num_meeting = 0 %}
{% for site_sponsor in site.sponsors %}
{% if site_sponsor.terms %}
{% for term in site_sponsor.terms %}
{% assign start_date = term.start | date: "%Y%j" %}
{% assign end_date = term.end | date: "%Y%j" %}
{% if start_date <= this_now and end_date >= this_now %}
{% if this_sponsors_flat contains site_sponsor.title %}{% else %}
{% assign this_sponsors_flat = this_sponsors_flat | push: site_sponsor.title %}
{% assign this_sponsors = this_sponsors | push: site_sponsor %}
{% if term.type == "platinum" %}
{% assign num_platinum = num_platinum | plus: 1 %}
{% assign this_sponsors_platinum = this_sponsors_platinum | push: site_sponsor %}
{% endif %}
{% if term.type == "gold" %}
{% assign num_gold = num_gold | plus: 1 %}
{% assign this_sponsors_gold = this_sponsors_gold | push: site_sponsor %}
{% endif %}
{% if term.type == "silver" %}
{% assign num_silver = num_silver | plus: 1 %}
{% assign this_sponsors_silver = this_sponsors_silver | push: site_sponsor %}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% if post_sponsors_count > 0 %}
{% for site_sponsor in site.sponsors %}
{% if post_sponsors contains site_sponsor.title %}
{% if this_sponsors_flat contains site_sponsor.title %}{% else %}
{% assign this_sponsors_flat = this_sponsors_flat | push: site_sponsor.title %}
{% assign this_sponsors = this_sponsors | push: site_sponsor %}
{% assign this_sponsors_meeting = this_sponsors_meeting | push: site_sponsor %}
{% assign num_meeting = num_meeting | plus: 1 %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% assign sponsorCount = this_sponsors_flat | size %}
{% for sponsor in this_sponsors_platinum %}
{% include sponsor-slide.html sponsor=sponsor level="platinum" %}
{% endfor %}
{% for sponsor in this_sponsors_gold %}
{% include sponsor-slide.html sponsor=sponsor level="gold" %}
{% endfor %}
{% for sponsor in this_sponsors_silver %}
{% include sponsor-slide.html sponsor=sponsor level="silver" %}
{% endfor %}
{% for sponsor in this_sponsors_meeting %}
{% include sponsor-slide.html sponsor=sponsor level="meeting" %}
{% endfor %}
<!-- Sponsor Slides End -->
<!-- Sponsor Jobs Start -->
{% assign jobs = site.data.sponsor-jobs %}
{% assign num-jobs = jobs | size %}
{% if num-jobs > 0 %}
{% assign sorted-jobs = jobs | sort: 'title' %}
<section class="jobs-slide">
<h3>Houston Area Available Positions</h3>
<table>
<thead>
<tr>
<td></td>
<td>Type</td>
<td>Sponsor</td>
</tr>
</thead>
<tbody>
{% for job in sorted-jobs %}
<tr>
<td>{{job.title}}</td>
<td>{{job.type}}</td>
<td>{{job.sponsor}}</td>
</tr>
{% endfor %}
</tbody>
</table>
<p>See <a href="/">nhdnug.org</a> for links to all available positions</p>
</section>
{% endif %}
<!-- Sponsor Jobs End -->
<section>
<h3>Announcements</h3>
<p>Hiring? On the market? Interested in speaking? Have a favorite speaker? Let an officer know!</p>
</section>
<!-- Upcoming Events Start -->
{% assign events = site.events | sort:"date" %}
{% capture nowunix %}{{'now' | date: '%s'}}{% endcapture %}
{% assign upcoming-events = site.empty_array %}
{% assign past-events = site.empty_array %}
{% for event in events %}
{% capture event-date %}{{ event.date | date: '%s'}}{% endcapture %}
{% if event-date > nowunix %}
{% assign upcoming-events = upcoming-events | push: event %}
{% else %}
{% assign past-events = past-events | push: event %}
{% endif %}
{% endfor %}
{% assign num-upcoming-events = upcoming-events | size %}
{% assign num-past-events = past-events | size %}
{% if num-upcoming-events > 0 %}
{% for event in upcoming-events %}
<section class="event-slide">
<h3>{{ event.title }}</h3>
<div>{% include datetime.html date=event.date day=true %}</div>
<div class="event-excerpt">{{ event.excerpt }}</div>
<div class="qrcode" data-value="{{ event.links.www }}"></div>
</section>
{% endfor %}
{% endif %}
<!-- Upcoming Events End -->
<!-- Survey Start -->
{% if post.survey-url != "" %}
<section class="survey-slide">
<h3>Tonight's Survey</h3>
<p style="color: blue;">{{post.survey-url}}</p>
<div id="survey-qrcode"></div>
</section>
{% endif %}
<!-- Survey End -->
<!-- Officers Start -->
<section class="officers-slide">
<h3>Questions? Comments? Let us know.</h3>
{% assign volunteers = site.empty_array %}
{% for person in site.persons %}
{% if person.volunteer-position %}
{% assign volunteers = volunteers | push: person %}
{% endif %}
{% endfor %}
{% assign volunteers = volunteers|sort:"volunteer-order" %}
{% for person in volunteers %}
<div class="officer">
<div class="officer-image">
{% if person.image-sm %}
<div class="person-image" style="background-image: url({{ person.image-sm }})"></div>
{% endif %}
</div>
<div class="officer-text">
<div>{{ person.title }}</div>
<div class="officer-title">{{ person.volunteer-position }}</div>
</div>
</div>
{% endfor %}
</section>
<!-- Officers End -->
<!-- Tonight's Details -->
<section>
<h3>{{ post.title }}</h3>
<p>{{post.subtitle}}</p>
{% for speaker in post.speakers %}
<h4>{{ speaker }}</h4>
{% endfor %}
</section>
</div>
</div>
<script src="/js/qrcode.min.js"></script>
<script src="/js/reveal.js"></script>
<script>
var surveyQrCode = document.getElementById("survey-qrcode");
if (surveyQrCode) {
new QRCode(surveyQrCode, "{{ post.survey-url }}");
}
var neededQrCodes = document.getElementsByClassName("qrcode");
if (neededQrCodes && neededQrCodes.length) {
for(var i = 0; i < neededQrCodes.length; i++) {
var eventQrCode = neededQrCodes[i];
var href = eventQrCode.getAttribute("data-value");
new QRCode(eventQrCode, href);
}
}
Reveal.initialize({
width: "100%",
height: "100%",
margin: 0.05,
controls: false,
progress: false,
loop: true,
autoSlide: 10000
});
</script>
</body>
</html>