Created
November 23, 2011 22:12
-
-
Save zachwill/1390079 to your computer and use it in GitHub Desktop.
Popcorn + CoffeeScript
This file contains hidden or 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
| # For working with the Popcorn/Vimeo interaction. | |
| # Here's the JS Fiddle: http://jsfiddle.net/zachwill/eKHKc/ | |
| Popcorn.vimeo('#vimeo', 'http://vimeo.com/123456') | |
| .footnote( | |
| start: 1, end: 5 | |
| text: "Hey, it's working!" | |
| target: "foo" | |
| ) | |
| .footnote( | |
| start: 5, end: 10 | |
| text: "Still working!" | |
| target: "foo" | |
| ) | |
| .code( | |
| start: 6, end: 11 | |
| onStart: -> | |
| $('body').css('background', 'red') | |
| onEnd: -> | |
| $('body').css('background', 'blue') | |
| ) | |
| .footnote( | |
| start: 10, end: 15 | |
| text: "Last of the footnotes" | |
| target: "foo" | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment