From 35358baac9f72ce8733a08fe9f9f9c51510b3394 Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Sat, 11 May 2013 10:49:54 -0600 Subject: [PATCH] update to v4.0.0; point to local host of SWF --- include/text.php | 8 +- js/main.js | 2 +- js/main.min.js | 2 +- .../{captions.vtt => demo.captions.vtt} | 0 library/video-js/demo.html | 2 +- library/video-js/font/vjs.eot | Bin 0 -> 2900 bytes library/video-js/font/vjs.svg | 40 + library/video-js/font/vjs.ttf | Bin 0 -> 2736 bytes library/video-js/font/vjs.woff | Bin 0 -> 2676 bytes library/video-js/video-js.css | 907 ++- library/video-js/video-js.min.css | 1 - library/video-js/video-js.png | Bin 8235 -> 0 bytes library/video-js/video-js.swf | Bin 9612 -> 14059 bytes library/video-js/video.dev.js | 6079 +++++++++++++++++ library/video-js/video.js | 4690 +------------ library/video-js/video.min.js | 21 - mod/videos.php | 8 +- view/templates/videos_head.tpl | 6 +- view/theme/frost-mobile/js/main.js | 2 +- view/theme/frost-mobile/js/main.min.js | 2 +- .../frost-mobile/templates/videos_end.tpl | 4 +- .../frost-mobile/templates/videos_head.tpl | 2 +- view/theme/frost/js/main.js | 2 +- view/theme/frost/js/main.min.js | 2 +- view/theme/frost/templates/videos_end.tpl | 4 +- view/theme/frost/templates/videos_head.tpl | 2 +- 26 files changed, 6837 insertions(+), 4949 deletions(-) rename library/video-js/{captions.vtt => demo.captions.vtt} (100%) create mode 100644 library/video-js/font/vjs.eot create mode 100644 library/video-js/font/vjs.svg create mode 100644 library/video-js/font/vjs.ttf create mode 100644 library/video-js/font/vjs.woff delete mode 100644 library/video-js/video-js.min.css delete mode 100644 library/video-js/video-js.png create mode 100644 library/video-js/video.dev.js delete mode 100644 library/video-js/video.min.js diff --git a/include/text.php b/include/text.php index 9374e624b0..7b27d8b86e 100644 --- a/include/text.php +++ b/include/text.php @@ -1306,8 +1306,12 @@ function prepare_body($item,$attach = false) { if(strpos($mime, 'video') !== false) { if(!$vhead) { $vhead = true; - $a->page['htmlhead'] .= replace_macros(get_markup_template('videos_head.tpl'), array()); - $a->page['end'] .= replace_macros(get_markup_template('videos_end.tpl'), array()); + $a->page['htmlhead'] .= replace_macros(get_markup_template('videos_head.tpl'), array( + '$baseurl' => $a->get_baseurl(), + )); + $a->page['end'] .= replace_macros(get_markup_template('videos_end.tpl'), array( + '$baseurl' => $a->get_baseurl(), + )); } $id = end(explode('/', $the_url)); diff --git a/js/main.js b/js/main.js index 7ad2b7e648..a4a1c977ca 100644 --- a/js/main.js +++ b/js/main.js @@ -387,7 +387,7 @@ $(".comment-edit-form textarea").contact_autocomplete(baseurl+"/acl"); // setup videos, since VideoJS won't take care of any loaded via AJAX - if(typeof _V_ != 'undefined') _V_.autoSetup(); + if(typeof videojs != 'undefined') videojs.autoSetup(); }); } diff --git a/js/main.min.js b/js/main.min.js index 49de427c69..e1cad27fa8 100644 --- a/js/main.min.js +++ b/js/main.min.js @@ -1 +1 @@ -function openClose(theID){if(document.getElementById(theID).style.display=="block"){document.getElementById(theID).style.display="none"}else{document.getElementById(theID).style.display="block"}}function openMenu(theID){document.getElementById(theID).style.display="block"}function closeMenu(theID){document.getElementById(theID).style.display="none"}var src=null;var prev=null;var livetime=null;var msie=false;var stopped=false;var totStopped=false;var timer=null;var pr=0;var liking=0;var in_progress=false;var langSelect=false;var commentBusy=false;var last_popup_menu=null;var last_popup_button=null;$(function(){$.ajaxSetup({cache:false});msie=$.browser.msie;$(".onoff input").each(function(){val=$(this).val();id=$(this).attr("id");$("#"+id+"_onoff ."+(val==0?"on":"off")).addClass("hidden")});$(".onoff > a").click(function(event){event.preventDefault();var input=$(this).siblings("input");var val=1-input.val();var id=input.attr("id");$("#"+id+"_onoff ."+(val==0?"on":"off")).addClass("hidden");$("#"+id+"_onoff ."+(val==1?"on":"off")).removeClass("hidden");input.val(val)});setupFieldRichtext();function close_last_popup_menu(){if(last_popup_menu){last_popup_menu.hide();last_popup_button.removeClass("selected");last_popup_menu=null;last_popup_button=null}}$("a[rel^=#]").click(function(e){close_last_popup_menu();menu=$($(this).attr("rel"));e.preventDefault();e.stopPropagation();if(menu.attr("popup")=="false")return false;$(this).parent().toggleClass("selected");menu.toggle();if(menu.css("display")=="none"){last_popup_menu=null;last_popup_button=null}else{last_popup_menu=menu;last_popup_button=$(this).parent()}return false});$("html").click(function(){close_last_popup_menu()});$("a.popupbox").colorbox({inline:true,transition:"elastic"});var notifications_tpl=unescape($("#nav-notifications-template[rel=template]").html());var notifications_all=unescape($("
").append($("#nav-notifications-see-all").clone()).html());var notifications_mark=unescape($("
").append($("#nav-notifications-mark-all").clone()).html());var notifications_empty=unescape($("#nav-notifications-menu").html());$("nav").bind("nav-update",function(e,data){var invalid=$(data).find("invalid").text();if(invalid==1){window.location.href=window.location.href}var net=$(data).find("net").text();if(net==0){net="";$("#net-update").removeClass("show")}else{$("#net-update").addClass("show")}$("#net-update").html(net);var home=$(data).find("home").text();if(home==0){home="";$("#home-update").removeClass("show")}else{$("#home-update").addClass("show")}$("#home-update").html(home);var intro=$(data).find("intro").text();if(intro==0){intro="";$("#intro-update").removeClass("show")}else{$("#intro-update").addClass("show")}$("#intro-update").html(intro);var mail=$(data).find("mail").text();if(mail==0){mail="";$("#mail-update").removeClass("show")}else{$("#mail-update").addClass("show")}$("#mail-update").html(mail);var intro=$(data).find("intro").text();if(intro==0){intro="";$("#intro-update-li").removeClass("show")}else{$("#intro-update-li").addClass("show")}$("#intro-update-li").html(intro);var mail=$(data).find("mail").text();if(mail==0){mail="";$("#mail-update-li").removeClass("show")}else{$("#mail-update-li").addClass("show")}$("#mail-update-li").html(mail);var allevents=$(data).find("all-events").text();if(allevents==0){allevents="";$("#allevents-update").removeClass("show")}else{$("#allevents-update").addClass("show")}$("#allevents-update").html(allevents);var alleventstoday=$(data).find("all-events-today").text();if(alleventstoday==0){$("#allevents-update").removeClass("notif-allevents-today")}else{$("#allevents-update").addClass("notif-allevents-today")}var events=$(data).find("events").text();if(events==0){events="";$("#events-update").removeClass("show")}else{$("#events-update").addClass("show")}$("#events-update").html(events);var eventstoday=$(data).find("events-today").text();if(eventstoday==0){$("#events-update").removeClass("notif-events-today")}else{$("#events-update").addClass("notif-events-today")}var birthdays=$(data).find("birthdays").text();if(birthdays==0){birthdays="";$("#birthdays-update").removeClass("show")}else{$("#birthdays-update").addClass("show")}$("#birthdays-update").html(birthdays);var birthdaystoday=$(data).find("birthdays-today").text();if(birthdaystoday==0){$("#birthdays-update").removeClass("notif-birthdays-today")}else{$("#birthdays-update").addClass("notif-birthdays-today")}var eNotif=$(data).find("notif");if(eNotif.children("note").length==0){$("#nav-notifications-menu").html(notifications_empty)}else{nnm=$("#nav-notifications-menu");nnm.html(notifications_all+notifications_mark);eNotif.children("note").each(function(){e=$(this);text=e.text().format(""+e.attr("name")+"");html=notifications_tpl.format(e.attr("href"),e.attr("photo"),text,e.attr("date"),e.attr("seen"));nnm.append(html)});$("img[data-src]",nnm).each(function(i,el){if($(el).data("src")!="")$(el).attr("src",$(el).data("src"))})}notif=eNotif.attr("count");if(notif>0){$("#nav-notifications-linkmenu").addClass("on")}else{$("#nav-notifications-linkmenu").removeClass("on")}if(notif==0){notif="";$("#notify-update").removeClass("show")}else{$("#notify-update").addClass("show")}$("#notify-update").html(notif);var eSysmsg=$(data).find("sysmsgs");eSysmsg.children("notice").each(function(){text=$(this).text();$.jGrowl(text,{sticky:true,theme:"notice"})});eSysmsg.children("info").each(function(){text=$(this).text();$.jGrowl(text,{sticky:false,theme:"info",life:1e4})})});NavUpdate();$(document).keydown(function(event){if(event.keyCode=="8"){var target=event.target||event.srcElement;if(!/input|textarea/i.test(target.nodeName)){return false}}if(event.keyCode=="19"||event.ctrlKey&&event.which=="32"){event.preventDefault();if(stopped==false){stopped=true;if(event.ctrlKey){totStopped=true}$("#pause").html('pause')}else{unpause()}}else{if(!totStopped){unpause()}}})});function NavUpdate(){if(!stopped){var pingCmd="ping"+(localUser!=0?"?f=&uid="+localUser:"");$.get(pingCmd,function(data){$(data).find("result").each(function(){$("nav").trigger("nav-update",this);if($("#live-network").length){src="network";liveUpdate()}if($("#live-profile").length){src="profile";liveUpdate()}if($("#live-community").length){src="community";liveUpdate()}if($("#live-notes").length){src="notes";liveUpdate()}if($("#live-display").length){src="display";liveUpdate()}if($("#live-photos").length){if(liking){liking=0;window.location.href=window.location.href}}})})}timer=setTimeout(NavUpdate,updateInterval)}function liveUpdate(){if(src==null||stopped||!profile_uid){$(".like-rotator").hide();return}if($(".comment-edit-text-full").length||in_progress){if(livetime){clearTimeout(livetime)}livetime=setTimeout(liveUpdate,1e4);return}if(livetime!=null)livetime=null;prev="live-"+src;in_progress=true;var udargs=netargs.length?"/"+netargs:"";var update_url="update_"+src+udargs+"&p="+profile_uid+"&page="+profile_page+"&msie="+(msie?1:0);$.get(update_url,function(data){in_progress=false;$(".toplevel_item",data).each(function(){var ident=$(this).attr("id");if($("#"+ident).length==0&&profile_page==1){$("img",this).each(function(){$(this).attr("src",$(this).attr("dst"))});$("#"+prev).after($(this))}else{var id=$(".hide-comments-total",this).attr("id");if(typeof id!="undefined"){id=id.split("-")[3];var commentsOpen=$("#collapsed-comments-"+id).is(":visible")}$("img",this).each(function(){$(this).attr("src",$(this).attr("dst"))});$("html").height($("html").height());$("#"+ident).replaceWith($(this));if(typeof id!="undefined"){if(commentsOpen)showHideComments(id)}$("html").height("auto")}prev=ident});$(".like-rotator").hide();if(commentBusy){commentBusy=false;$("body").css("cursor","auto")}$(".comment-edit-form textarea").contact_autocomplete(baseurl+"/acl");if(typeof _V_!="undefined")_V_.autoSetup()})}function imgbright(node){$(node).removeClass("drophide").addClass("drop")}function imgdull(node){$(node).removeClass("drop").addClass("drophide")}function dolike(ident,verb){unpause();$("#like-rotator-"+ident.toString()).show();$.get("like/"+ident.toString()+"?verb="+verb,NavUpdate);liking=1}function dosubthread(ident){unpause();$("#like-rotator-"+ident.toString()).show();$.get("subthread/"+ident.toString(),NavUpdate);liking=1}function dostar(ident){ident=ident.toString();$("#like-rotator-"+ident).show();$.get("starred/"+ident,function(data){if(data.match(/1/)){$("#starred-"+ident).addClass("starred");$("#starred-"+ident).removeClass("unstarred");$("#star-"+ident).addClass("hidden");$("#unstar-"+ident).removeClass("hidden")}else{$("#starred-"+ident).addClass("unstarred");$("#starred-"+ident).removeClass("starred");$("#star-"+ident).removeClass("hidden");$("#unstar-"+ident).addClass("hidden")}$("#like-rotator-"+ident).hide()})}function getPosition(e){var cursor={x:0,y:0};if(e.pageX||e.pageY){cursor.x=e.pageX;cursor.y=e.pageY}else{if(e.clientX||e.clientY){cursor.x=e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)-document.documentElement.clientLeft;cursor.y=e.clientY+(document.documentElement.scrollTop||document.body.scrollTop)-document.documentElement.clientTop}else{if(e.x||e.y){cursor.x=e.x;cursor.y=e.y}}}return cursor}var lockvisible=false;function lockview(event,id){event=event||window.event;cursor=getPosition(event);if(lockvisible){lockviewhide()}else{lockvisible=true;$.get("lockview/"+id,function(data){$("#panel").html(data);$("#panel").css({left:cursor.x+5,top:cursor.y+5});$("#panel").show()})}}function lockviewhide(){lockvisible=false;$("#panel").hide()}function post_comment(id){unpause();commentBusy=true;$("body").css("cursor","wait");$("#comment-preview-inp-"+id).val("0");$.post("item",$("#comment-edit-form-"+id).serialize(),function(data){if(data.success){$("#comment-edit-wrapper-"+id).hide();$("#comment-edit-text-"+id).val("");var tarea=document.getElementById("comment-edit-text-"+id);if(tarea)commentClose(tarea,id);if(timer)clearTimeout(timer);timer=setTimeout(NavUpdate,10)}if(data.reload){window.location.href=data.reload}},"json");return false}function preview_comment(id){$("#comment-preview-inp-"+id).val("1");$("#comment-edit-preview-"+id).show();$.post("item",$("#comment-edit-form-"+id).serialize(),function(data){if(data.preview){$("#comment-edit-preview-"+id).html(data.preview);$("#comment-edit-preview-"+id+" a").click(function(){return false})}},"json");return true}function showHideComments(id){if($("#collapsed-comments-"+id).is(":visible")){$("#collapsed-comments-"+id).hide();$("#hide-comments-"+id).html(window.showMore)}else{$("#collapsed-comments-"+id).show();$("#hide-comments-"+id).html(window.showFewer)}}function preview_post(){$("#jot-preview").val("1");$("#jot-preview-content").show();tinyMCE.triggerSave();$.post("item",$("#profile-jot-form").serialize(),function(data){if(data.preview){$("#jot-preview-content").html(data.preview);$("#jot-preview-content"+" a").click(function(){return false})}},"json");$("#jot-preview").val("0");return true}function unpause(){totStopped=false;stopped=false;$("#pause").html("")}function bin2hex(s){var v,i,f=0,a=[];s+="";f=s.length;for(i=0;i'+data.desc+'
'+data.version+'
'+data.credits+'
'+theme+'')})} \ No newline at end of file +function openClose(theID){if(document.getElementById(theID).style.display=="block"){document.getElementById(theID).style.display="none"}else{document.getElementById(theID).style.display="block"}}function openMenu(theID){document.getElementById(theID).style.display="block"}function closeMenu(theID){document.getElementById(theID).style.display="none"}var src=null;var prev=null;var livetime=null;var msie=false;var stopped=false;var totStopped=false;var timer=null;var pr=0;var liking=0;var in_progress=false;var langSelect=false;var commentBusy=false;var last_popup_menu=null;var last_popup_button=null;$(function(){$.ajaxSetup({cache:false});msie=$.browser.msie;$(".onoff input").each(function(){val=$(this).val();id=$(this).attr("id");$("#"+id+"_onoff ."+(val==0?"on":"off")).addClass("hidden")});$(".onoff > a").click(function(event){event.preventDefault();var input=$(this).siblings("input");var val=1-input.val();var id=input.attr("id");$("#"+id+"_onoff ."+(val==0?"on":"off")).addClass("hidden");$("#"+id+"_onoff ."+(val==1?"on":"off")).removeClass("hidden");input.val(val)});setupFieldRichtext();function close_last_popup_menu(){if(last_popup_menu){last_popup_menu.hide();last_popup_button.removeClass("selected");last_popup_menu=null;last_popup_button=null}}$("a[rel^=#]").click(function(e){close_last_popup_menu();menu=$($(this).attr("rel"));e.preventDefault();e.stopPropagation();if(menu.attr("popup")=="false")return false;$(this).parent().toggleClass("selected");menu.toggle();if(menu.css("display")=="none"){last_popup_menu=null;last_popup_button=null}else{last_popup_menu=menu;last_popup_button=$(this).parent()}return false});$("html").click(function(){close_last_popup_menu()});$("a.popupbox").colorbox({inline:true,transition:"elastic"});var notifications_tpl=unescape($("#nav-notifications-template[rel=template]").html());var notifications_all=unescape($("
").append($("#nav-notifications-see-all").clone()).html());var notifications_mark=unescape($("
").append($("#nav-notifications-mark-all").clone()).html());var notifications_empty=unescape($("#nav-notifications-menu").html());$("nav").bind("nav-update",function(e,data){var invalid=$(data).find("invalid").text();if(invalid==1){window.location.href=window.location.href}var net=$(data).find("net").text();if(net==0){net="";$("#net-update").removeClass("show")}else{$("#net-update").addClass("show")}$("#net-update").html(net);var home=$(data).find("home").text();if(home==0){home="";$("#home-update").removeClass("show")}else{$("#home-update").addClass("show")}$("#home-update").html(home);var intro=$(data).find("intro").text();if(intro==0){intro="";$("#intro-update").removeClass("show")}else{$("#intro-update").addClass("show")}$("#intro-update").html(intro);var mail=$(data).find("mail").text();if(mail==0){mail="";$("#mail-update").removeClass("show")}else{$("#mail-update").addClass("show")}$("#mail-update").html(mail);var intro=$(data).find("intro").text();if(intro==0){intro="";$("#intro-update-li").removeClass("show")}else{$("#intro-update-li").addClass("show")}$("#intro-update-li").html(intro);var mail=$(data).find("mail").text();if(mail==0){mail="";$("#mail-update-li").removeClass("show")}else{$("#mail-update-li").addClass("show")}$("#mail-update-li").html(mail);var allevents=$(data).find("all-events").text();if(allevents==0){allevents="";$("#allevents-update").removeClass("show")}else{$("#allevents-update").addClass("show")}$("#allevents-update").html(allevents);var alleventstoday=$(data).find("all-events-today").text();if(alleventstoday==0){$("#allevents-update").removeClass("notif-allevents-today")}else{$("#allevents-update").addClass("notif-allevents-today")}var events=$(data).find("events").text();if(events==0){events="";$("#events-update").removeClass("show")}else{$("#events-update").addClass("show")}$("#events-update").html(events);var eventstoday=$(data).find("events-today").text();if(eventstoday==0){$("#events-update").removeClass("notif-events-today")}else{$("#events-update").addClass("notif-events-today")}var birthdays=$(data).find("birthdays").text();if(birthdays==0){birthdays="";$("#birthdays-update").removeClass("show")}else{$("#birthdays-update").addClass("show")}$("#birthdays-update").html(birthdays);var birthdaystoday=$(data).find("birthdays-today").text();if(birthdaystoday==0){$("#birthdays-update").removeClass("notif-birthdays-today")}else{$("#birthdays-update").addClass("notif-birthdays-today")}var eNotif=$(data).find("notif");if(eNotif.children("note").length==0){$("#nav-notifications-menu").html(notifications_empty)}else{nnm=$("#nav-notifications-menu");nnm.html(notifications_all+notifications_mark);eNotif.children("note").each(function(){e=$(this);text=e.text().format(""+e.attr("name")+"");html=notifications_tpl.format(e.attr("href"),e.attr("photo"),text,e.attr("date"),e.attr("seen"));nnm.append(html)});$("img[data-src]",nnm).each(function(i,el){if($(el).data("src")!="")$(el).attr("src",$(el).data("src"))})}notif=eNotif.attr("count");if(notif>0){$("#nav-notifications-linkmenu").addClass("on")}else{$("#nav-notifications-linkmenu").removeClass("on")}if(notif==0){notif="";$("#notify-update").removeClass("show")}else{$("#notify-update").addClass("show")}$("#notify-update").html(notif);var eSysmsg=$(data).find("sysmsgs");eSysmsg.children("notice").each(function(){text=$(this).text();$.jGrowl(text,{sticky:true,theme:"notice"})});eSysmsg.children("info").each(function(){text=$(this).text();$.jGrowl(text,{sticky:false,theme:"info",life:1e4})})});NavUpdate();$(document).keydown(function(event){if(event.keyCode=="8"){var target=event.target||event.srcElement;if(!/input|textarea/i.test(target.nodeName)){return false}}if(event.keyCode=="19"||event.ctrlKey&&event.which=="32"){event.preventDefault();if(stopped==false){stopped=true;if(event.ctrlKey){totStopped=true}$("#pause").html('pause')}else{unpause()}}else{if(!totStopped){unpause()}}})});function NavUpdate(){if(!stopped){var pingCmd="ping"+(localUser!=0?"?f=&uid="+localUser:"");$.get(pingCmd,function(data){$(data).find("result").each(function(){$("nav").trigger("nav-update",this);if($("#live-network").length){src="network";liveUpdate()}if($("#live-profile").length){src="profile";liveUpdate()}if($("#live-community").length){src="community";liveUpdate()}if($("#live-notes").length){src="notes";liveUpdate()}if($("#live-display").length){src="display";liveUpdate()}if($("#live-photos").length){if(liking){liking=0;window.location.href=window.location.href}}})})}timer=setTimeout(NavUpdate,updateInterval)}function liveUpdate(){if(src==null||stopped||!profile_uid){$(".like-rotator").hide();return}if($(".comment-edit-text-full").length||in_progress){if(livetime){clearTimeout(livetime)}livetime=setTimeout(liveUpdate,1e4);return}if(livetime!=null)livetime=null;prev="live-"+src;in_progress=true;var udargs=netargs.length?"/"+netargs:"";var update_url="update_"+src+udargs+"&p="+profile_uid+"&page="+profile_page+"&msie="+(msie?1:0);$.get(update_url,function(data){in_progress=false;$(".toplevel_item",data).each(function(){var ident=$(this).attr("id");if($("#"+ident).length==0&&profile_page==1){$("img",this).each(function(){$(this).attr("src",$(this).attr("dst"))});$("#"+prev).after($(this))}else{var id=$(".hide-comments-total",this).attr("id");if(typeof id!="undefined"){id=id.split("-")[3];var commentsOpen=$("#collapsed-comments-"+id).is(":visible")}$("img",this).each(function(){$(this).attr("src",$(this).attr("dst"))});$("html").height($("html").height());$("#"+ident).replaceWith($(this));if(typeof id!="undefined"){if(commentsOpen)showHideComments(id)}$("html").height("auto")}prev=ident});$(".like-rotator").hide();if(commentBusy){commentBusy=false;$("body").css("cursor","auto")}$(".comment-edit-form textarea").contact_autocomplete(baseurl+"/acl");if(typeof videojs!="undefined")videojs.autoSetup()})}function imgbright(node){$(node).removeClass("drophide").addClass("drop")}function imgdull(node){$(node).removeClass("drop").addClass("drophide")}function dolike(ident,verb){unpause();$("#like-rotator-"+ident.toString()).show();$.get("like/"+ident.toString()+"?verb="+verb,NavUpdate);liking=1}function dosubthread(ident){unpause();$("#like-rotator-"+ident.toString()).show();$.get("subthread/"+ident.toString(),NavUpdate);liking=1}function dostar(ident){ident=ident.toString();$("#like-rotator-"+ident).show();$.get("starred/"+ident,function(data){if(data.match(/1/)){$("#starred-"+ident).addClass("starred");$("#starred-"+ident).removeClass("unstarred");$("#star-"+ident).addClass("hidden");$("#unstar-"+ident).removeClass("hidden")}else{$("#starred-"+ident).addClass("unstarred");$("#starred-"+ident).removeClass("starred");$("#star-"+ident).removeClass("hidden");$("#unstar-"+ident).addClass("hidden")}$("#like-rotator-"+ident).hide()})}function getPosition(e){var cursor={x:0,y:0};if(e.pageX||e.pageY){cursor.x=e.pageX;cursor.y=e.pageY}else{if(e.clientX||e.clientY){cursor.x=e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)-document.documentElement.clientLeft;cursor.y=e.clientY+(document.documentElement.scrollTop||document.body.scrollTop)-document.documentElement.clientTop}else{if(e.x||e.y){cursor.x=e.x;cursor.y=e.y}}}return cursor}var lockvisible=false;function lockview(event,id){event=event||window.event;cursor=getPosition(event);if(lockvisible){lockviewhide()}else{lockvisible=true;$.get("lockview/"+id,function(data){$("#panel").html(data);$("#panel").css({left:cursor.x+5,top:cursor.y+5});$("#panel").show()})}}function lockviewhide(){lockvisible=false;$("#panel").hide()}function post_comment(id){unpause();commentBusy=true;$("body").css("cursor","wait");$("#comment-preview-inp-"+id).val("0");$.post("item",$("#comment-edit-form-"+id).serialize(),function(data){if(data.success){$("#comment-edit-wrapper-"+id).hide();$("#comment-edit-text-"+id).val("");var tarea=document.getElementById("comment-edit-text-"+id);if(tarea)commentClose(tarea,id);if(timer)clearTimeout(timer);timer=setTimeout(NavUpdate,10)}if(data.reload){window.location.href=data.reload}},"json");return false}function preview_comment(id){$("#comment-preview-inp-"+id).val("1");$("#comment-edit-preview-"+id).show();$.post("item",$("#comment-edit-form-"+id).serialize(),function(data){if(data.preview){$("#comment-edit-preview-"+id).html(data.preview);$("#comment-edit-preview-"+id+" a").click(function(){return false})}},"json");return true}function showHideComments(id){if($("#collapsed-comments-"+id).is(":visible")){$("#collapsed-comments-"+id).hide();$("#hide-comments-"+id).html(window.showMore)}else{$("#collapsed-comments-"+id).show();$("#hide-comments-"+id).html(window.showFewer)}}function preview_post(){$("#jot-preview").val("1");$("#jot-preview-content").show();tinyMCE.triggerSave();$.post("item",$("#profile-jot-form").serialize(),function(data){if(data.preview){$("#jot-preview-content").html(data.preview);$("#jot-preview-content"+" a").click(function(){return false})}},"json");$("#jot-preview").val("0");return true}function unpause(){totStopped=false;stopped=false;$("#pause").html("")}function bin2hex(s){var v,i,f=0,a=[];s+="";f=s.length;for(i=0;i'+data.desc+'
'+data.version+'
'+data.credits+'
'+theme+'')})} \ No newline at end of file diff --git a/library/video-js/captions.vtt b/library/video-js/demo.captions.vtt similarity index 100% rename from library/video-js/captions.vtt rename to library/video-js/demo.captions.vtt diff --git a/library/video-js/demo.html b/library/video-js/demo.html index b35cdc2838..5698849bf5 100644 --- a/library/video-js/demo.html +++ b/library/video-js/demo.html @@ -23,7 +23,7 @@ - + diff --git a/library/video-js/font/vjs.eot b/library/video-js/font/vjs.eot new file mode 100644 index 0000000000000000000000000000000000000000..1b8202af8b4ab714c19e3a9b2ff85ab77b12d8c9 GIT binary patch literal 2900 zcmd@WOKcleaAw!`+D>D~_1bA0lQ?m*E~?}IC+R0~TE{K@x@i@)rBJ(#n+7Fuln-hO zLXkj-1BXhWNT@=xI8lUXiYin%b zxSqY4{w(x>iRfvfy+@9PqM@%AgS6=c(Szs43KMGQA3qWOC(VK3!qh~qMwY-jN^i_8s4Y9GSTf9#-=YmGmEE*ULZO%S~^!S zd(3xe|2`%kD_op_=iw;HyNLFV7siTjz0*awIZnLSCrVS(-KTEQWm|5N{D$^z^nEkI z!2L7!oe!Z-kHhz${PHTvL5Hfr1?`gAvSl5YH36m&1p!8Qxf(3ru+>{DkMu_YXl@g$K+B6@uhj`<&(z z30GW%k93?4&eKdY2Uez6!}H90F7qtQm<<{%583qaFFQyS%LES?v{W%K--f#30Z>e7 zFpn7K6&o7(F2)9={9s$zz;(yyOl|$YEX@#rG@O7p;ahCSIDUwq32q@O3<^Um7&TR( zxYBQ`o^H$Km;5QeC^h;LjVS?g`EWj$%jbT`J;v6(KH)iUj<&f#2jPP0J^s8|82OwOd+<&aGw^d(}qEjF8F zHkZTCEk;}Qtj%bdt&k?2L?#kG@0_5d~Jz%Eb4A-eKcFRwsce|q17(fJ$HWe*hRYq(P9@Gw%ohh z)PQzt^;bhzG}P0R40IX$jo!es4q3pMp*s@l?M-g$Hf9Z+r!Fm_Vef8PsB^ijqTILd zxjv^@CkujHCpveZN$fb%x99M#MCd?nlWPs3rO&Fo2Pb`Dnk70*cvj6lwHm5)M-pXk zBi(}^LXd)9fQ_;{nv5%L?sd?_>1C*JT3E-gC~-xJpY2E}N+Ram;&g5~psiO{tv=6I zk7w&XSF_92j9)N)<;6q?ZTXVvJFjT#0d4KjRy42;o~vwwi>2h+T9MLgMTcH1RINDR z1Fbkz^irV{EdE-JsQ|sH8>4QSV(F)7Cwedu_Xla2zc)Ysk}NAHyFKj~h+*Z@$CpH< zNwC!iHcL|T@$jI2x68GPJaJ&FKo23RRVJdb0p_(#V|7WQ=SzP81j4s+T!c1wnd1iH zU*))wYR_$sn~47#dwC2N;@HTpjthiu;2;*btXEa;RxxhH3Tb;J*H0^EKW|1l*YZ0AT@1|+pE`REf$Yn z9K@!^69p8}fJQW-gl4p$73**V)}syW(#-fse>fcGFv4M!!x)Eg4ig+EIZScb#bGyx xeH`xQa1Vo7I)`~g9Rxjqgt2IEqRBEHDUK|MSS{Ax98Ckh+x5X+rm(tS`x~ + + + +This is a custom SVG font generated by IcoMoon. + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/library/video-js/font/vjs.ttf b/library/video-js/font/vjs.ttf new file mode 100644 index 0000000000000000000000000000000000000000..a5ad4685e978865705998258d5bb1855223ba388 GIT binary patch literal 2736 zcmd@WU2IcT`1|f{d)tk*E4}T2UAu1GZZUNI|JeYy4!VN;mO&aolonRT%(gE3F$|4a zqA@=BV4_)Kh)Ls<7$d_FgPNH7Bp3yw_~cCPi_u3CB|fe7JGZB@A%gFo=A7^U=bZE1 z?-URKT3``G$YwIf4vt+qaRZ>~ZQ?3>(!&`T029%3M0*Y&4Mu`rtONk?IMKPYlZ9!m z_xB%&{)6VoSYdX$RwGZ)G(mFn*u=uQo&FcE0*FK#Zk#U`MpylR5)CUf6X%Ix_!8bF zTbbzY^OJKIo>;(BL@yJao+zCym=*Iavfs<(lZ6Y@@C+Owc^}c9slsIO^|$&6H^+$g z%5-UVuK(mU0l;#dR;ZaCwa2F^C4FZ%~_oAK?Q);9LAJlQ8^E6Y8|M&Fhc%Eg?WlBTFe9&OA*;M$> z4iLpoO92Cf2$~zGp>4Pebf+{}Mhx?at*zXOu>q+*m?<0hK$tpHU;i(Q8~l)h2YrU`Vf^i8$UX*qq8FX;(HAGCmm z6=)`{gv)7{O+oa=qc<&9t7RdZ#ZN6pYxRuPXj!O`CPkvaS<<&bJAHs%YAl(E`P5h< z(&mySag7I599GHgmaGn`xA!D>H)(T79k~w4VKe(*_G5ajbG`cUy6(FJw*Aw)`lx6# zvQ-L)C95nA4nF&k$SIP9-v~>jmijoQJ|YhT+oRCQ^9aI@$7k}$%)X+K=`_o1WaQLi zvUHGEx{_vDj{G*F{^y*j7HS&Rg2ujK6x$J@Oc$-ypr(I{v?t!xMCgD790ag;+B-3T zKGmmsyCjojMahkAF8U>siR1wG1kl@Ma>}k~B$4!*yj}5FG~#OOd^lUUvU)@)VUta; zDYw2?Y@*GAXt4>cTkhO$Z$(>E^=Ct0BsegT@b?*qjUNA#c3Hrvp+6iP987HMH)af+ zr>(A{Vb3mEXm&cAM0sfM(?briSr!DjS#<0=9p7f{=tkfQ_;%l8C8Yt_Prr(+#L{T6ln8QDdqaJJS2^BZ_!-kzpNsd9$>&VpaYuZm`qJbGGmzjZ+ zmE`(fk*xQMo_ep)^yYwf_2y8iw~9K!?qBaQ6`(hDW5gxXUHa&@;{zCv`2w^o-C0_C zUY6Ap{Yp3bqgc84;YCqx7pyJ*&64Ck7RuGnw$ZC76FYVa^bn#}Wg;3IU`eku)|Vt` zyaxi|TRC5ZE_i|C2I61lxRH9#O^%z0{|kG03>M;8$!{GO2;anU5z_P`)%gbEzr%4O zxZo9;9CkljQNOKD2bT~sA zMeslb0u;>y+i9-%SLY?67veM{q!orJIVnxeWlA$+MNcFU@@)6;sDveZbe1@zRth9AL!1Y^vUy^}BfZVkb6&fC7qWKqHz^LNi*h z37c^PwxAVl()`r;a3~bwFw9|u!zhO_4&xjqI81Wb$6-H*Lmckna5sY)io-IZe-QKl i62@+O6HQj>NcYHUi1lLq&CxaBo2TBp%@o%DU;7L0!l9J_ literal 0 HcmV?d00001 diff --git a/library/video-js/font/vjs.woff b/library/video-js/font/vjs.woff new file mode 100644 index 0000000000000000000000000000000000000000..375510e044395575f322eb0a9f4336d14cf09e14 GIT binary patch literal 2676 zcmZXWcQo8f8^?cox5{Gmo@fzP?}986y|=KdZV17;tVFx36QV@#A|fs#S*{YIU42E1 zh`wyHAqb)*B8m5xy!X8SymQX?%=v!inR%X>`C}%+5`nO^v$F&M#xQ^h02{kDK=G^p z|7M6lhyVZuJpj;Y0synAvT&{)0%2zk0Q5#+G#@AdzY^yWW237GkRd@Y2ucLd2BK!=!-C8W^kSg21tuxn0#R6SJ%%{Y)BYC33J5|4`hYA2^h7X6d`hmmdhl&b z7`R_F$bRJ!0jK}~Tbk#rfdMPCL<7a~o|?+0#O3wQggv+*AqEoW}%0&v_O9#cZe%M}{>W?UQ)i94wcEyCI=yqcLo-M#=$d zNROAIxuM~ot&zVd?wKm)CE4L9mpJUg`B2K{YnC*wS~`yf#dTLuLtp>xr%`=B{k zx&S@%>dK`aZ+N%Ir4jbp7O(fX9j`QuFFd1S)2=XR*}h?VnlQ|In|m>eT-$D-cqmI& zvOhK}Sjp{+`k2m@rmI^a)!#Cyw`DdrYc_g!9xe>?_ehgk?qGenf>XS33F-wNa`N4b6ZaJRDY~!7rixaNv zb3e-&@w@k2yf=hAI76n+Os@(+wM*p)u8s}HTdToZR(&z{gxmGmgqJ+29UV<29lL@x zSZzAV6Uirp8&4ZN9oobu%8`|utQx7x0kNJzdl~&@*Dm|S9E+NL($)O4W2bSU|E5aK zT&mg8?g~M6{Q==X#p%F|()OQM!wIvFaq1r!v8$ncTAO!yEYu=^gL}M%JS!t%KD+)2 z%Jy)U5k{1*D~5kouueWVY(O(bG@$ua3FPpt!iBR*@xh$j{bIqy;2YCs+$j3;)6{(z zqS{+wy)T z+jS(;U0M`1mU*k)6sIOQB%#>Nr7fud$0mZGD^vEZz0^pl@ZFP8VCz)qeM)o_6NS|`{6=0mLX}aBkGfF;%jd5{EpLIXhD6*z6Bni% z)~%_qtF9>G=;)R@cucg?e50M&+UrH&O15!$4xsI7pJBUAX)A9CXGY; zl$u_bf|_iWG2c%!eGjG&oCk`Imn9_isYIa@T;2}3as_NMYE+WN6^3!s+kwKlfoY?b zEmc({57Ch1EX{lCG+{%FSQd&XQYUws&_LTM<;(73riQ*R-W>^She|^FrDc)lTG8zN z^XD@L5{elF=J3iz=#Ekagsdl4BXBEl9>68Z+Hp5`3@3?od?3;IBqwFeK`g8j<6IQh@Xqt&Q z&Aw-{{ud_r{f9gyN8!FN9^@M8clK>JxpdXLmX@0XDQD|AhYxokdr6S++c&+i=OaXW^F?w0NDUXsUbmbH$KHgOM@ z?2S6QT_RhNXGYVhop)@YPhZfuDhXd=hb}!kN6}p`j1{)SX+2HYhnr6%>eQbzI}7?w zOOo}%#$^*Z7MwaW|g=2n@C2pjic!pGVEOK7tp9rN-l-aSSHSomb{Id zr#h~WM3UKq+U(iBro@CnPC^O6y|ClH%eWYIC}b=LHI@03MWbfp`E`H)@2-;f zB?X9z16-e&75}ZnHx9{5i=buOr}zx(i{hrG5}BY#FcV3o(-wyPJg39MMC51?6uNct z3P^7+eR8G=0Fd6%5B*yUSSzq$F4(Ah@Lkn|x4j6aPu%HTQlbBLexvsI9wg3-$7u@BJ*n=?1a5yNe7^gl8N&o-= literal 0 HcmV?d00001 diff --git a/library/video-js/video-js.css b/library/video-js/video-js.css index 7956aeee28..4d3a1d2754 100644 --- a/library/video-js/video-js.css +++ b/library/video-js/video-js.css @@ -1,6 +1,6 @@ /* VideoJS Default Styles (http://videojs.com) -Version 3.2.0 +Version GENERATED_AT_BUILD */ /* @@ -14,29 +14,46 @@ REQUIRED STYLES (be careful overriding) Otherwise you risk messing up control positioning and full window mode. ** */ .video-js { - background-color: #000; position: relative; padding: 0; - + background-color: #000; + position: relative; + padding: 0; /* Start with 10px for base font size so other dimensions can be em based and easily calculable. */ font-size: 10px; - /* Allow poster to be vertially aligned. */ vertical-align: middle; /* display: table-cell; */ /*This works in Safari but not Firefox.*/ } -/* Playback technology elements expand to the width/height of the containing div.