equal
deleted
inserted
replaced
43 |
43 |
44 var i = 0; |
44 var i = 0; |
45 var totalWidth = this.selector.width(); |
45 var totalWidth = this.selector.width(); |
46 var onePxPercent = 100 / totalWidth; /* the value of a pixel, in percents */ |
46 var onePxPercent = 100 / totalWidth; /* the value of a pixel, in percents */ |
47 |
47 |
|
48 var segments_annotations = []; |
|
49 |
48 for (i = 0; i < annotations.length; i++) { |
50 for (i = 0; i < annotations.length; i++) { |
49 var annotation = annotations[i]; |
51 var annotation = annotations[i]; |
50 |
52 |
51 /* filter the annotations whose type is not the one we want */ |
53 /* filter the annotations whose type is not the one we want */ |
52 if (view_type != "" && typeof(annotation.meta) !== "undefined" && typeof(annotation.meta["id-ref"]) !== "undefined" |
54 if (view_type != "" && typeof(annotation.meta) !== "undefined" && typeof(annotation.meta["id-ref"]) !== "undefined" |