From 635bfcfd26d909421fcded19b6faf0108eb9ab02 Mon Sep 17 00:00:00 2001 From: erica-garga Date: Fri, 1 Apr 2022 16:12:39 +0200 Subject: [PATCH] edit --- js/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 385cb08..fe8c2ce 100644 --- a/js/main.js +++ b/js/main.js @@ -26,7 +26,7 @@ button.onclick = function(){ loop_segment(player) } -/* + function change_segment(audio) { if (playing == true) { clearInterval(audio); @@ -34,7 +34,8 @@ function change_segment(audio) { } else { loop_segment(audio) } -}*/ +} + var audio_len = player.duration