integration/js/mediaplayer.js
changeset 123 679809037606
parent 109 3034776c1f35
child 154 60ca7678f074
equal deleted inserted replaced
121:839efd6eddf1 123:679809037606
     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;"><div style="left:<%= pointerpos %>px;" class="pointer"></div><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 class="segment-title"><%= annotation.title %></h3>'
       
    14             + '<p><%= annotation.description %></p><% if (annotation.keywords.length) { print("<p><strong>" + gettext("Tags:") + "</strong> " + annotation.keywords.join(", ") + "</p>"); } %>'
    14             + '<p><%= gettext("From:") %> <span><%= annotation.begin.toString() %></span> <%= gettext("to:") %> <span><%= annotation.end.toString() %></span> (<%= gettext("duration:") %> <span><%= annotation.getDuration().toString() %></span>)</p>'
    15             + '<p><%= gettext("From:") %> <span><%= annotation.begin.toString() %></span> <%= gettext("to:") %> <span><%= annotation.end.toString() %></span> (<%= gettext("duration:") %> <span><%= annotation.getDuration().toString() %></span>)</p>'
    15             + '<p class="mashup-link"><%= gettext("From hashcut:") %> <a href="<%= IriSP.endpoints.hashcut_page.replace("__PROJECT_ID__", annotation.project_id) %>"></a></p>'
    16             + '<p class="mashup-link"><%= gettext("From hashcut:") %> <a href="<%= IriSP.endpoints.hashcut_page.replace("__PROJECT_ID__", annotation.project_id) %>"></a></p>'
    16             + '</div></div></div>'
    17             + '</div></div></div>'
    17         ),
    18         ),
    18         segmentlisttemplate = _.template(
    19         segmentlisttemplate = _.template(