equal
deleted
inserted
replaced
27 IriSP.jQuery("#Ldt-Show-Arrow").animate({left:startPourcent+'%'},1000); |
27 IriSP.jQuery("#Ldt-Show-Arrow").animate({left:startPourcent+'%'},1000); |
28 //IriSP.jQuery("#"+annotationTempo.id).animate({alpha:'100%'},1000); |
28 //IriSP.jQuery("#"+annotationTempo.id).animate({alpha:'100%'},1000); |
29 |
29 |
30 }; |
30 }; |
31 |
31 |
|
32 IriSP.AnnotationsWidget.prototype.clearWidget = function() { |
|
33 /* retract the pane between two annotations */ |
|
34 IriSP.jQuery("#Ldt-SaTitle").text(""); |
|
35 IriSP.jQuery("#Ldt-SaDescription").text(""); |
|
36 IriSP.jQuery("#Ldt-SaKeywordText").html(""); |
|
37 IriSP.jQuery('#Ldt-ShowAnnotation').slideUp(); |
|
38 } |
32 IriSP.AnnotationsWidget.prototype.draw = function() { |
39 IriSP.AnnotationsWidget.prototype.draw = function() { |
33 var _this = this; |
40 var _this = this; |
34 |
41 |
35 var annotationMarkup = Mustache.to_html(IriSP.annotationWidget_template, {"share_template" : IriSP.share_template}); |
42 var annotationMarkup = Mustache.to_html(IriSP.annotationWidget_template, {"share_template" : IriSP.share_template}); |
36 IriSP.jQuery("#Ldt-Ligne").append(annotationMarkup); |
43 IriSP.jQuery("#Ldt-Ligne").append(annotationMarkup); |
39 for (i in annotations) { |
46 for (i in annotations) { |
40 var annotation = annotations[i]; |
47 var annotation = annotations[i]; |
41 var begin = Math.round((+ annotation.begin) / 1000); |
48 var begin = Math.round((+ annotation.begin) / 1000); |
42 var end = Math.round((+ annotation.end) / 1000); |
49 var end = Math.round((+ annotation.end) / 1000); |
43 |
50 |
44 this._Popcorn = this._Popcorn.code({start: begin, end: end, |
51 var conf = {start: begin, end: end, |
45 onStart: |
52 onStart: |
46 function(annotation) { return function() { _this.displayAnnotation(annotation); } }(annotation) }); |
53 function(annotation) { return function() { _this.displayAnnotation(annotation); } }(annotation), |
|
54 onEnd: |
|
55 function() { _this.clearWidget(); }, |
|
56 }; |
|
57 this._Popcorn = this._Popcorn.code(conf); |
47 } |
58 } |
48 }; |
59 }; |