Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

Commit

Permalink
milestoning swap of URLs for SC widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Bull committed Jan 29, 2013
1 parent 8eb8080 commit 33630ee
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions js/app.js
Expand Up @@ -89,22 +89,13 @@ App.Tracks.FIXTURES = [
];

window.setTimeout(function(){
//var widget = SC.Widget(widgetIframe);
//var newWidgetUrl = 'https://w.soundcloud.com/player/?url=https://api.soundcloud.com/staceypullen/stacey-pullen-live';

var newWidgetUrl = 'https://api.soundcloud.com/staceypullen/stacey-pullen-live';
var baseUrl = 'https://w.soundcloud.com/player/';
var pullenUrl = 'https://api.soundcloud.com/staceypullen/stacey-pullen-live';
var craigUrl = 'https://api.soundcloud.com/r_co/carl-craig-20-years-of-planet';
var widgetIframe = document.getElementById('sc-widget');

//var iframe = document.querySelector('.iframe');

widgetIframe.src = 'https://w.soundcloud.com/player/' + "?url=" + newWidgetUrl;
App.SCWidget = SC.Widget(iframe);
widgetIframe.src = baseUrl + "?url=" + pullenUrl;
App.SCWidget = SC.Widget(widgetIframe);
App.SCWidget.load(craigUrl);

//widget.bind(SC.Widget.Events.READY, function() {
//// load new widget
//widget.bind(SC.Widget.Events.FINISH, function() {
//widget.load(newWidgetUrl, {});
//});
//});

}, 1000);

0 comments on commit 33630ee

Please sign in to comment.