Skip to content

Instantly share code, notes, and snippets.

@silveur
Last active January 24, 2017 15:18
Show Gist options
  • Save silveur/aa9f21bf0d68e7155eba903266ec7228 to your computer and use it in GitHub Desktop.
Save silveur/aa9f21bf0d68e7155eba903266ec7228 to your computer and use it in GitHub Desktop.
Mixcloud widget
<script src="http://widget.mixcloud.com/media/js/widgetApi.js" type="text/javascript"></script>
<iframe id="mixcloudPlayer" width="100%" height="120" frameborder="0" src="https://www.mixcloud.com/widget/iframe/?feed=https%3A%2F%2Fwww.mixcloud.com%2Fspartacus%2Fparty-time%2F&hide_cover=1&light=1"></iframe>
<script type="text/javascript">
var widget = Mixcloud.PlayerWidget(document.getElementById('mixcloudPlayer'));
widget.getPosition().then(function(position) {
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment