|
299
|
1 |
IriSP.ArrowWidget = function(Popcorn, config, Serializer) { |
|
|
2 |
IriSP.Widget.call(this, Popcorn, config, Serializer); |
|
|
3 |
|
|
|
4 |
}; |
|
|
5 |
|
|
|
6 |
|
|
|
7 |
IriSP.ArrowWidget.prototype = new IriSP.Widget(); |
|
|
8 |
|
|
|
9 |
IriSP.ArrowWidget.prototype.clear = function() { |
|
|
10 |
|
|
|
11 |
}; |
|
|
12 |
|
|
|
13 |
IriSP.ArrowWidget.prototype.clearWidget = function() { |
|
|
14 |
}; |
|
|
15 |
|
|
|
16 |
IriSP.ArrowWidget.prototype.draw = function() { |
|
|
17 |
var templ = Mustache.to_html(IriSP.arrowWidget_template, {}); |
|
|
18 |
this.selector.append(templ); |
|
305
|
19 |
this._Popcorn.listen("IriSP.SegmentsWidget.segmentClick", IriSP.wrap(this, this.segmentClickHandler)); |
|
299
|
20 |
}; |
|
305
|
21 |
|
|
|
22 |
IriSP.ArrowWidget.prototype.segmentClickHandler = function(percents) { |
|
|
23 |
this.selector.children(".Ldt-arrowWidget").css("left", percents + "%"); |
|
|
24 |
} |