equal
deleted
inserted
replaced
56 |
56 |
57 var begin = Math.round((+ annotation.begin) / 1000); |
57 var begin = Math.round((+ annotation.begin) / 1000); |
58 var end = Math.round((+ annotation.end) / 1000); |
58 var end = Math.round((+ annotation.end) / 1000); |
59 var duration = this._serializer.currentMedia().meta["dc:duration"] / 1000; |
59 var duration = this._serializer.currentMedia().meta["dc:duration"] / 1000; |
60 var id = annotation.id; |
60 var id = annotation.id; |
61 var startPourcent = IriSP.timeToPourcent(begin, duration); |
61 var startPourcent = IriSP.timeToPourcent(begin, duration) + onePxPercent; |
62 |
62 |
63 /* some sort of collapsing occurs, so we only have to substract one pixel to each box instead of |
63 /* some sort of collapsing occurs, so we only have to substract one pixel to each box instead of |
64 two |
64 two |
65 */ |
65 */ |
66 var endPourcent = IriSP.timeToPourcent(end, duration) - startPourcent - onePxPercent * 1.5; |
66 var endPourcent = IriSP.timeToPourcent(end, duration) - startPourcent - onePxPercent * 1.5; |