Last active
November 17, 2016 22:12
-
-
Save anythinggraphic/b5ffb00f7f73f7bd1f8febd8d632ca03 to your computer and use it in GitHub Desktop.
When HTML5 video ends, show the poster.
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
<script>var video= jQuery("#hero-movie")[0]; | |
var videoJ= jQuery("#hero-movie"); | |
videoJ.on("ended",function(){ | |
video.load(); | |
});</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment