In honour of Minecraft 1.17's goats, the site will play one of two goat sounds when the user clicks anywhere on the page.
As with the spawn-chance of a screaming goat in Minecraft, there is a 2% chance that this sound will be a so-called 'screaming goat'. Otherwise it will simply be a normal Minecraft goat sound.
The original issue wanted to have the sound play on page load, however, recent changes in web practices have meant that it is no longer possible to play sounds/video/media via js until the user has interacted with the page (this is to prevent annoying autoplay in the background) so playing the sounds on click has to suffice now.
Resolves #16
In honour of Minecraft 1.17's goats, the site will play one of two goat sounds when the user clicks anywhere on the page.
As with the spawn-chance of a screaming goat in Minecraft, there is a 2% chance that this sound will be a so-called 'screaming goat'. Otherwise it will simply be a normal Minecraft goat sound.
(Sounds are sourced from minecraft.fandom.com/wiki)
The original issue wanted to have the sound play on page load, however, recent changes in web practices have meant that it is no longer possible to play sounds/video/media via js until the user has interacted with the page (this is to prevent annoying autoplay in the background) so playing the sounds on click has to suffice now.