targetEntity.addEventListener("targetLost", () => { arVideo.pause(); statusText.innerHTML = "Point at the Picture"; statusText.style.background = "rgba(0, 0, 0, 0.7)"; }); }, 500); } else { statusText.style.display = 'block'; statusText.innerHTML = "Invalid Magic Link."; }