equal
deleted
inserted
replaced
78 var color = annotation.content.color; |
78 var color = annotation.content.color; |
79 else |
79 else |
80 var color = annotation.color; |
80 var color = annotation.color; |
81 |
81 |
82 var hexa_color = IriSP.DEC_HEXA_COLOR(color); |
82 var hexa_color = IriSP.DEC_HEXA_COLOR(color); |
83 |
83 |
84 if (hexa_color === "FFCC00") |
84 if (hexa_color === "FFCC00") |
85 hexa_color = "333"; |
85 hexa_color = "333"; |
|
86 if (hexa_color.length == 4) |
|
87 hexa_color = hexa_color + '00'; |
86 |
88 |
87 var annotationTemplate = Mustache.to_html(IriSP.annotation_template, |
89 var annotationTemplate = Mustache.to_html(IriSP.annotation_template, |
88 {"divTitle" : divTitle, "id" : id, "startPourcent" : startPourcent, |
90 {"divTitle" : divTitle, "id" : id, "startPourcent" : startPourcent, |
89 "endPourcent" : endPourcent, "hexa_color" : hexa_color, |
91 "endPourcent" : endPourcent, "hexa_color" : hexa_color, |
90 "seekPlace" : Math.round(begin/1000)}); |
92 "seekPlace" : Math.round(begin/1000)}); |