Player boo hoo
This commit is contained in:
+16
File diff suppressed because one or more lines are too long
@@ -0,0 +1,12 @@
|
||||
$(function(){
|
||||
$('.play').click(function(){
|
||||
$.get('/listen/'+ $(this).parent().attr('id') +'/', function(res){
|
||||
if (res.status == 'ok') {
|
||||
$('#player audio').attr('src', res.data.url);
|
||||
$('#player #artist').html(res.data.artist);
|
||||
$('#player #title').html(res.data.track);
|
||||
$('#player audio').play();
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user