Skip to content

Commit

Permalink
make index start from 0
Browse files Browse the repository at this point in the history
  • Loading branch information
fun840 authored Mar 27, 2024
1 parent ce7c3e8 commit 4056d0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ <h2 class="section-title">Magic Runes</h2>
imageUrls.forEach((url, index) => {
const img = document.createElement("img");
img.src = url;
img.alt = `Circle ${index + 1}`;
img.alt = `Circle ${index}`;
container.appendChild(img);
});
} else if (type === 'runes') {
Expand All @@ -148,7 +148,7 @@ <h2 class="section-title">Magic Runes</h2>
img.style.contentVisibility = 'hidden';
img.style.backgroundRepeat = 'repeat-x';
img.style.backgroundSize = 'auto 50px';
img.alt = `Rune ${index + 1}`;
img.alt = `Rune ${index}`;
container.appendChild(img);
});
}
Expand Down

0 comments on commit 4056d0a

Please sign in to comment.