From 6702b0be7c9ef1a3a2e6e071c4ba7a1144940100 Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Thu, 19 Nov 2020 18:08:11 +0900 Subject: [PATCH] . --- public/index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/public/index.js b/public/index.js index 235c07a..09b7f86 100644 --- a/public/index.js +++ b/public/index.js @@ -127,6 +127,9 @@ $(document).ready(function() { $('.objstring').eq(idx).css('z-index', 1); // screens[idx].activate(); + //set background colors + $('body').css('background-color', screen_bgcolors[idx]); + // } else { screens[idx].sendToBack(); $('.objstring').eq(idx).css('z-index', -1); @@ -139,11 +142,6 @@ $(document).ready(function() { if (curscreen == nscreen) { anext._deactivate(); } - //set background colors - $('body').css('background-color', screen_bgcolors[idx]); - console.log(screen_bgcolors); - console.log(idx); - console.log(screen_bgcolors[idx]); } function nextScreen() {