Created
December 2, 2014 00:04
-
-
Save devdays/8f9799c5b5c88cf95024 to your computer and use it in GitHub Desktop.
Multimedia controls best practice
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
cartoon.addEventListener('play', function () { | |
playpause.title = "Pause"; | |
playpause.innerHTML = "Pause"; | |
}, false); | |
cartoon.addEventListener('pause', function () { | |
playpause.title = "Play"; | |
playpause.innerHTML = "Play"; | |
}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment