tonyassi commited on
Commit
95c56fc
·
verified ·
1 Parent(s): b598200

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +1 -1
index.html CHANGED
@@ -20,7 +20,7 @@
20
 
21
  // Function to get the correct image number based on scroll position
22
  function getImageForScroll(scrollPos) {
23
- let imageIndex = Math.floor(scrollPos / 20); // Change every 50 pixels
24
  return imageIndex < numImages ? String(imageIndex + 1).padStart(4, '0') : String(numImages).padStart(4, '0');
25
  }
26
 
 
20
 
21
  // Function to get the correct image number based on scroll position
22
  function getImageForScroll(scrollPos) {
23
+ let imageIndex = Math.floor(scrollPos / 50); // Change every 50 pixels
24
  return imageIndex < numImages ? String(imageIndex + 1).padStart(4, '0') : String(numImages).padStart(4, '0');
25
  }
26