Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Jquery video end event
- * Source: https://stackoverflow.com/questions/14517639/executing-function-at-end-of-html5-video
- */
- function setEndVideo() {
- var vid = document.getElementById('u_1_6');
- //console.log(vid);
- if (vid) {
- vid.onended = function(event) {
- this.currentTime = 0;
- };
- }
- }
- setTimeout(setEndVideo, 5000);
Add Comment
Please, Sign In to add comment