equal
deleted
inserted
replaced
79 .on("mouseover", ".item-video", function() { |
79 .on("mouseover", ".item-video", function() { |
80 $(".media").removeClass("active"); |
80 $(".media").removeClass("active"); |
81 }) |
81 }) |
82 .on("mouseout", ".item-video", function() { |
82 .on("mouseout", ".item-video", function() { |
83 project.trigger("mouseout-annotation"); |
83 project.trigger("mouseout-annotation"); |
84 }) |
84 }); |
|
85 |
|
86 $(".mashup-frise") |
|
87 .click(function(evt) { |
|
88 if (!mashup.duration.milliseconds) { |
|
89 return; |
|
90 } |
|
91 var el = $(this), t = ( evt.pageX - el.offset().left ) * mashup.duration / el.width(), segment = mashup.getAnnotationAtTime(t); |
|
92 if (segment) { |
|
93 project.trigger("click-annotation", segment.annotation); |
|
94 } |
|
95 }); |
85 |
96 |
86 |
97 |
87 }); |
98 }); |
88 } |
99 } |
89 |
100 |