Skip to content

Suggestion to add soundcloud.com #3

@q2apro

Description

@q2apro

Soundcloud.com is getting more popular, they provide a nice embed widget.
I did the embed by js, but probably for some users it is more suitable to have the embed code generated server side. The js code:

// javascript: parse soundcloud link to embed widget
function parse_soundcloud_links() {
    $('a[href*="soundcloud.com"]').each(function(){
        var $link = $(this);
        $.getJSON('http://soundcloud.com/oembed?format=js&url=' + $link.attr('href') + '&iframe=true&callback=?', function(response){
        $link.replaceWith(response.html);
        });
    });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions