equal
deleted
inserted
replaced
45 |
45 |
46 this.selector.addClass("Ldt-SegmentsWidget"); |
46 this.selector.addClass("Ldt-SegmentsWidget"); |
47 this.selector.append(Mustache.to_html(IriSP.overlay_marker_template)); |
47 this.selector.append(Mustache.to_html(IriSP.overlay_marker_template)); |
48 |
48 |
49 var view_type = this._serializer.getChapitrage(); |
49 var view_type = this._serializer.getChapitrage(); |
50 if (typeof(view_type) === "undefined") |
50 if (typeof(view_type) === "undefined") { |
51 view_type = this._serializer.getNonTweetIds()[0]; |
51 console.log(this._serializer.getNonTweetIds()); |
52 |
52 view_type = this._serializer.getNonTweetIds()[0]; |
|
53 } |
53 this.positionMarker = this.selector.children(":first"); |
54 this.positionMarker = this.selector.children(":first"); |
54 |
55 |
55 this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.positionUpdater)); |
56 this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.positionUpdater)); |
56 |
57 |
57 |
58 |
99 else |
100 else |
100 var color = annotation.color; |
101 var color = annotation.color; |
101 |
102 |
102 var hexa_color = IriSP.DEC_HEXA_COLOR(color); |
103 var hexa_color = IriSP.DEC_HEXA_COLOR(color); |
103 |
104 |
|
105 /* |
104 if (hexa_color === "FFCC00") |
106 if (hexa_color === "FFCC00") |
105 hexa_color = "333"; |
107 hexa_color = "333"; |
|
108 */ |
106 if (hexa_color.length == 4) |
109 if (hexa_color.length == 4) |
107 hexa_color = hexa_color + '00'; |
110 hexa_color = hexa_color + '00'; |
108 |
111 |
109 var annotationTemplate = Mustache.to_html(IriSP.annotation_template, |
112 var annotationTemplate = Mustache.to_html(IriSP.annotation_template, |
110 {"divTitle" : divTitle, "id" : id, "startPixel" : startPixel, |
113 {"divTitle" : divTitle, "id" : id, "startPixel" : startPixel, |