Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
singaporeandurian authored Nov 8, 2024
1 parent 353409e commit a1e3ffb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascript/gallery.js
Original file line number Diff line number Diff line change
@@ -213,7 +213,7 @@ function displaySVGs(metadataArray) {

// Create the img element
const imgElement = document.createElement('img');
imgElement.src = '../images/bitring/pngsmall/${metadata.tokenId}.png`;
imgElement.src = '../images/bitring/pngsmall/${metadata.tokenId}.png';
imgElement.alt = `${metadata.name}`; // Descriptive alt tag for accessibility
imgElement.className = 'svg-image'; // Apply styling

@@ -462,7 +462,7 @@ function displayItemByTokenId(tokenId) {
imageContainer.className = 'svg-image-container';

const imgElement = document.createElement('img');
imgElement.src = '../images/bitring/pngsmall/${item.tokenId}.png`;
imgElement.src = '../images/bitring/pngsmall/${item.tokenId}.png';
imgElement.alt = `${item.name}`; // Descriptive alt tag for accessibility
imgElement.className = 'svg-image'; // Apply styling

0 comments on commit a1e3ffb

Please sign in to comment.