diff --git a/static/src/js/schedule.js b/static/src/js/schedule.js index b6f1fd4d0ae39ec1617f995aad664a01c80a41a3..f23f3c69d856580a4364a841e4fc1ceae027b538 100644 --- a/static/src/js/schedule.js +++ b/static/src/js/schedule.js @@ -1,5 +1,6 @@ $(function() { var SLOT_REFRESH_INTERVAL = 60 * 1000; + var haveScrolledToCurrentSlot = false; /* Schedule display localisation */ var showCurrentTab = function() { @@ -118,6 +119,11 @@ $(function() { if (confStartTime <= now && confEndTime > now) { slot.addClass("slot-active"); + + if (!haveScrolledToCurrentSlot) { + haveScrolledToCurrentSlot = true; + slot[0].scrollIntoView(); + } } else { slot.removeClass("slot-active"); } diff --git a/static/src/scss/app.scss b/static/src/scss/app.scss index efae99799eecf4dfa975c37c0818a21e15e14e8c..20d0b7d30b2fe22664e58d0db938bd802c28c5fa 100644 --- a/static/src/scss/app.scss +++ b/static/src/scss/app.scss @@ -85,7 +85,7 @@ h3, .h3 { } .slot-active { - background-color: $blaze; + background-color: #EECC96; } .conf-clock {