Change the color of the navbar expander based on background

This commit is contained in:
Neil Brommer 2017-12-10 11:36:09 -08:00
parent 13e5fc9025
commit e089ce8f21

View file

@ -209,10 +209,13 @@ function calcBackground() {
function setBackground(num, dark) { function setBackground(num, dark) {
$("body").css("background-image", "url(img/" + num + ".png)"); $("body").css("background-image", "url(img/" + num + ".png)");
if (dark) if (dark) {
$(".btn-light").removeClass("btn-light").addClass("btn-dark"); $(".btn-light").removeClass("btn-light").addClass("btn-dark");
else $(".navbar").removeClass("navbar-light").addClass("navbar-dark");
} else {
$(".btn-dark").removeClass("btn-dark").addClass("btn-light"); $(".btn-dark").removeClass("btn-dark").addClass("btn-light");
$(".navbar").removeClass("navbar-dark").addClass("navbar-light");
}
} }
function getListString() { function getListString() {