I have two nav-pills that I need to hide until a certain time of the day and then hide again at a later time of the same day. However there is a third nav-pill which shouldn´t be affected by this and visible at all times.
function showNavPill() {
let now = new Date();
let hours = now.getHours();
let minutes = now.getMinutes();
if (date > 15.30 && date < 17.15) {
nav-pill.show = true;
} else {
nav-pill.show = false;
}
}
showNavPill();
I´m quite new to this so not sure if this makes any sense?