Skip to content

Instantly share code, notes, and snippets.

@mandrasch
Created October 16, 2015 15:02
Show Gist options
  • Save mandrasch/67cd8b1a9a801c71a835 to your computer and use it in GitHub Desktop.
Save mandrasch/67cd8b1a9a801c71a835 to your computer and use it in GitHub Desktop.
html5_video_event_ended.js
/* beispiel für video <video id="testvideo">*/
/* event listener */
document.getElementById('testvideo').addEventListener('ended',zeigeDialog,false);
/* funktion, die ausgeführt wird, wenn video endet */
function zeigeDialog(e) {
/* hier dialog zeigen */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment