forked from gdg-x/zeppelin
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathschedule2.html
More file actions
467 lines (424 loc) · 19.6 KB
/
schedule2.html
File metadata and controls
467 lines (424 loc) · 19.6 KB
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
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
---
layout: default
title: Event Schedule
permalink: /schedule/
image: schedule.jpg
---
{% include top-section.html %}
<section id="schedule2" class="schedule">
<div class="content-wrapper">
<p><i>Note: The program is subject to changes.</i></p>
<!-- Inline styles to ensure borders show without recompiling SCSS -->
<style>
.schedule2-table { border-collapse: collapse; table-layout: fixed; width: 100%; }
.schedule2-table th, .schedule2-table td { border: 1px solid #e7e7e7 !important; vertical-align: top; padding: 8px 6px; font-size: 16px; }
.schedule2-table thead th { background: #fafafa; font-size: 18px; font-weight: 400; color: #333; }
.schedule2-table thead th:first-child, .schedule2-table tbody td:first-child {
width: 100px;
white-space: nowrap;
font-size: 40px;
font-weight: 100;
font-family: 'Roboto', sans-serif;
text-align: left;
padding: 8px 6px;
position: relative;
vertical-align: top;
}
@media (max-width: 767px) {
.schedule2-table thead th:first-child, .schedule2-table tbody td:first-child {
font-size: 28px;
}
}
.time-span {
font-size: 0.6em;
font-weight: 300;
}
.start-time {
display: block;
line-height: 1;
}
.end-time {
display: block;
position: absolute;
bottom: 8px;
left: 6px;
font-size: 0.7em;
opacity: 0.7;
line-height: 1;
}
/* Slot content styling to match original schedule */
.slot-content {
position: relative;
width: 100%;
text-align: left;
}
/* Service sessions should be centered with light green background */
.service-slot {
background-color: #f0f8e8 !important;
}
.service-slot .slot-content {
text-align: center;
background-color: #f0f8e8;
width: 100%;
height: 100%;
margin: -8px -6px;
padding: 8px 6px;
}
/* Mobile responsive layout */
@media (max-width: 767px) {
.schedule2-table, .schedule2-table thead, .schedule2-table tbody, .schedule2-table th, .schedule2-table td, .schedule2-table tr {
display: block;
}
.schedule2-table thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
.schedule2-table tr {
border: 1px solid #ccc;
margin-bottom: 10px;
padding: 10px;
background: #fff;
}
.schedule2-table td {
border: none !important;
position: relative;
padding: 8px 8px 8px 25% !important;
text-align: left;
white-space: normal;
font-size: 14px;
}
.schedule2-table td:before {
content: attr(data-label);
position: absolute;
left: 6px;
width: 20%;
padding-right: 10px;
white-space: nowrap;
font-weight: bold;
color: #333;
}
.schedule2-table td:first-child {
font-size: 28px;
font-weight: 100;
padding: 8px 6px !important;
text-align: center;
background: #f8f8f8;
margin-bottom: 10px;
}
.schedule2-table td:first-child:before {
content: "";
}
/* Hide empty session cells on mobile */
.schedule2-table td.empty-session {
display: none;
}
/* Hide empty timeslots on mobile */
.schedule2-table tr.empty-timeslot {
display: none;
}
/* Special handling for service sessions on mobile */
.schedule2-table td.service-slot.service-session {
padding: 8px 6px !important;
text-align: center;
}
.schedule2-table td.service-slot.service-session:before {
content: "";
}
/* Lunch sessions keep track labels but have green background */
.schedule2-table td.service-slot.lunch-session {
text-align: left;
}
/* Mobile time display */
.schedule2-table td:first-child .start-time,
.schedule2-table td:first-child .end-time {
display: none;
}
.schedule2-table td:first-child .mobile-time-range {
display: block !important;
font-size: 16px;
font-weight: 500;
color: #333;
}
.service-slot .slot-content {
margin: 0;
padding: 8px 6px;
}
}
/* Speaker styling - matching original schedule exactly */
.slot-speakers { list-style: none; padding: 0; margin: 0; }
.slot-speakers li { position: relative; margin-bottom: 8px; min-height: 40px; }
.speaker-img {
width: 40px;
height: 40px;
border: 2px solid #fff;
position: absolute;
box-shadow: 0 1px 0 rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .2);
background-size: cover;
background-position: center;
}
.speaker-name {
line-height: 28px;
margin-left: 48px;
margin-bottom: 0;
font-family: 'Roboto', sans-serif;
font-weight: 300;
}
.speaker-position {
color: #555;
display: block;
line-height: 1;
font-size: 12px;
margin-top: -2px;
}
.session-title {
font-size: 22px;
font-weight: 300;
margin: 0;
padding-right: 20px;
font-family: 'Roboto', sans-serif;
}
@media (max-width: 767px) {
.session-title {
font-size: 18px;
}
}
</style>
{% for day in site.data.schedule %}
<div class="row">
<div class="schedule-table col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
<h4 class="schedule-table-heading">{{ day.dateReadable }}</h4>
<div class="table-responsive">
<table class="table table-bordered table-striped schedule2-table">
<thead>
<tr>
<th style="width: 120px;">{{ day.shortName }}</th>
{% for track in day.tracks %}
<th>{{ track.title }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% assign skip_next_str = '' %}
{% for timeslot in day.timeslots %}
{% assign row_index = forloop.index0 %}
{% assign next_index = row_index | plus: 1 %}
{% if next_index < day.timeslots.size %}
{% assign next_timeslot = day.timeslots[next_index] %}
{% else %}
{% assign next_timeslot = nil %}
{% endif %}
{% assign skip_cols_str = skip_next_str %}
{% assign skip_next_str = '' %}
{% comment %} Check if this timeslot has any NEW content (not just continuing sessions) {% endcomment %}
{% assign has_new_content = false %}
{% if is_service_row %}
{% assign has_new_content = true %}
{% else %}
{% comment %} Check if any session in this timeslot is different from the previous timeslot {% endcomment %}
{% assign prev_index = row_index | minus: 1 %}
{% if prev_index >= 0 %}
{% assign prev_timeslot = day.timeslots[prev_index] %}
{% for track in day.tracks %}
{% assign col_idx = forloop.index0 %}
{% assign current_id = 404 %}
{% assign prev_id = 404 %}
{% if timeslot.sessionIds.size > col_idx %}
{% assign current_id = timeslot.sessionIds[col_idx] %}
{% endif %}
{% if prev_timeslot.sessionIds.size > col_idx %}
{% assign prev_id = prev_timeslot.sessionIds[col_idx] %}
{% endif %}
{% comment %} If current session is different from previous, or if it's a valid new session {% endcomment %}
{% if current_id != prev_id and current_id != 404 and current_id != 1000 and current_id != '-' %}
{% assign has_new_content = true %}
{% break %}
{% endif %}
{% endfor %}
{% else %}
{% comment %} First timeslot always has new content if it has any sessions {% endcomment %}
{% for track in day.tracks %}
{% assign col_idx = forloop.index0 %}
{% if timeslot.sessionIds.size > col_idx %}
{% assign check_id = timeslot.sessionIds[col_idx] %}
{% if check_id != 404 and check_id != 1000 and check_id != '-' %}
{% assign has_new_content = true %}
{% break %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
<tr{% if is_service_row %} class="service-row"{% endif %}{% unless has_new_content %} class="empty-timeslot"{% endunless %}>
<td>
{% assign st = timeslot.startTime | split: ':' %}
<time class="start-time">
{{ st[0] }}<span class="time-span">{{ st[1] }}</span>
</time>
{% comment %} Only show end time if it's different from next slot's start time {% endcomment %}
{% assign showEndTime = true %}
{% if next_timeslot %}
{% if timeslot.endTime == next_timeslot.startTime %}
{% assign showEndTime = false %}
{% endif %}
{% endif %}
{% if showEndTime %}
{% assign et = timeslot.endTime | split: ':' %}
<time class="end-time">
{{ et[0] }}<span class="time-span">{{ et[1] }}</span>
</time>
{% endif %}
{% comment %} Mobile time range display {% endcomment %}
<div class="mobile-time-range" style="display: none;">
{{ st[0] }}:{{ st[1] }}{% if showEndTime %} - {{ et[0] }}:{{ et[1] }}{% endif %}
</div>
</td>
{% assign is_service_row = false %}
{% if timeslot.sessionIds.size == 1 %}
{% assign only_id = timeslot.sessionIds[0] %}
{% for s in site.data.sessions %}
{% if s.id == only_id and (s.service != null or s.lunch != null) %}
{% assign is_service_row = true %}
{% assign service_session = s %}
{% break %}
{% endif %}
{% endfor %}
{% endif %}
{% for track in day.tracks %}
{% assign col_index = forloop.index0 %}
{% assign token = '|' | append: col_index | append: '|' %}
{% assign track_title = track.title %}
{% comment %} Skip this column if it's covered by a rowspan from previous row {% endcomment %}
{% if skip_cols_str contains token %}
{% continue %}
{% endif %}
{% assign trackCount = day.tracks | size %}
{% assign sessionCount = timeslot.sessionIds.size %}
{% if is_service_row %}
{% if col_index == 0 %}
{% assign title = service_session.title %}
<td colspan="{{ trackCount }}" class="service-slot service-session" data-label=""{% if service_session.lunch != null %} style="cursor: pointer;" data-toggle="modal" data-target="#sessionDetail-{{ service_session.id }}"{% endif %}>
<div class="slot-content">
<h5 class="slot-title" itemprop="name">{{ title }}</h5>
</div>
</td>
{% endif %}
{% else %}
{% comment %} Skip columns beyond the last provided session when we need to merge {% endcomment %}
{% if sessionCount < trackCount and col_index >= sessionCount %}
{% continue %}
{% endif %}
{% if timeslot.sessionIds.size > col_index %}
{% assign raw_id = timeslot.sessionIds[col_index] %}
{% else %}
{% assign raw_id = 404 %}
{% endif %}
{% if raw_id == '-' and row_index > 0 %}
{% assign prev_row = row_index | minus: 1 %}
{% assign prev_ids = day.timeslots[prev_row].sessionIds %}
{% if prev_ids.size == 1 %}
{% assign cell_id = prev_ids[0] %}
{% else %}
{% assign cell_id = prev_ids[col_index] %}
{% endif %}
{% else %}
{% assign cell_id = raw_id %}
{% endif %}
{% assign title = '' %}
{% assign session = nil %}
{% assign is_lunch_session = false %}
{% if cell_id != 404 and cell_id != 1000 and cell_id != '-' %}
{% for sess in site.data.sessions %}
{% assign id1 = cell_id | append: '' %}
{% assign id2 = sess.id | append: '' %}
{% if id1 == id2 %}
{% assign title = sess.title %}
{% assign session = sess %}
{% if sess.lunch != null %}
{% assign is_lunch_session = true %}
{% endif %}
{% break %}
{% endif %}
{% endfor %}
{% endif %}
{% comment %} Check for vertical merge: same session ID in next row, same column {% endcomment %}
{% assign rowspan = 1 %}
{% if next_timeslot and col_index < next_timeslot.sessionIds.size %}
{% assign next_id = next_timeslot.sessionIds[col_index] %}
{% assign nid1 = next_id | append: '' %}
{% assign cid1 = cell_id | append: '' %}
{% if nid1 == cid1 and cid1 != '-' and cid1 != '404' and cid1 != '1000' %}
{% assign rowspan = 2 %}
{% assign skip_next_str = skip_next_str | append: token %}
{% endif %}
{% endif %}
{% comment %} Apply colspan if this is the last provided session and there are fewer sessions than tracks {% endcomment %}
{% assign lastSessionIndex = sessionCount | minus: 1 %}
{% if sessionCount < trackCount and col_index == lastSessionIndex %}
{% assign colspan = trackCount | minus: col_index %}
<td{% if rowspan > 1 %} rowspan="{{ rowspan }}"{% endif %} colspan="{{ colspan }}"{% if is_lunch_session %} class="service-slot lunch-session"{% endif %}{% if session and session.service == null %} style="cursor: pointer;" data-toggle="modal" data-target="#sessionDetail-{{ session.id }}"{% endif %}{% if title == '' %} class="empty-session"{% endif %} data-label="{{ track_title }}">
{% if title != '' %}
<div class="slot-content">
<h5 class="slot-title" itemprop="name">{{ title }}</h5>
{% if session.speakers %}
<ul class="slot-speakers">
{% for speaker in site.data.speakers %}
{% for session_speaker in session.speakers %}
{% if session_speaker == speaker.id %}
<li itemprop="performer">
<div class="speaker-img flow-img img-circle" style="background-image: url({{ site.baseurl | append: '/img/people/' | append: speaker.thumbnailUrl }})"></div>
<p class="speaker-name">{{ speaker.name }} {{ speaker.surname }}
<span class="speaker-position">{{ speaker.company }}</span>
</p>
</li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
{% endif %}
{% if session.language %}
<br><span class="caption">[<b>{{ session.language }}</b>]</span>
{% endif %}
</div>
{% endif %}
</td>
{% else %}
<td{% if rowspan > 1 %} rowspan="{{ rowspan }}"{% endif %}{% if is_lunch_session %} class="service-slot lunch-session"{% endif %}{% if session and session.service == null %} style="cursor: pointer;" data-toggle="modal" data-target="#sessionDetail-{{ session.id }}"{% endif %}{% if title == '' %} class="empty-session"{% endif %} data-label="{{ track_title }}">
{% if title != '' %}
<div class="slot-content">
<h5 class="slot-title" itemprop="name">{{ title }}</h5>
{% if session.speakers %}
<ul class="slot-speakers">
{% for speaker in site.data.speakers %}
{% for session_speaker in session.speakers %}
{% if session_speaker == speaker.id %}
<li itemprop="performer">
<div class="speaker-img flow-img img-circle" style="background-image: url({{ site.baseurl | append: '/img/people/' | append: speaker.thumbnailUrl }})"></div>
<p class="speaker-name">{{ speaker.name }} {{ speaker.surname }}
<span class="speaker-position">{{ speaker.company }}</span>
</p>
</li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
{% endif %}
{% if session.language %}
<br><span class="caption">[<b>{{ session.language }}</b>]</span>
{% endif %}
</div>
{% endif %}
</td>
{% endif %}
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endfor %}
</div>
</section>