src/js/widgets/segmentsWidget.js
branchpopcorn-port
changeset 220 6498b89eabcd
parent 218 079b745d0438
child 222 0f86664b470d
equal deleted inserted replaced
219:12a72b00f4ab 220:6498b89eabcd
    16 
    16 
    17   var self = this;
    17   var self = this;
    18   var annotations = this._serializer._data.annotations;
    18   var annotations = this._serializer._data.annotations;
    19 
    19 
    20   this.selector.css("overflow", "auto"); // clear the floats - FIXME : to refactor ?
    20   this.selector.css("overflow", "auto"); // clear the floats - FIXME : to refactor ?
    21   this.selector.append("<div style='position: absolute; z-index: 100; width: 1px; height: 20px; background-color: white;'></div>");
    21   this.selector.append(Mustache.to_html(IriSP.segment_marker_template));
       
    22   
    22   this.positionMarker = this.selector.children(":first");
    23   this.positionMarker = this.selector.children(":first");
    23   
    24   
    24   this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.positionUpdater));
    25   this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.positionUpdater));
    25   
    26   
    26   this.selector.after("<div class='cleaner'></div>"); // we need to do this because the segments are floated                                                      
    27   this.selector.after("<div class='cleaner'></div>"); // we need to do this because the segments are floated