Created
March 7, 2014 20:32
-
-
Save Strap1/9419451 to your computer and use it in GitHub Desktop.
Popcorn .srt Issue
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
<div id="showcase-video"> | |
<div class="lyrics-youtube"></div> | |
</div> | |
<div id="subs"></div> | |
<script> | |
document.addEventListener( "DOMContentLoaded", function() { | |
var pop = Popcorn.youtube( ".lyrics-youtube", "https://www.youtube.com/watch?v=Z7gbtEcA7BE", { | |
defaults: { | |
subtitle: { | |
target: "subs" | |
} | |
} | |
}); | |
pop.parseSRT( "http://www.beta.hiphopinenglish.com/wp-content/themes/mh_magazine_child/wisdom.srt" ); | |
}, false ); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment