Make testing setBackground easier

This commit is contained in:
Neil Brommer 2017-12-31 15:59:28 -08:00
parent 6628e2c89c
commit d72c3aba0a

View file

@ -29,11 +29,11 @@ function calcBackground() {
}
}
function setBackground(address, dark) {
function setBackground(num) {
// dark is a boolean that indicates the brightness of the background
$("body").css("background-image", "url(" + address + ")");
$("body").css("background-image", "url(" + backgroundList[num].address + ")");
if (dark) {
if (backgroundList[num].dark) {
$(".navbar").removeClass("navbar-dark").addClass("navbar-light");
$(".navbar-toggler").removeClass("toggler-bg-dark btn-dark").addClass("toggler-bg-light btn-light");
} else {