diff --git a/src/main/resources/static/js/init.js b/src/main/resources/static/js/init.js
index 5423536..9e39df9 100644
--- a/src/main/resources/static/js/init.js
+++ b/src/main/resources/static/js/init.js
@@ -122,6 +122,8 @@ function getCurentMusic() {
}
$('#music_img').attr("src","/img/no_music.jpg");
+ $('#total_time').text("00:00");
+ $('#current_time').text("00:00");
break;
@@ -258,6 +260,9 @@ function updateControl(data){
}
$('#music_img').attr("src","https://img.youtube.com/vi/"+data.info.identifier+"/hqdefault.jpg");
+ console.log(data);
+ $('#total_time').text(msToTime(data.info.length));
+ $('#current_time').text(msToTime(data.currentPos));
updateModal(data);
}
diff --git a/src/main/resources/templates/music.html b/src/main/resources/templates/music.html
index ca44919..08e8e68 100644
--- a/src/main/resources/templates/music.html
+++ b/src/main/resources/templates/music.html
@@ -45,11 +45,15 @@