From d72c3aba0a9a9dc9fed1659609a4a2f80f412bda Mon Sep 17 00:00:00 2001 From: Neil Brommer Date: Sun, 31 Dec 2017 15:59:28 -0800 Subject: [PATCH] Make testing setBackground easier --- js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/main.js b/js/main.js index a64ed81..1d0b6b3 100644 --- a/js/main.js +++ b/js/main.js @@ -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 {