player/js/player.js
changeset 65 1da0c1382b07
parent 64 3f480bb52daa
child 71 af98a6dc9381
equal deleted inserted replaced
64:3f480bb52daa 65:1da0c1382b07
   545                         );
   545                         );
   546                     break;
   546                     break;
   547                 }
   547                 }
   548                 annotationDiv.find(".text-contents a").attr("target","_blank");
   548                 annotationDiv.find(".text-contents a").attr("target","_blank");
   549                 annotationDiv.find(".text-contents").css({
   549                 annotationDiv.find(".text-contents").css({
   550                     "max-height":
   550                     "max-height": $(".main-video").height() - 140
   551                     $(".main-video").height() - 140
       
   552                 });
   551                 });
   553                 
   552                 
   554             break;
   553             break;
   555             
   554             
   556             case "link":
   555             case "link":
   558                 var linkTemplate = _.template('<p><a href="<%- url %>" target="_blank"><%- title %></a></p>');
   557                 var linkTemplate = _.template('<p><a href="<%- url %>" target="_blank"><%- title %></a></p>');
   559                 
   558                 
   560                 annotationDiv.find(".link-contents").html(
   559                 annotationDiv.find(".link-contents").html(
   561                     annotationinfo.annotation.content.links.map(linkTemplate).join("")
   560                     annotationinfo.annotation.content.links.map(linkTemplate).join("")
   562                 ).css({
   561                 ).css({
   563                     "max-height":
   562                     "max-height": $(".main-video").height() - 140
   564                     $(".main-video").height() - 140
       
   565                 });
   563                 });
   566                 
   564                 
   567             break;
   565             break;
   568         }
   566         }
   569         
   567