Skip to content

Instantly share code, notes, and snippets.

@toolness
Created October 15, 2011 18:11
Show Gist options
  • Save toolness/1289911 to your computer and use it in GitHub Desktop.
Save toolness/1289911 to your computer and use it in GitHub Desktop.
The Popcorn 101 demo with Cornish (no JS skills required).
<!doctype html>
<html>
<head>
<script src="http://popcornjs.org/code/dist/popcorn-complete.min.js"></script>
<script src="http://toolness.github.com/mas-bebe-itvs-sprint/cornish.js"></script>
</head>
<style>
.footnote { visibility: hidden; }
.footnote.active { visibility: visible; }
</style>
<body>
<video height="180" width="300" class="primary-sync-source" autoplay>
<source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.mp4"></source>
<source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.ogv"></source>
<source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.webm"></source>
</video>
<div class="footnote" data-active-during="2-6">Pop!</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment