STATUS UPDATE

Create iframe playlist

Share on FacebookTweet about this on TwitterPin on PinterestShare on LinkedInShare on TumblrEmail this to someone


I Sing Nice Dreams by Radiohead (Cover) Kaiser Chiefs – I Predict A RiotKaiser Chiefs – Hole In My Soul

$(document).ready( function() {
    $('head').append('.playlist-item {display: block;cursor: pointer;}.played {color: purple !important;}.playing {color: red !important;}');
});
$(document).on('click', '.playlist-item', function() {
    var srcz = $(this).attr('data-source');
    $('#myiframe').attr( 'src', srcz + '?autoplay=1' );
    $('.playing').removeClass('playing')
    $(this).addClass('played playing');
});

Leave a Reply

Your email address will not be published. Required fields are marked *