diff options
| author | ryderr <r@okfoc.us> | 2014-10-24 16:43:36 -0400 |
|---|---|---|
| committer | ryderr <r@okfoc.us> | 2014-10-24 16:43:36 -0400 |
| commit | bd668cf8f54c6ab0c5aa52b7dacf603abadac168 (patch) | |
| tree | 358bb4b75ae147015a529be5d61cea2062b6c7af /public/assets/javascripts/ui/site/HomeView.js | |
| parent | 00880f3965408ba94be1d6c5580eff0307f25085 (diff) | |
| parent | ee834da028053b18cf64b031022337fe78a717a3 (diff) | |
Merge branch 'master' of github.com:okfocus/vvalls
Diffstat (limited to 'public/assets/javascripts/ui/site/HomeView.js')
| -rw-r--r-- | public/assets/javascripts/ui/site/HomeView.js | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/public/assets/javascripts/ui/site/HomeView.js b/public/assets/javascripts/ui/site/HomeView.js index 02f9ab9..ba2ead3 100644 --- a/public/assets/javascripts/ui/site/HomeView.js +++ b/public/assets/javascripts/ui/site/HomeView.js @@ -6,6 +6,28 @@ var HomeView = View.extend({ load: function() { this.projectList = new ProjectList () - } + + var player = $f( okplayer ) + player.addEvent('ready', function(){ + player.addEvent('finish', function(){ + hide() + }) + }) + $('.hero .circle').click( function(){ + $('.videoModal').css("display","table").addClass('active'); + player.api('play') + }) + + $('.videoModal .ion-ios7-close-empty').click( function(){ + player.api('pause') + hide() + }) + + function hide() { + $('.videoModal').fadeOut(300, function(){ + $('.videoModal').removeClass('active') + }) + } + }, }) |
