Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.sc-player').each(function() {
- var soundid = $(this).data('sc-id');
- var soundwidth = $(this).data('sc-width') || '100%';
- var soundheight = $(this).data('sc-height') || '450';
- if (soundid) {
- $(this).html('<iframe width="' + soundwidth + '" height="' + soundheight + '" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/' + soundid + '&color=ff5500&auto_play=false&hide_related=false&show_artwork=true"></iframe>');
- } else {
- window.GlobalNotification.show('Este artículo contiene un reproductor de Soundcloud, pero no se ha especificado el archivo.', 'error');
- };
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement