From bccfafdda7f5c7328a91190eaec1f0d5afd752d2 Mon Sep 17 00:00:00 2001 From: frubcoin <160479988+frubcoin@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:49:16 -0700 Subject: [PATCH] Update rune.html --- rune.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/rune.html b/rune.html index ccd4f63..0b3cf8e 100644 --- a/rune.html +++ b/rune.html @@ -251,6 +251,24 @@ function goToLink() { window.location.href = "https://magiceden.io/ordinals/marketplace/runechaos"; // Replace "https://www.example.com" with your desired link } + + // Get the audio element +let audio = document.getElementById("mouseAudio"); + +// Variable to track whether the audio has been played already +let audioPlayed = false; + +// Event listener for mouse movement +document.addEventListener("mousemove", function(event) { + // Check if the audio has not been played yet + if (!audioPlayed) { + // Play the audio + audio.play(); + // Set the flag to true to indicate that the audio has been played + audioPlayed = true; + } +}); +