Funktuon Vorherige oder Nächste

This commit is contained in:
mikka 2026-04-23 07:31:39 +02:00
parent 587239e046
commit 9c96294e02
2 changed files with 12 additions and 1 deletions

View file

@ -6,6 +6,17 @@ outindex = 0
playing = false
playcolor = "#00ff3c"
loop = true
function nächste(id){
audios[id].pause()
console.log(id)
id = parseInt(id) + 1
console.log(id)
audios[id].play()
}
function vorherige(id){
audios[id].pause()
audios[id-1].play()
}
function looptrue(){
if(loop){
loop = false