integration/js/mashupplayer.js
changeset 73 475e5fb0ea2b
parent 50 89e152523cb6
child 82 e36c35fb4468
equal deleted inserted replaced
72:aa85db611fb7 73:475e5fb0ea2b
    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