blob: 404a491da6129c350a1eaed587f77c5d0f0ed81b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
var HomeView = View.extend({
initialize: function() {
},
load: function() {
this.projectList = new ProjectList ()
var player = $f( okplayer )
player.addEvent('ready', function(){
player.addEvent('play', function(){
player.api('setVolume', 1.0)
})
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')
})
}
},
})
|