This commit is contained in:
Dooho Yi 2020-11-19 18:08:11 +09:00
parent 9b2af79e8c
commit 6702b0be7c

View file

@ -127,6 +127,9 @@ $(document).ready(function() {
$('.objstring').eq(idx).css('z-index', 1); $('.objstring').eq(idx).css('z-index', 1);
// //
screens[idx].activate(); screens[idx].activate();
//set background colors
$('body').css('background-color', screen_bgcolors[idx]);
//
} else { } else {
screens[idx].sendToBack(); screens[idx].sendToBack();
$('.objstring').eq(idx).css('z-index', -1); $('.objstring').eq(idx).css('z-index', -1);
@ -139,11 +142,6 @@ $(document).ready(function() {
if (curscreen == nscreen) { if (curscreen == nscreen) {
anext._deactivate(); 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() { function nextScreen() {