tonyassi commited on
Commit
d22c88f
·
verified ·
1 Parent(s): 2b59578

Update index.html

Browse files
Files changed (1) hide show
  1. 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 = '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
 
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 = `url('images/${imageNumber}.png')`;
35
 
36
  if (currentImage !== newImage) {
37
  imageContainer.style.backgroundImage = newImage; // Set the background