Last active
November 17, 2016 22:11
-
-
Save anythinggraphic/80b920d860753308e4fb68bd5e09e361 to your computer and use it in GitHub Desktop.
When you click on an HTML5 video poster, play the video.
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 v = document.getElementById("movie"); | |
v.onclick = function() { | |
v.paused ? v.play() : v.pause() | |
};</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment