Skip to content

Instantly share code, notes, and snippets.

@binarymelon
Last active December 26, 2015 12:49
Show Gist options
  • Save binarymelon/7153555 to your computer and use it in GitHub Desktop.
Save binarymelon/7153555 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>title</title>
<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="https://w.soundcloud.com/player/api.js"></script>
<script type="text/javascript">
var volumecontrol = document.getElementById('volumecontrol');
function updateVolume() {
SC.Widget('sciframe').setVolume(volumecontrol.value);
}
</script>
</head>
<body>
<iframe id="sciframe" width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/116950867&amp;color=000de2&amp;auto_play=false&amp;show_artwork=true"></iframe>
<input type="range" max="1" step="any" id="volumecontrol" onchange="updateVolume()">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment