Experiments and examples of using pad.ma / pandora embeds
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
857 B

<!doctype html>
<html>
<head>
<title>Example using PandoraEmbed class</title>
<script src="lib/PandoraEmbed.js"></script>
</head>
<body>
<div id="iframeContainer"></div>
<script>
var container = document.getElementById('iframeContainer');
var embed = new PandoraEmbed({
id: 'test',
url: 'https://pad.ma/A/editor/C#embed',
container: container
});
embed.on('init', function(data) {
console.log('embed initted');
});
embed.on('playing', function(data) {
console.log('playing callback called');
});
embed.on('paused', function(data) {
console.log('pause fired', data);
});
</script>
</body>
</html>