Skip to content

Commit

Permalink
Update rune.html
Browse files Browse the repository at this point in the history
  • Loading branch information
frubcoin authored Apr 18, 2024
1 parent 87d89bd commit bccfafd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions rune.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});

</script>
</body>
</html>
Expand Down

0 comments on commit bccfafd

Please sign in to comment.