-
Notifications
You must be signed in to change notification settings - Fork 2
/
events.html
442 lines (371 loc) · 17.1 KB
/
events.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
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
---
layout: default
title: Events
---
<div class="container">
<h1 class="mt-5">{{ page.title }}</h1>
<p class="lead"> Current and past events hosted by the Species File Group </p>
<p><em> Questions? </em> <a href="https://gitter.im/SpeciesFileGroup/taxonworks">Chat with us on Gitter</a> or contact our community liaison Deborah Paul.</p>
<h2> Current </h2>
<p><em>Join our Wednesday meetings via Zoom.</em> Please note:
<ul>
<li><em>Link</em>: <a href="https://illinois.zoom.us/my/sfgcommons?pwd=eVI4UkdIUzdIYXRIcUhreVdES2ZQQT09">https://illinois.zoom.us/my/sfgcommons?pwd=eVI4UkdIUzdIYXRIcUhreVdES2ZQQT09<a/>.</li>
<li><em>Reminder Service</em> (via listerv typically 1-2 days before):</li>
<ol>
<li>subscribe to the <em>email listserv</em>: <a href="https://lists.illinois.edu/lists/info/sfg-announce">https://lists.illinois.edu/lists/info/sfg-announce</a> and</li>
<li>click "confirm" in the first email you receive from the listserv.</li>
</ol>
<li><em>Chat</em> with a member of the Species File Group and its collaborators anytime via our <a href="https://matrix.to/#/#taxonworks:gitter.im">TaxonWorks Gitter Public Workspace</a>.
<li>Are you more familiar with <em>Slack</em>? We invite you to join our <a href="https://join.slack.com/t/taxonworks/shared_invite/zt-28gmamdox-DHlXN61XPawSM6eGj86Tkw">TaxonWorks Slack Workspace</a>. It's integrated with our Gitter Public Workspace.</li>
<li><em>TaxonWorks Weekly Plus Calendar</em>: add TaxonWorks Weekly events to your calendar now. <em>Three options</em> for you:</li>
<ul>
<li>Get this <em><a href="https://calendar.google.com/calendar/u/0?cid=ZHQxaDQxdTRkdjd2c2VsN2lvYnJkcG1zNThAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ">
shareable calendar link</a></em> if you want to import into your Google calendar and have live updates. (For this link to work you must have a google account and be logged in. You'll be asked to <b>Add Calendar</b> and then to change to your <b>Time Zone</b>).</li>
<li>Use this <em><a href="https://calendar.google.com/calendar/ical/dt1h41u4dv7vsel7iobrdpms58%40group.calendar.google.com/public/basic.ics">ics file</a></em> to import into your calendar. (Only updates if you re-download, if we make any changes on our end).</li>
<li>Use this <a href="https://calendar.google.com/calendar/embed?src=dt1h41u4dv7vsel7iobrdpms58%40group.calendar.google.com&ctz=America%2FChicago">Public URL</a></li> to see the TaxonWorks Weekly Plus Calendar (Chicago TIME). (It's not pretty, but it works without login, and updates with any changes made on our end).</li>
<li>Watch our <a href="https://www.youtube.com/@TaxonWorks">TaxonWorks videos on YouTube</a></li>
</ul>
</ul>
</p>
<h3> TaxonWorks Together 2024 </h3>
<ul>
<li>What: Our 5th annual TaxonWorks community-building event
<li>When: 7-9 May 2024</li>
<li>Where: [Registration Open!](https://illinois.zoom.us/meeting/register/tZUofumuqjIuG9CBHr3AybBo_0KR3Wv9VzwT) (space is limited, don't wait!)
<li>Who: Open to anyone.</li>
<li>Program as it develops: <a href="https://together.taxonworks.org/">TaxonWorks Together 2024</a></li>
</ul>
<h2> Regular Events by Month </h2>
All these <a href"https://en.wikipedia.org/wiki/Unconference"><em>unconference</em></a>-style Open Session events are on Wednesdays at the same time every week. The <i>flexible agendas</i> are set by those attending the meetings. Alternating by week, we have one Wednesday session, in the following week we have two Wedndesday sessions.
<table class="table">
<thead>
<tr>
<th>Wednesday</th>
<th>Early (<span id="early-time" data-utc-to-local="16:30, 17:30"></span>)</th>
<th>Late (<span id="late-time" data-utc-to-local="19:30, 20:30"></span>)</th>
<th>Next date</th>
<th>Countdown</th>
</tr>
</thead>
<tbody class="events align-middle">
<tr>
<td>1st</td>
<td>Open</td>
<td>
<span data-open>Open</span>
</td>
<td>
<span
data-every-week="0"
data-day="wednesday">
</span>
</td>
<td>
<span data-countdown></span>
</td>
</tr>
<tr>
<td>2nd</td>
<td>Open</td>
<td></td>
<td>
<span
data-every-week="1"
data-day="wednesday">
</span>
</td>
<td>
<span data-countdown></span>
</td>
</tr>
<tr>
<td>3rd</td>
<td>Open</td>
<td>
<span data-open>Open</span>
</td>
<td>
<span
data-every-week="2"
data-day="wednesday">
</span>
</td>
<td>
<span data-countdown></span>
</td>
</tr>
<tr>
<td>4th</td>
<td>Open</td>
<td></td>
<td>
<span
data-every-week="3"
data-day="wednesday">
</span>
</td>
<td>
<span data-countdown></span>
</td>
</tr>
<tr>
<td>5th</td>
<td><div class="py-2">No Meetings on 5th Wednesdays</div></td>
<td></td>
</tr>
</tbody>
</table>
<h3> Open 2024 </h3>
<ul>
<li>What: Help build the TaxonWorks Community. All TaxonWorks-related topics welcome in all sessions. Open Sessions are held each Wednesday. We alternate weeks having one session, and the following week having two. </li>
<li>Time Schedule:
<ul>
<li>1st Wednesdays and 3rd Wednesdays, two meetings</li>
<ul>
<li>10:30 CST (<span data-utc="16:30"></span> UTC), <span data-utc-to-local="16:30, 17:30"></span></li>
<li>13:30 CST (<span data-utc="19:30"></span> UTC), <span data-utc-to-local="19:30, 20:30"></span></li>
</ul>
<li> 2nd Wednesdays and 4th Wednesdays, one meeting</li>
<ul>
<li>10:30 CST (<span data-utc="16:30"></span> UTC), <span data-utc-to-local="16:30, 17:30"></span></li>
</ul>
</ul>
<li>Where: Zoom. </li>
<li>Who: Open to anyone. </li>
<li><a href="https://docs.google.com/document/d/1uKnFdxP-fpA4tGdPWdhf8wJr9co3C6jpM_svzZYYsos/edit?usp=sharing">Open Notes 2024</a></li>
</ul>
<h2> Meeting Notes for Past Years and Structure </h2>
<h4> Open </h4>
<ul>
<li><a href="https://docs.google.com/document/d/1Wq3-2x6Y3hLy9DoxLoc86vj68FI_nlb8mVTKr_KgbvY/edit?usp=sharing">Open Notes</a></li>
</ul>
<h4> Nomenclature </h4>
<ul>
<li>What: TaxonWorks excels at digitizing nomenclature and its metadata. The agenda is set by users with specific questions and use cases. In addition we highlight new functionality related to digitization of nomenclature. Sessions are sometimes class-like for part of the time. Downstream sessions are planned with collaborators according to their needs and the general discussion that occurs in these meetings. </li>
<li><a href="https://docs.google.com/document/d/1rvJ4ChR6VOFZlQPzPppZ3Y2MpwR6RqfvF00-HwyaU8U/edit?usp=sharing">Nomenclature Notes</a></li>
</ul>
<h4> Digitization </h4>
<ul>
<li>What: Help grow a community of digitization expertise around TaxonWorks. A 1-2 hr monthly open question and answer session with a focus on natural history specimen digitization using TaxonWorks. The agenda is set by those with specific questions. Updates to TaxonWorks are briefly covered. Design and discussion of new functionality frequently happens. </li>
<li><a href="https://docs.google.com/document/d/1n8VcRvaY8ViT8MCWfvciiGjo7BEYR6wpTk-NoctDMqM/edit?usp=sharing">Digitization Notes</a></li>
</ul>
<h4> Matrices/Observations </h4>
<ul>
<li>What: TaxonWorks supports building matrices. Join us in this 1-2 hr monthly open session focusing on building and using matrices and observations tools in TaxonWorks. Your questions set the agenda. Design and discussion of new functionality frequently happens.</li>
<li><a href="https://docs.google.com/document/d/1FodgK0UQ9ADmC0Ac2YqpbWeOG2o-K8Ccdy2PmJyJeyI/edit?usp=sharing">Matrices Notes</a></li>
</ul>
<h4> Technical </h4>
<ul>
<li>What: You are encouraged to contribute to the technical side of TaxonWorks any time. But, please do join us for a 1-2 hr monthly open session concentrating on software and services development. The agenda is set by you. Design and discussion of new functionality frequently happens. </li>
<li><a href="https://docs.google.com/document/d/1_pS0YlNfl8Q3RFvU8FOadZrD1IcGypBoRCunU3rsPtQ/edit?usp=sharing">Technical Notes</a></li>
</ul>
<h2> Past Events </h2>
<em> As of end 2023 </em>
<h3> TaxonWorks Together 2023 </h3>
See the <a href="https://together.taxonworks.org/2023/">TWT 2023 Program</a> with links to presentations.
Visit the TW YouTube for the <a href="https://youtube.com/playlist?list=PLPSu6w4rwUI5tRgxboj6V7yxc-GzdOtdw&si=JZcF1vllPsu7rwuv">TWT2023 recordings playlist</a>.
<h3> TaxonWorks Together 2022 </h3>
See <a href="https://github.com/SpeciesFileGroup/taxonworks_together_2022">the github-based homepage</a> for this event.
<h3> TaxonWorks Together 2021 </h3>
See <a href="https://github.com/SpeciesFileGroup/taxonworks_together_2021">the github-based homepage</a> for this event.
<h3> TaxonWorks Together 2020 </h3>
See <a href="https://github.com/SpeciesFileGroup/taxonworks_together_2020">the github-based homepage</a> for this event.
<h3> TaxonWorks Late Nite </h3>
<ul>
<li>What: An ongoing series of late nite "chill" and chat sessions with the TaxonWorks and broader community.</li>
<li>When: <b> April 21, <span data-utc-to-local="01:30, 03:00"></span></b>.</li>
<li>Where: Zoom. </li>
<li>Who: Open to anyone.</li>
</ul>
</div>
<script>
const days = [
'sunday',
'monday',
'tuesday',
'wednesday',
'thursday',
'friday',
'saturday'
]
function ajustUTCStringToDST(utcString) {
const date = new Date();
const [hours, minutes, seconds] = utcString.split(':');
return [
isDST(date)
? String(Number(hours) - 1)
: hours
,
minutes,
seconds
]
}
function convertUTCToLocal ([hours, minutes, seconds]) {
const date = new Date();
const utcTime = new Date(
Date.UTC(
date.getFullYear(),
date.getMonth(),
date.getDate(),
hours,
minutes || 0,
seconds || 0)
);
return utcTime.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })
}
function isDST(currentDate) {
const dstBegins = new Date(getNextDateFromDayAndWeek(0, 1, new Date(currentDate.getFullYear(), 2, 1)))
const dstEnds = new Date(getNextDateFromDayAndWeek(0, 0, new Date(currentDate.getFullYear(), 10, 1)))
return dstBegins <= currentDate && dstEnds >= currentDate
}
function getUTCDatesInLocal (dates) {
return dates.split(',').map(item =>
convertUTCToLocal(ajustUTCStringToDST(item.trim()))
)
}
function parseUTCtoTimezone (data) {
const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone.replaceAll('_', ' ');
const time = getUTCDatesInLocal(data).join(' - ')
return time + ' ' + timeZone;
}
function alternateWeekOnDay (date) {
const monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
const startDate = new Date(date)
const dayOfWeek = startDate.getDay()
const now = new Date(new Date().toDateString())
const DifferenceInTime = now.getTime() - startDate.getTime()
const DifferenceDays = DifferenceInTime / (1000 * 3600 * 24)
const passTwoWeeks = DifferenceDays / 7 % 2
if(passTwoWeeks <= 1 && passTwoWeeks != 0) {
now.setDate(now.getDate() + 7)
}
const result = new Date(
now.getFullYear(),
now.getMonth(),
now.getDate() + (7 + dayOfWeek - now.getDay()) % 7)
if (result < now) {
result.setDate(result.getDate() + 7)
}
return monthNames[result.getMonth()] + ' ' + result.getDate()
}
function dayInMonth (d, day) {
const weekDays = []
const month = d.getMonth()
d.setDate(1)
while (d.getDay() !== day) {
d.setDate(d.getDate() + 1)
}
while (d.getMonth() === month) {
weekDays.push(d.getDate())
d.setDate(d.getDate() + 7)
}
return weekDays
}
function twoDigits (number) {
return ("0" + number).slice(-2)
}
function getNextDateFromDayAndWeek (day, week, currentDate = new Date()) {
const currentMonth = (currentDate.getMonth() + 1)
const currentYear = currentDate.getFullYear()
const nextDate = new Date(currentDate.setMonth(currentMonth))
const nextMonth = nextDate.getMonth() + 1
const nextYear = nextDate.getFullYear()
const DaysThisMonth = dayInMonth(new Date(`${currentYear}/${currentMonth}/01`), day)
const DaysNextMonth = dayInMonth(new Date(`${nextYear}/${nextMonth}/01`), day)
return currentDate.getDate() > DaysThisMonth[week]
? `${nextYear}/${twoDigits(nextMonth)}/${twoDigits(DaysNextMonth[week])}`
: `${currentYear}/${twoDigits(currentMonth)}/${twoDigits(DaysThisMonth[week])}`
}
function getNextDateObject (date) {
const present = new Date()
const nextDate = new Date(date)
var seconds = Math.floor((nextDate - present) / 1000)
var minutes = Math.floor(seconds / 60)
var hours = Math.floor(minutes / 60)
var days = Math.floor(hours / 24)
hours = hours - (days * 24)
minutes = minutes - (days * 24 * 60) - (hours * 60)
seconds = seconds - (days * 24 * 60 * 60) - (hours * 60 * 60) - (minutes * 60)
return {
days: days,
hours: hours,
minutes: minutes,
seconds: seconds
}
}
function printCountDown(element, dateObject) {
element.innerHTML = `<div class="countdown py-2">
<span class="h6 font-weight-bold">${dateObject.days}</span>d
<span class="h6 font-weight-bold">${twoDigits(dateObject.hours)}</span>h
<span class="h6 font-weight-bold">${twoDigits(dateObject.minutes)}</span>m
<span class="h6 font-weight-bold">${twoDigits(dateObject.seconds)}</span>s
</div>`
}
document.querySelectorAll('[data-utc-to-local]').forEach(element => {
element.textContent = parseUTCtoTimezone(element.getAttribute('data-utc-to-local'));
})
document.querySelectorAll('[data-utc]').forEach(element => {
const time = element.getAttribute('data-utc')
const [hour, minutes] = ajustUTCStringToDST(time)
element.innerHTML = hour + ':' + minutes
})
function isTimeAlreadyPassed(startTime, endTime) {
return startTime > endTime
}
function addDays (date, days) {
date.setDate(date.getDate() + days)
return date
}
const earlyDateElement = document.querySelector('#early-time')
const lateDateElement = document.querySelector('#late-time')
const [startEarlyTime, endEarlyTime] = getUTCDatesInLocal(earlyDateElement.getAttribute('data-utc-to-local'))
const [startLateTime, endLateTime] = getUTCDatesInLocal(lateDateElement.getAttribute('data-utc-to-local'))
const eventsElement = document.querySelectorAll('tbody.events tr').forEach(element => {
const nextDateElement = element.querySelector('[data-every-week]')
const countdownElement = element.querySelector('[data-countdown]')
if (!countdownElement || !nextDateElement) return
const week = nextDateElement.getAttribute('data-every-week')
const day = days.findIndex(item => item === nextDateElement.getAttribute('data-day'))
const isOpen = !!element.querySelector('[data-open]')
function updateElements () {
let newDate = getNextDateFromDayAndWeek(Number(day), Number(week))
let dateObject
const earlyEventStartTime = new Date(newDate + ' ' + startEarlyTime)
const earlyEventEndTime = new Date(newDate + ' ' + endEarlyTime)
const lateEventStartTime = new Date(newDate + ' ' + startLateTime)
const lateEventEndTime = new Date(newDate + ' ' + endLateTime)
const now = new Date()
if (isTimeAlreadyPassed(now, earlyEventStartTime)) {
if (!isTimeAlreadyPassed(now, earlyEventEndTime)) {
countdownElement.innerHTML = "<span>We're live!</span>"
} else {
if (isOpen) {
if (isTimeAlreadyPassed(now, lateEventStartTime)) {
if (!isTimeAlreadyPassed(now, lateEventEndTime) && isOpen) {
countdownElement.innerHTML = "<span>We're live!</span>"
} else {
newDate = getNextDateFromDayAndWeek(Number(day), Number(week), addDays(new Date(), 1))
dateObject = getNextDateObject(newDate + ' ' + startEarlyTime)
printCountDown(countdownElement, dateObject)
}
} else {
newDate = getNextDateFromDayAndWeek(Number(day), Number(week))
dateObject = getNextDateObject(lateEventStartTime)
printCountDown(countdownElement, dateObject)
}
} else {
newDate = getNextDateFromDayAndWeek(Number(day), Number(week), addDays(new Date(), 1))
dateObject = getNextDateObject(newDate + ' ' + startEarlyTime)
printCountDown(countdownElement, dateObject)
}
}
} else {
dateObject = getNextDateObject(earlyEventStartTime)
printCountDown(countdownElement, dateObject)
}
nextDateElement.textContent = newDate
}
updateElements()
setInterval(() => { updateElements() }, 1000)
})
</script>