Skip to content

Commit

Permalink
play sound on click
Browse files Browse the repository at this point in the history
modified:   website/index.html
  • Loading branch information
wish13yt committed Oct 20, 2024
1 parent cc655bb commit 733d9ca
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
</style>
</head>
<body>
<audio autoplay loop><source src="creative-technology-showreel-241274.mp3" type="audio/mp3"></audio>
<div>
<img class="welcome" src="welcome.gif" alt="greg">
<a class="download" href="https://github.com/Freakybob-Team/lb/releases/download/Future/setup.py">download the installer!</a>
Expand All @@ -93,5 +92,14 @@
<footer>
Music by <a href="https://pixabay.com/users/pumpupthemind-19969411/?utm_source=link-attribution&utm_medium=referral&utm_campaign=music&utm_content=241274">Ivan Ohanezov</a> from <a href="https://pixabay.com/music//?utm_source=link-attribution&utm_medium=referral&utm_campaign=music&utm_content=241274">Pixabay</a>
</footer>
<script>
const ks = new Audio('creative-technology-showreel-241274.mp3')
let userinteraction = 0
document.addEventListener('click',()=>{
if(userinteraction) return;
userinteraction++;
ks.play()
})
</script>
</body>
</html>

0 comments on commit 733d9ca

Please sign in to comment.