Commit 113da008 authored by gijs's avatar gijs

Scroll on load

parent 87d31804
......@@ -140,6 +140,9 @@
if (window.innerWidth < 600) {
getNextEvent().scrollIntoView(true);
window.addEventListener('load', function () {
getNextEvent().scrollIntoView(true);
})
} else {
initScrollbars();
window.addEventListener('load', function () {
......@@ -161,7 +164,6 @@
updateScrollbars();
});
setupTimetravel(document.getElementById('time-travel'));
travelTo(parseInt(getNextEvent().dataset.index));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment