padmaEmbeds/lib-example.html

29 lines
857 B
HTML

<!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>