From c2dcc137c4dbf01662260850ff2ade3b1b20ba83 Mon Sep 17 00:00:00 2001 From: Rat poop <105378453+AJYaBoi@users.noreply.github.com> Date: Tue, 6 Aug 2024 09:48:56 -0400 Subject: [PATCH] Update index.html --- VideoPlayer/index.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/VideoPlayer/index.html b/VideoPlayer/index.html index abdc3b6..866cdaf 100644 --- a/VideoPlayer/index.html +++ b/VideoPlayer/index.html @@ -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; + });