equal
deleted
inserted
replaced
269 annotation["begin"] = this._currentAnnotation.begin; |
269 annotation["begin"] = this._currentAnnotation.begin; |
270 annotation["end"] = this._currentAnnotation.end; |
270 annotation["end"] = this._currentAnnotation.end; |
271 } |
271 } |
272 } else { |
272 } else { |
273 var duration = +this._serializer.currentMedia().meta["dc:duration"]; |
273 var duration = +this._serializer.currentMedia().meta["dc:duration"]; |
274 annotation["begin"] = +((duration * (this.sliceLeft / this.selector.width())).toFixed(0)); |
274 annotation["begin"] = +((duration * (this.sliceLeft / 100)).toFixed(0)); |
275 annotation["end"] = +((duration * ((this.sliceWidth + this.sliceLeft) / this.selector.width())).toFixed(0)); |
275 annotation["end"] = +((duration * ((this.sliceWidth + this.sliceLeft) / 100)).toFixed(0)); |
276 } |
276 } |
277 |
277 |
278 annotation["type"] = this._serializer.getContributions(); |
278 annotation["type"] = this._serializer.getContributions(); |
279 if (typeof(annotation["type"]) === "undefined") |
279 if (typeof(annotation["type"]) === "undefined") |
280 annotation["type"] = ""; |
280 annotation["type"] = ""; |
281 |
281 |
282 annotation["type_title"] = "Contributions"; |
282 annotation["type_title"] = "Contributions"; |