Skip to content

Commit

Permalink
Add actual video
Browse files Browse the repository at this point in the history
  • Loading branch information
zachwill committed Nov 28, 2011
1 parent f9664a3 commit c770a7f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 21 deletions.
31 changes: 21 additions & 10 deletions static/js/application.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class CheckFlashPlayer
constructor: ->
if not swfobject.hasFlashPlayerVersion('11')
$('#video').html("""
<iframe src="http://player.vimeo.com/video/31356476?title=0&byline=0"
<iframe src="http://player.vimeo.com/video/32772167"
width="560" height="350" frameborder="0" webkitAllowFullScreen
allowFullScreen></iframe>
""")
Expand All @@ -240,7 +240,7 @@ do ->
do ->
# And, finally, the Popcorn / Vimeo interaction...
song = '/static/img/song'
Popcorn.vimeo('#video', 'http://vimeo.com/32071937')
Popcorn.vimeo('#video', 'http://vimeo.com/32772167')

.code(
start: .1
Expand All @@ -254,7 +254,7 @@ do ->
new ImageFile('delorean', "#{song}/delorean.jpeg")
onEnd: ->
$('html, body').animate(scrollTop: 710)
$('textarea').animate(height: 500)
$('textarea').animate(height: 525)
)

.code(
Expand All @@ -264,17 +264,23 @@ do ->
)

.code(
start: 9
start: 8
onStart: ->
new ImageFile('bennigans', "#{song}/bennigans.jpeg")
)

.code(
start: 11
start: 9.5
onStart: ->
new ImageFile('boba fett', "#{song}/boba_fett.jpeg")
)

.code(
start: 12
onStart: ->
new ImageFile('hesitate', "#{song}/hesitate.jpeg")
)

.code(
start: 14
onStart: ->
Expand All @@ -300,7 +306,7 @@ do ->
)

.code(
start: 23
start: 22
onStart: ->
new ImageFile('money', "#{song}/money.png")
)
Expand All @@ -318,7 +324,7 @@ do ->
)

.code(
start: 28
start: 27
onStart: ->
new ImageFile('hook', "#{song}/hook.jpeg")
)
Expand All @@ -330,13 +336,13 @@ do ->
)

.code(
start: 31
start: 30
onStart: ->
new ImageFile('mask', "#{song}/mask.jpeg")
)

.code(
start: 33
start: 32
onStart: ->
new ImageFile('detention', "#{song}/detention.jpeg")
)
Expand Down Expand Up @@ -366,7 +372,7 @@ do ->
)

.code(
start: 45
start: 44
onStart: ->
new ImageFile('mask', "#{song}/mask.jpeg")
)
Expand All @@ -377,5 +383,10 @@ do ->
new ImageFile('boba fett', "#{song}/boba_fett.jpeg")
onEnd: ->
$('html, body').animate(scrollTop: 0)
)

.code(
start: 52
onStart: ->
$('textarea').css('height', '')
)
31 changes: 20 additions & 11 deletions static/js/application.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c770a7f

Please sign in to comment.