MCPcopy Create free account
hub / github.com/codemistic/Web-Development / onImageLoad

Function onImageLoad

QR-Code-Generator/index.js:14–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 qrImageEl.src = url;
13
14 const onImageLoad = () => {
15 const interval = setInterval(() => {
16 qrContainerEl.classList.add("show");
17 clearInterval(interval);
18 generateButtonEl.innerText = "Genrated QR Code";
19 }, 500);
20 };
21
22 qrImageEl.addEventListener("load", onImageLoad);
23};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected