equal
deleted
inserted
replaced
49 var frameSize = 5; // frame size |
49 var frameSize = 5; // frame size |
50 var margin = 1; // marge between frame |
50 var margin = 1; // marge between frame |
51 var lineSize = this.width; // timeline pixel width |
51 var lineSize = this.width; // timeline pixel width |
52 var nbrframes = lineSize/frameSize; // frame numbers |
52 var nbrframes = lineSize/frameSize; // frame numbers |
53 var numberOfTweet = 0; // number of tweet overide later |
53 var numberOfTweet = 0; // number of tweet overide later |
54 var duration = +this._serializer.currentMedia().meta["dc:duration"]; // timescale width |
54 var duration = this._serializer.getDuration(); // timescale width |
55 var frameLength = lineSize / frameSize; // frame timescale |
55 var frameLength = lineSize / frameSize; // frame timescale |
56 var timeline; |
56 var timeline; |
57 var colors = new Array("","#1D973D","#C5A62D","#CE0A15","#036AAE","#585858"); |
57 var colors = new Array("","#1D973D","#C5A62D","#CE0A15","#036AAE","#585858"); |
58 |
58 |
59 // array |
59 // array |
169 |
169 |
170 if (typeof(item.meta) !== "undefined" |
170 if (typeof(item.meta) !== "undefined" |
171 && typeof(item.meta["id-ref"]) !== "undefined" |
171 && typeof(item.meta["id-ref"]) !== "undefined" |
172 && item.meta["id-ref"] === view_type) { |
172 && item.meta["id-ref"] === view_type) { |
173 |
173 |
174 var MyTJson = {}; |
174 var MyTJson = {}, |
175 if (typeof(item.meta['dc:source']) !== "undefined") { |
175 _source = IriSP.get_aliased(item.meta, ['dc:source', 'source']); |
176 var MyTJson = JSON.parse(item.meta['dc:source']['content']); |
176 if (_source !== null) { |
|
177 var MyTJson = JSON.parse(_source['content']); |
177 } |
178 } |
178 |
179 |
179 if (item.content['polemics'] != undefined |
180 if (item.content['polemics'] != undefined |
180 && item.content['polemics'][0] != null) { |
181 && item.content['polemics'][0] != null) { |
181 |
182 |
379 |
380 |
380 /** update the positionMarker as time passes */ |
381 /** update the positionMarker as time passes */ |
381 IriSP.PolemicWidget.prototype.sliderUpdater = function() { |
382 IriSP.PolemicWidget.prototype.sliderUpdater = function() { |
382 |
383 |
383 var time = +this._Popcorn.currentTime(); |
384 var time = +this._Popcorn.currentTime(); |
384 var duration = +this._serializer.currentMedia().meta["dc:duration"]; |
385 var duration = this._serializer.getDuration(); |
385 |
386 |
386 this.paperSlider.attr("width", time * (this.width / (duration / 1000))); |
387 this.paperSlider.attr("width", time * (this.width / (duration / 1000))); |
387 |
388 |
388 this.sliderTip.attr("x", time * (this.width / (duration / 1000))); |
389 this.sliderTip.attr("x", time * (this.width / (duration / 1000))); |
389 }; |
390 }; |