Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
style: #loader style background via js
Browse files Browse the repository at this point in the history
Change-Id: I0d8054a682b287369e91f357c507430ffefd77a2
  • Loading branch information
andi34 committed Jun 1, 2020
1 parent b2360f9 commit f2077dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions resources/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 0 additions & 2 deletions resources/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
display: none;
align-items: center;
justify-content: center;
background: $background_countdownColor;
background-size: cover;
background-position: center center;
color: $countdownColor;
Expand All @@ -105,7 +104,6 @@
bottom: 0;
left: 0;
z-index: -1;
background-color: $background_countdownColor;
opacity: 1;
transition: opacity 0.5s;
}
Expand Down

0 comments on commit f2077dd

Please sign in to comment.