equal
deleted
inserted
replaced
18 |
18 |
19 IriSP.Widgets.Mediafragment.prototype.draw = function() { |
19 IriSP.Widgets.Mediafragment.prototype.draw = function() { |
20 this.onMediaEvent("pause","setHashToTime"); |
20 this.onMediaEvent("pause","setHashToTime"); |
21 this.onMediaEvent("seeked","setHashToTime"); |
21 this.onMediaEvent("seeked","setHashToTime"); |
22 this.goToHash(); |
22 this.goToHash(); |
|
23 var _this = this; |
|
24 this.getWidgetAnnotations().forEach(function(_annotation) { |
|
25 _annotation.on("click", function() { |
|
26 _this.setHashToAnnotation(_annotation.id); |
|
27 }) |
|
28 }) |
23 } |
29 } |
24 |
30 |
25 IriSP.Widgets.Mediafragment.prototype.setWindowHash = function(_hash) { |
31 IriSP.Widgets.Mediafragment.prototype.setWindowHash = function(_hash) { |
26 if (typeof window.history !== "undefined" && typeof window.history.replaceState !== "undefined") { |
32 if (typeof window.history !== "undefined" && typeof window.history.replaceState !== "undefined") { |
27 window.history.replaceState({}, "", _hash); |
33 window.history.replaceState({}, "", _hash); |