home page fixes; various issues fix

This commit is contained in:
bkfox
2024-01-05 16:23:23 +01:00
parent 294c848415
commit c52e87acd2
18 changed files with 106 additions and 101 deletions

View File

@@ -42,7 +42,7 @@ window.aircox = {
playerLoader.enable(false)
this.playerLoader = playerLoader
document.addEventListener("keypress", e => this.onKeyPress(e), false)
document.addEventListener("keyup", e => this.onKeyPress(e), false)
}
if(initApp) {
@@ -55,8 +55,10 @@ window.aircox = {
},
onKeyPress(event) {
if(event.key == " ")
if(event.key == " ") {
this.player.togglePlay()
event.stopPropagation()
}
},
/**