-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend framework to support multiday conferences
- Improve webfont preloading - Design improvements in most layouts - Live indication fixes in talk overview layout - Reduce whitespace generation - Rename live button and modal include
- Loading branch information
1 parent
d06fa9c
commit edd7656
Showing
32 changed files
with
866 additions
and
633 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
jekyll-theme-conference (2.5.4) | ||
jekyll-theme-conference (3.0.0) | ||
jekyll (~> 4.0) | ||
|
||
GEM | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
- room: Room A | ||
talks: | ||
- name: Vim Impetus Placerat Cotidieque Ad | ||
time_start: '12:00' | ||
time_end: '12:45' | ||
- name: Condimentum Vitae Sapien Pellentesque | ||
time_start: '12:45' | ||
time_end: '13:30' | ||
days: | ||
- name: Monday | ||
abbr: Mo | ||
date: 2020-01-31 | ||
rooms: | ||
- name: Room A | ||
talks: | ||
- name: Vim Impetus Placerat Cotidieque Ad | ||
time_start: '12:00' | ||
time_end: '12:45' | ||
- name: Condimentum Vitae Sapien Pellentesque | ||
time_start: '12:45' | ||
time_end: '13:30' | ||
|
||
- room: Room B | ||
talks: | ||
- name: Arcu Non Odio | ||
time_start: '12:00' | ||
time_end: '13:00' | ||
- name: Room B | ||
talks: | ||
- name: Arcu Non Odio | ||
time_start: '12:00' | ||
time_end: '13:00' | ||
|
||
- room: Room C | ||
talks: | ||
- name: Eu Nisl Nunc Mi Ipsum Faucibus | ||
time_start: '13:30' | ||
time_end: '14:30' | ||
- name: Room C | ||
talks: | ||
- name: Eu Nisl Nunc Mi Ipsum Faucibus | ||
time_start: '13:30' | ||
time_end: '14:30' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Vertical Scroll Sync | ||
{% include js/syncscroll.js %} | ||
|
||
window.conference.program = (function() { | ||
let updateHash = function (hash) { | ||
let scrollPosition = $('body').scrollTop() || $('html').scrollTop(); | ||
window.location.hash = hash; | ||
$('html,body').scrollTop(scrollPosition); | ||
}; | ||
|
||
let init = function () { | ||
if ($('#day-list')) { | ||
// Switch to day if page load with hash | ||
var hash = window.location.hash; | ||
if (hash) { | ||
$('#day-list a[href="' + hash + '"]').tab('show'); | ||
} | ||
// Switch to day if today | ||
else { | ||
let d = new Date(); | ||
let dStr = d.getFullYear() +"-"+ (d.getMonth()+1) +"-"+ d.getDate() | ||
// since a timezone compensation is added when passed as string, today's date has also | ||
// to be passed as string (as it is done below) | ||
let today = new Date(dStr); | ||
|
||
$('a[data-toggle="tab"]').each(function () { | ||
let d = new Date($(this).data('date')); | ||
|
||
if (today.getTime() === d.getTime()) { | ||
$(this).tab('show'); | ||
updateHash(this.hash); | ||
} | ||
}); | ||
} | ||
|
||
// Add current selected day as hash to URL while keeping current scrolling position | ||
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { | ||
updateHash(this.hash); | ||
}); | ||
} | ||
}; | ||
|
||
return { | ||
init: init | ||
}; | ||
})(); | ||
|
||
window.conference.program.init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.