blob: 993d805d1ef06f058b0c440fcdfdc6bbd574dafa (
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
|
var ProjectList = View.extend({
el: ".projectList",
events: {
"mouseenter .room": 'spinOn',
"mouseleave .room": 'spinOff',
},
initialize: function(){
},
spinOn: function(e){
var iframe = $(e.currentTarget).find("iframe").get('0')
if (! iframe) return
iframe.contentWindow.postMessage("spin-on", window.location.origin)
},
spinOff: function(e){
var iframe = $(e.currentTarget).find("iframe").get('0')
if (! iframe) return
iframe.contentWindow.postMessage("spin-off", window.location.origin)
}
})
|