Changeset - 0a0c46684709
[Not reviewed]
0 2 0
Joel Addison - 3 years ago 2021-01-23 05:56:02
joel@addison.net.au
Tweak current slot highlight
2 files changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
static/src/js/schedule.js
Show inline comments
 
$(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");
 
            }
static/src/scss/app.scss
Show inline comments
...
 
@@ -85,7 +85,7 @@ h3, .h3 {
 
}
 

	
 
.slot-active {
 
    background-color: $blaze;
 
    background-color: #EECC96;
 
}
 

	
 
.conf-clock {
0 comments (0 inline, 0 general)