diff --git a/oliver_screen/templates/public/index.html b/oliver_screen/templates/public/index.html index 04beaac..36a7184 100644 --- a/oliver_screen/templates/public/index.html +++ b/oliver_screen/templates/public/index.html @@ -27,8 +27,8 @@ $( document ).ready( get_last_track ); $( document ).ready( get_now_playing ); /* Start timers updating a screen resource. */ - $( document ).everyTime('10s', get_last_track ); - $( document ).everyTime('10s', get_now_playing ); + $( document ).everyTime('10s', "last_track", get_last_track ); + $( document ).everyTime('10s', "now_playing", get_now_playing ); /* Ajax spinner */ $( document ).ajaxStart( function() { diff --git a/oliver_screen/templates/public/now_playing.html b/oliver_screen/templates/public/now_playing.html index cd47069..d670206 100644 --- a/oliver_screen/templates/public/now_playing.html +++ b/oliver_screen/templates/public/now_playing.html @@ -1,6 +1,53 @@ {% if now_playing %} {% if now_playing.video %} - + +
+ {% else %} {% if now_playing.image %}