equal
deleted
inserted
replaced
31 for (i = 0; i < annotations.length; i++) { |
31 for (i = 0; i < annotations.length; i++) { |
32 var annotation = annotations[i]; |
32 var annotation = annotations[i]; |
33 |
33 |
34 /* filter the annotations whose type is not the one we want */ |
34 /* filter the annotations whose type is not the one we want */ |
35 if (typeof(annotation.meta) !== "undefined" && typeof(annotation.meta["id-ref"]) !== "undefined" |
35 if (typeof(annotation.meta) !== "undefined" && typeof(annotation.meta["id-ref"]) !== "undefined" |
36 && annotation.meta["id-ref"] != view_type) { |
36 && annotation.meta["id-ref"] !== view_type) { |
37 continue; |
37 continue; |
38 } |
38 } |
39 |
39 |
40 /* only get the annotations happening in the current chapter */ |
40 /* only get the annotations happening in the current chapter */ |
41 if (!(annotation.begin <= currentTime * 1000 && annotation.end > currentTime * 1000)) { |
41 if (!(annotation.begin <= currentTime * 1000 && annotation.end > currentTime * 1000)) { |