Advertisement
Guest User

utoronto.ca blob html

a guest
Mar 3rd, 2018
750
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.42 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <meta name="description" content="">
  9. <meta name="author" content="">
  10. <link rel="icon" href="favicon.ico">
  11. <link href="https://play.library.utoronto.ca/css/play.min.css" rel="stylesheet">
  12. <title>MyMedia</title>
  13.  
  14. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  15. <!--[if lt IE 9]>
  16. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  17. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  18. <![endif]-->
  19. </head>
  20.  
  21. <body>
  22.  
  23. <header>
  24.  
  25. <img class="utl-logo" src="//content.library.utoronto.ca/i/utl-logo-white-correct.png" alt="utl" />
  26. <h1><a href = "http://mymedia.library.utoronto.ca/cgi-bin/WebObjects/MyMedia.woa/">MyMedia</a></h1>
  27.  
  28. <div class = "uoft-links">
  29. <a href = "http://www.library.utoronto.ca">UTL Home</a>
  30. |
  31. <a href = "http://www.utoronto.ca">UofT Home</a>
  32. |
  33. <a href = "http://portal.utoronto.ca">Portal</a>
  34. |
  35. <a href = "http://rosi.utoronto.ca">ROSI</a>
  36. |
  37. <a href = "http://www.utoronto.ca/Campus_Maps.htm">Campus Maps</a>
  38. </div>
  39.  
  40. </header>
  41.  
  42. <navigation>
  43. <div class="nav-wrapper">
  44. <div style="margin-left:10px;">
  45. <a href="https://mymedia.library.utoronto.ca/cgi-bin/WebObjects/MyMedia.woa">MyMedia</a>
  46. </div>
  47.  
  48. <div>
  49. <a href="https://mymedia.library.utoronto.ca/cgi-bin/WebObjects/MyMedia.woa/2/wa/aboutMyMedia">About</a>
  50. </div>
  51.  
  52. <div>
  53. <a href="https://mymedia.library.utoronto.ca/cgi-bin/WebObjects/MyMedia.woa/2/wa/help">Help</a>
  54. </div>
  55.  
  56. <div style="float: right;">
  57. <a href="https://mymedia.library.utoronto.ca/cgi-bin/WebObjects/MyMedia.woa">Login</a>
  58. </div>
  59. </div>
  60. </navigation>
  61.  
  62. <div class = "wrapper">
  63. <h1 style="float:left">GGR372Assign2 </h1>
  64.  
  65. <div class="content" style="width:100%; max-width:993px">
  66.  
  67. <video id="mymedia" tabindex="0" width="100%" height="400" class="video-js vjs-default-skin" controls preload="auto" poster="https://media.library.utoronto.ca/stills/rdxdc4tC5F2W.mp4.jpg" data-type="video">
  68.  
  69.  
  70. <!-- RTMPS -->
  71. <source
  72. src="rtmps://stream.library.utoronto.ca:1935/MyMedia/play/&amp;mp4:1/rdxdc4tC5F2W.mp4"
  73. type="rtmp/mp4">
  74.  
  75. <!-- HLS -->
  76. <source
  77. src="https://stream.library.utoronto.ca:1935/MyMedia/play/mp4:1/rdxdc4tC5F2W.mp4/playlist.m3u8"
  78. type="application/x-mpegURL">
  79.  
  80. <!-- MPEG DASH -->
  81. <source
  82. src="https://stream.library.utoronto.ca:1935/MyMedia/play/mp4:1/rdxdc4tC5F2W.mp4/manifest.mpd"
  83. type="application/dash+xml">
  84.  
  85.  
  86. <!-- RTSPS -->
  87. <source
  88. src="rtsps://stream.library.utoronto.ca:1935/MyMedia/play/&amp;mp4:1/rdxdc4tC5F2W.mp4"
  89. type="application/sdp">
  90.  
  91. <!-- Adobe HDS -->
  92. <source
  93. src="https://stream.library.utoronto.ca:1935/MyMedia/play/mp4:1/rdxdc4tC5F2W.mp4/manifest.f4m"
  94. type="application/f4m">
  95.  
  96.  
  97.  
  98. </video>
  99.  
  100. <h1 id="video_title">GGR372Assign2 </h1>
  101.  
  102. <h2>Details</h2>
  103.  
  104. <h3>Uploaded By <span id="owner_video">Cameron Proctor</span></h3>
  105.  
  106.  
  107. <h3>Duration 00:12:51</h3>
  108.  
  109. <h3>File Size 47.91MB</h3>
  110.  
  111.  
  112. <div style="clear:both;">&nbsp;</div>
  113.  
  114. </div>
  115. </div>
  116.  
  117. <footer>
  118. <ul>
  119. <li>&copy; 2018 University of Toronto. All rights reserved.</li>
  120. <li><a href="http://www.library.utoronto.ca">www.library.utoronto.ca</a> | Telephone: 416-978-8450 | <a href="mailto:library.info@utoronto.ca">library.info@utoronto.ca</a>
  121. <li><a target="_blank" href="http://maps.google.ca/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=130+St+George+St,+Toronto,+ON&amp;sll=43.662749,-79.395962&amp;sspn=0.012962,0.018454&amp;ie=UTF8&amp;z=17&amp;iwloc=addr">University of Toronto Libraries, 130 St. George Street, Toronto, ON M5S 1A5 Canada</a></li>
  122. </ul>
  123. </footer>
  124.  
  125. <script src="https://play.library.utoronto.ca/js/play.min.js"></script>
  126. <script>
  127. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  128. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  129. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  130. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  131.  
  132. ga('create', 'UA-65962064-1', 'auto');
  133. ga('send', 'pageview');
  134.  
  135. function _gaLt(event){
  136. var el = event.srcElement || event.target;
  137.  
  138. /* Loop up the DOM tree through parent elements if clicked element is not a link (eg: an image inside a link) */
  139. while(el && (typeof el.tagName == 'undefined' || el.tagName.toLowerCase() != 'a' || !el.href)){
  140. el = el.parentNode;
  141. }
  142.  
  143. if(el && el.href){
  144. /* link */
  145. var link = el.href;
  146. if(link.indexOf(location.host) == -1 && !link.match(/^javascript\:/i)){ /* external link */
  147. /* HitCallback function to either open link in either same or new window */
  148. var hitBack = function(link, target){
  149. target ? window.open(link, target) : window.location.href = link;
  150. };
  151. /* Is target set and not _(self|parent|top)? */
  152. var target = (el.target && !el.target.match(/^_(self|parent|top)$/i)) ? el.target : false;
  153. /* send event with callback */
  154. ga(
  155. "send", "event", "Outgoing Links", link,
  156. document.location.pathname + document.location.search,
  157. {"hitCallback": hitBack(link, target)}
  158. );
  159.  
  160. /* Prevent standard click */
  161. event.preventDefault ? event.preventDefault() : event.returnValue = !1;
  162. }
  163.  
  164. }
  165. }
  166.  
  167. /* Attach the event to all clicks in the document after page has loaded */
  168. var w = window;
  169. w.addEventListener ? w.addEventListener("load",function(){document.body.addEventListener("click",_gaLt,!1)},!1)
  170. : w.attachEvent && w.attachEvent("onload",function(){document.body.attachEvent("onclick",_gaLt)});
  171. $(function() {
  172.  
  173.  
  174.  
  175. var owner = $('#owner_video').text();
  176.  
  177. var ajax_called = false;
  178.  
  179. var player = videojs('mymedia', {}, function() {
  180.  
  181. var media_id = $('#media_id').val();
  182. var username = $('#utorid').val();
  183.  
  184. var title = $('#video_title').text();
  185. this.ga({'eventLabel': title+" - by " + owner, 'media_id': media_id, 'user_id': username});
  186.  
  187. });
  188.  
  189. });
  190. </script>
  191. </body>
  192. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement