Not sure if anyone can help, I have a scaling issue with an image, on big screens it duplicates (Tile effect) and on small screens that can only hand res 1024 the image is too big?
I have tried HTML and CSS methods both seem to fail.
this is what I did when the music didn’t play itself. I tried to update the howler version but it didn’t play so I put this code in index.html
<audio id="music" src="music.ogg" autoplay="true" hidden="true" loop="true"/>
<script>
var play = false;
var myAudio = document.getElementById("music");
myAudio.volume = 0.3;
// function push spacebar to pause the music
function onKeyDown(event) {
switch (event.keyCode) {
case 32: //SpaceBar
if (play) {
myAudio.pause();
play = false;
} else {
myAudio.play();
play = true;
}
break;
}
return false;
}
window.addEventListener("keydown", onKeyDown, false);
</script>