Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
AJYaBoi authored Aug 6, 2024
1 parent 23176db commit c2dcc13
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions VideoPlayer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,15 @@

// Initialize DVD image
dvd.style.backgroundImage = `url(${dvdImages[currentImageIndex]})`;
dvd.style.backgroundColor = '#fff'; // Set a background color to see the area

// Log errors if images do not load
dvdImages.forEach((src) => {
const img = new Image();
img.onload = () => console.log(`${src} loaded successfully.`);
img.onerror = () => console.error(`${src} failed to load.`);
img.src = src;
});
</script>
</body>
</html>

0 comments on commit c2dcc13

Please sign in to comment.