MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / changeImageSrc

Function changeImageSrc

assets/js/ProductCard.js:1–5  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

1function changeImageSrc(source) {
2 console.log(source);
3 var shoe = document.getElementById("shoeImg");
4 shoe.src = `../assets/Images/ProductCard/${source}.png`;
5}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected