Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Commit e746afe

Browse files
authored
Fix schedule banner. (#1435)
Fix schedule not scrolling to anchor.
1 parent 1d44bc4 commit e746afe

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

assets/css/europython-customizations.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ a.navbar-brand:hover{
8787
flex-wrap: wrap;
8888
}
8989

90+
#days-navbar {
91+
background-image: none;
92+
}
93+
9094
#content_page {
9195
min-height: 500px;
9296
margin: 40px 0;

templates/conference/schedule/schedule.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,15 @@
259259

260260
<div class="schedule__grid schedule__day--time" style="--cols: 1; --rows: {{ schedule.grid.rows }};">
261261
{% for time in schedule.grid.times %}
262-
<div class="schedule__time" style="
262+
<div class="schedule__time"
263+
style="
263264
grid-row: {{ time.start_row }} / {{ time.end_row }};
264265
grid-column: 1 / 1;
265266
">
266267
<a class="schedule-time-display"
267268
data-fulltime="{{ time.time|utc|date:'Y-m-d H:i' }}"
268269
name="{{ time.time|utc|date:'H:i' }}-UTC"
270+
id="{{ time.time|utc|date:'H:i' }}-UTC"
269271
href="#{{ time.time|utc|date:'H:i' }}-UTC">{{ time.time|utc|date:'H:i' }}</a>
270272
</div>
271273
{% endfor %}
@@ -420,7 +422,11 @@
420422

421423
$(document).ready(function() {
422424
format_local_times();
425+
// Adjust notice
423426
$('#timezone').text("Your Time");
427+
// Scroll to anchor, if any
428+
if (location.hash)
429+
location.href = location.hash;
424430
});
425431

426432
</script>

0 commit comments

Comments
 (0)