From 9f96393eaf1baf88968e80c78267d216d31d670a Mon Sep 17 00:00:00 2001 From: iou1name Date: Thu, 7 Feb 2019 09:23:26 -0500 Subject: [PATCH] added artist/album info to nowPlaying --- static/musik.js | 4 +++- templates/index.html | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/static/musik.js b/static/musik.js index 646502a..b1a3382 100644 --- a/static/musik.js +++ b/static/musik.js @@ -72,7 +72,9 @@ function change_track(track) { let player = document.getElementById('player'); player.load(); player.play(); - document.getElementById('nowPlaying').innerHTML = track.title; + document.getElementById('nowPlayingArtist').innerHTML = track.artist; + document.getElementById('nowPlayingAlbum').innerHTML = track.album; + document.getElementById('nowPlayingTitle').innerHTML = track.title; document.getElementById('albumCover').firstChild.src = track.coverart; } diff --git a/templates/index.html b/templates/index.html index f156955..31f7ddd 100644 --- a/templates/index.html +++ b/templates/index.html @@ -32,7 +32,8 @@
-

+

-

+