diff --git a/resources/js/core.js b/resources/js/core.js index c398cbbc7..5d1c40cad 100644 --- a/resources/js/core.js +++ b/resources/js/core.js @@ -78,6 +78,8 @@ const photoBooth = (function () { $('#video--sensor').hide(); $('#ipcam--view').hide(); public.resetMailForm(); + $('#loader').css('background', config.colors.background_countdown); + $('#loader').css('background-color', config.colors.background_countdown); } // init @@ -249,6 +251,9 @@ const photoBooth = (function () { data.collageNumber = nextCollageNumber; } + loader.css('background', config.colors.panel); + loader.css('background-color', config.colors.panel); + jQuery.post('api/takePic.php', data).done(async function (result) { console.log('took picture', result); $('.cheese').empty(); diff --git a/resources/sass/style.scss b/resources/sass/style.scss index 707a1e31a..9894463bf 100644 --- a/resources/sass/style.scss +++ b/resources/sass/style.scss @@ -87,7 +87,6 @@ display: none; align-items: center; justify-content: center; - background: $background_countdownColor; background-size: cover; background-position: center center; color: $countdownColor; @@ -105,7 +104,6 @@ bottom: 0; left: 0; z-index: -1; - background-color: $background_countdownColor; opacity: 1; transition: opacity 0.5s; }