Hello! I have a now playing script in a HTML page.It work but it dosen't refresh after the song change.What am I need to change to this code to refresh automatically after a song change?
code:
<script>
$(document).ready(function(){
$("#front_video").fitVids();
getData();
setInterval(function() {
getData();
}, 3000);
function getData(){
$.get('output_file.txt', function(data) {
$('.now-live span').html(data);
});
}
});
</script>
Sorry for my English!
Thank you in advice!