Last active
April 23, 2016 17:23
-
-
Save carloscarvallo/dadcae43e9af4379d7ee7946aa99a5f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<div> | |
<p>score 1:</p> | |
<iframe id="soundslice-score" src="https://www.soundslice.com/scores/12802/embed/?api=1" width="100%" height="500" frameborder="0" allowfullscreen=""></iframe> | |
<script type="text/javascript"> | |
window.onload = function() { | |
window.addEventListener('message', function(event) { | |
console.log(event); | |
var cmd = JSON.parse(event.data); | |
if (cmd.method === 'ssPlay') { | |
console.log('Played!'); | |
} | |
}); | |
}; | |
</script> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment