Tweak current slot highlight

This commit is contained in:
Joel Addison 2021-01-23 15:56:02 +10:00
parent 91ad6fc563
commit 0a0c466847
2 changed files with 7 additions and 1 deletions

View file

@ -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");
}

View file

@ -85,7 +85,7 @@ h3, .h3 {
}
.slot-active {
background-color: $blaze;
background-color: #EECC96;
}
.conf-clock {