integration/js/mediaplayer.js
changeset 65 60a1e58b0a08
parent 50 89e152523cb6
child 82 e36c35fb4468
equal deleted inserted replaced
64:2de3ca9542ed 65:60a1e58b0a08
     7         }),
     7         }),
     8         apidirectory = new IriSP.Model.Directory(),
     8         apidirectory = new IriSP.Model.Directory(),
     9         segmenttemplate = _.template(
     9         segmenttemplate = _.template(
    10             '<div class="media-segment" data-mashup-id="<%= annotation.project_id %>">'
    10             '<div class="media-segment" data-mashup-id="<%= annotation.project_id %>">'
    11             + '<div class="media-segment-section" style="left:<%= left %>px; width:<%= width %>px; background:<%= color %>; top: <%= top %>px;" data-segment-id="<%= annotation.id %>"></div>'
    11             + '<div class="media-segment-section" style="left:<%= left %>px; width:<%= width %>px; background:<%= color %>; top: <%= top %>px;" data-segment-id="<%= annotation.id %>"></div>'
    12             + '<div class="popin media-segment-popin" style="left:<%= popleft %>px; top: <%= 5+top %>px;"><img style="left:<%= pointerpos %>px;" class="pointer" src="img/popin-triangle.png" alt="" /><div class="popin-content">'
    12             + '<div class="popin media-segment-popin" style="left:<%= popleft %>px; top: <%= 5+top %>px;"><div style="left:<%= pointerpos %>px;" class="pointer"></div><div class="popin-content">'
    13             + '<h3><%= annotation.title %></h3>'
    13             + '<h3><%= annotation.title %></h3>'
    14             + '<p><%= IriSP.translate("From:") %> <span><%= annotation.begin.toString() %></span> <%= IriSP.translate("to:") %> <span><%= annotation.end.toString() %></span> (<%= IriSP.translate("duration:") %> <span><%= annotation.getDuration().toString() %></span>)</p>'
    14             + '<p><%= IriSP.translate("From:") %> <span><%= annotation.begin.toString() %></span> <%= IriSP.translate("to:") %> <span><%= annotation.end.toString() %></span> (<%= IriSP.translate("duration:") %> <span><%= annotation.getDuration().toString() %></span>)</p>'
    15             + '<p class="mashup-link"><%= IriSP.translate("From hashcut:") %> <a href="<%= IriSP.endpoints.hashcut_page + annotation.project_id %>"></a></p>'
    15             + '<p class="mashup-link"><%= IriSP.translate("From hashcut:") %> <a href="<%= IriSP.endpoints.hashcut_page + annotation.project_id %>"></a></p>'
    16             + '</div></div></div>'
    16             + '</div></div></div>'
    17         ),
    17         ),