Player boo hoo

This commit is contained in:
magnolia-fan
2011-04-08 22:39:49 +04:00
parent 63136f8b67
commit b8b97c3efa
14 changed files with 506 additions and 2 deletions
File diff suppressed because one or more lines are too long
+12
View File
@@ -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();
}
})
})
})