From e089ce8f21a5f708190792acf78574b45bdb5e50 Mon Sep 17 00:00:00 2001 From: Neil Brommer Date: Sun, 10 Dec 2017 11:36:09 -0800 Subject: [PATCH] Change the color of the navbar expander based on background --- js/main.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 6024cc9..8f6adf7 100644 --- a/js/main.js +++ b/js/main.js @@ -209,10 +209,13 @@ function calcBackground() { function setBackground(num, dark) { $("body").css("background-image", "url(img/" + num + ".png)"); - if (dark) + if (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"); + $(".navbar").removeClass("navbar-dark").addClass("navbar-light"); + } } function getListString() {