Spaces:
Running
Running
Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
|
@@ -31,7 +31,7 @@
|
|
| 31 |
|
| 32 |
// Only update the background if the image is different to avoid re-rendering the same image
|
| 33 |
const currentImage = imageContainer.style.backgroundImage;
|
| 34 |
-
const newImage =
|
| 35 |
|
| 36 |
if (currentImage !== newImage) {
|
| 37 |
imageContainer.style.backgroundImage = newImage; // Set the background
|
|
|
|
| 31 |
|
| 32 |
// Only update the background if the image is different to avoid re-rendering the same image
|
| 33 |
const currentImage = imageContainer.style.backgroundImage;
|
| 34 |
+
const newImage = 'https://huggingface.co/spaces/tonyassi/parallax-scroll/resolve/main/images/${imageNumber}.png';
|
| 35 |
|
| 36 |
if (currentImage !== newImage) {
|
| 37 |
imageContainer.style.backgroundImage = newImage; // Set the background
|