equal
deleted
inserted
replaced
40 if (_hide) { |
40 if (_hide) { |
41 this.$.hide(); |
41 this.$.hide(); |
42 } else { |
42 } else { |
43 this.renderTemplate(); |
43 this.renderTemplate(); |
44 this.$container = this.$.find(".Ldt-SlideShare-Container"); |
44 this.$container = this.$.find(".Ldt-SlideShare-Container"); |
45 this.bindPopcorn("timeupdate","onTimeupdate"); |
45 this.onMediaEvent("timeupdate","onTimeupdate"); |
46 this.onTimeupdate(); |
46 this.onTimeupdate(0); |
47 } |
47 } |
48 } |
48 } |
49 |
49 |
50 IriSP.Widgets.Slideshare.prototype.onTimeupdate = function() { |
50 IriSP.Widgets.Slideshare.prototype.onTimeupdate = function(_time) { |
51 var _list = this.getWidgetAnnotationsAtTime(); |
51 var _list = this.getWidgetAnnotationsAtTime(); |
52 if (_list.length) { |
52 if (_list.length) { |
53 var _description = _list[0].description, |
53 var _description = _list[0].description, |
54 _isurl = /^https?:\/\//.test(_description), |
54 _isurl = /^https?:\/\//.test(_description), |
55 _presentation = _description.replace(/#.*$/,''), |
55 _presentation = _description.replace(/#.*$/,''), |