Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanamir05 authored Dec 10, 2023
1 parent 7aa30dd commit 524c528
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
window.addEventListener('load', () => {
const preloader = document.getElementById('preloader');
preloader.style.display = 'none';
});

let changeBackgroundImage = clickedImage => {
const mainSection = document.getElementById('main-section');
Expand All @@ -28,4 +24,4 @@ let changeBackgroundImageSeries = clickedImage => {
clickedImage.parentElement.classList.add('tv-series-active-image');
const imageSrc = clickedImage.src;
tvSeriesSection.style.backgroundImage = `url(${imageSrc})`;
}
}

0 comments on commit 524c528

Please sign in to comment.