Skip to content

Instantly share code, notes, and snippets.

@jennojenno
Created April 30, 2013 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jennojenno/5492540 to your computer and use it in GitHub Desktop.
Save jennojenno/5492540 to your computer and use it in GitHub Desktop.
$('img#play').click(function() {
(function(linky) {
$.get(
'http://soundcloud.com/oembed?' +
'url=' + linky +
'&format=json&maxheight=296'
)
.done(function (response) {
(function(song) {
song.innerHTML = response.html;
document.getElementById("soundiframe").appendChild(song);
}(song));
});
}(linky));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment