Skip to content

Instantly share code, notes, and snippets.

@zachwill
Created November 23, 2011 22:12
Show Gist options
  • Select an option

  • Save zachwill/1390079 to your computer and use it in GitHub Desktop.

Select an option

Save zachwill/1390079 to your computer and use it in GitHub Desktop.
Popcorn + CoffeeScript
# 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