It fuckin' works\!
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
$(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();
|
||||
}
|
||||
})
|
||||
$('#player audio').attr('src', '/listen/'+ $(this).parent().attr('id')) +'/';
|
||||
$('#player #artist').html($('h1.artist').html());
|
||||
$('#player #title').html($(this).parent().find('.track-name').html());
|
||||
$('#player audio').play();
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user