3 lines
54 KiB
JavaScript
3 lines
54 KiB
JavaScript
![]() |
/** layuiAdmin.pro-v1.2.1 LPPL License By http://www.layui.com/admin/ */
|
||
|
;!function(){function m(){return function(){}}function p(t){return function(){return this[t]}}function s(t){return function(){return t}}function u(t,e,i){if("string"==typeof t){if(0===t.indexOf("#")&&(t=t.slice(1)),u.xa[t])return u.xa[t];t=u.w(t)}if(!t||!t.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return t.player||new u.s(t,e,i)}function D(t){t.u("vjs-lock-showing")}function E(t,e,i,n){return i!==b?(t.a.style[e]=-1!==(""+i).indexOf("%")||-1!==(""+i).indexOf("px")?i:"auto"===i?"":i+"px",n||t.j("resize"),t):t.a?(i=t.a.style[e],n=i.indexOf("px"),-1!==n?parseInt(i.slice(0,n),10):parseInt(t.a["offset"+u.$(e)],10)):0}function F(t,e){var i,n,o,s;return i=t.a,n=u.ad(i),s=o=i.offsetWidth,i=t.handle,t.g.Cd?(s=n.top,n=e.changedTouches?e.changedTouches[0].pageY:e.pageY,i&&(i=i.w().offsetHeight,s+=i/2,o-=i),Math.max(0,Math.min(1,(s-n+o)/o))):(o=n.left,n=e.changedTouches?e.changedTouches[0].pageX:e.pageX,i&&(i=i.w().offsetWidth,o+=i/2,s-=i),Math.max(0,Math.min(1,(n-o)/s)))}function ca(t,e){t.Z(e),e.d("click",u.bind(t,function(){D(this)}))}function H(t){t.pa=f,t.wa.n("vjs-lock-showing"),t.a.setAttribute("aria-pressed",f),t.I&&0<t.I.length&&t.I[0].w().focus()}function G(t){t.pa=l,D(t.wa),t.a.setAttribute("aria-pressed",l)}function da(t){var e={sources:[],tracks:[]};if(u.k.B(e,u.xb(t)),t.hasChildNodes()){var i,n,o,s;for(t=t.childNodes,o=0,s=t.length;o<s;o++)i=t[o],n=i.nodeName.toLowerCase(),"source"===n?e.sources.push(u.xb(i)):"track"===n&&e.tracks.push(u.xb(i))}return e}function I(t,e,i){t.h?(t.aa=l,t.h.D(),t.Eb&&(t.Eb=l,clearInterval(t.Ra)),t.Fb&&J(t),t.h=l):"Html5"!==e&&t.M&&(u.l.jc(t.M),t.M=h),t.ia=e,t.aa=l;var n=u.k.B({source:i,parentEl:t.a},t.g[e.toLowerCase()]);i&&(i.src==t.v.src&&0<t.v.currentTime&&(n.startTime=t.v.currentTime),t.v.src=i.src),t.h=new window.videojs[e](t,n),t.h.L(function(){if(this.b.Ua(),!this.m.progressEvents){var t=this.b;t.Eb=f,t.Ra=setInterval(u.bind(t,function(){this.v.lb<this.buffered().end(0)?this.j("progress"):1==this.Ja()&&(clearInterval(this.Ra),this.j("progress"))}),500),t.h.U("progress",function(){this.m.progressEvents=f;var t=this.b;t.Eb=l,clearInterval(t.Ra)})}this.m.timeupdateEvents||(t=this.b,t.Fb=f,t.d("play",t.Cc),t.d("pause",t.za),t.h.U("timeupdate",function(){this.m.timeupdateEvents=f,J(this.b)}))})}function J(t){t.Fb=l,t.za(),t.o("play",t.Cc),t.o("pause",t.za)}function L(t,e,i){if(t.h&&!t.h.aa)t.h.L(function(){this[e](i)});else try{t.h[e](i)}catch(n){throw u.log(n),n}}function K(t,e){if(t.h&&t.h.aa)try{return t.h[e]()}catch(i){throw t.h[e]===b?u.log("Video.js: "+e+" method not defined for "+t.ia+" playback technology.",i):"TypeError"==i.name?(u.log("Video.js: "+e+" unavailable on "+t.ia+" playback technology element.",i),t.h.aa=l):u.log(i),i}}function M(t){t.cd=l,u.o(document,"keydown",t.lc),document.documentElement.style.overflow=t.Yc,u.u(document.body,"vjs-full-window"),t.j("exitFullWindow")}function ea(){var t=u.media.Va[i];return function(){throw Error('The "'+t+"\" method is not available on the playback technology's API")}}function fa(){var t=R[T],e=t.charAt(0).toUpperCase()+t.slice(1);Q["set"+e]=function(e){return this.a.vjs_setProperty(t,e)}}function U(t){Q[t]=function(){return this.a.vjs_getProperty(t)}}function V(t){return t.Aa=t.Aa||[],t.Aa}function W(t,e,i){for(var n,o,u=t.Aa,s=0,a=u.length;s<a;s++)n=u[s],n.id()===e?(n.show(),o=n):i&&n.J()==i&&0<n.mode()&&n.disable();(e=o?o.J():i?i:l)&&t.j(e+"trackchange")}function X(t){0===t.ha&&t.load(),0===t.ga&&(t.b.d("timeupdate",u.bind(t,t.update,t.Q)),t.b.d("ended",u.bind(t,t.reset,t.Q)),("captions"===t.A||"subtitles"===t.A)&&t.b.V.textTrackDisplay.Z(t))}function Y(t){var e=t.split(":");t=0;var i,n,o;return 3==e.length?(i=e[0],n=e[1],e=e[2]):(i=0,n=e[0],e=e[1]),e=e.split(/\s+/),e=e.splice(0,1)[0],e=e.split(/\.|,/),o=parseFloat(e[1]),e=e[0],t+=3600*parseFloat(i),t+=60*parseFloat(n),t+=parseFloat(e),o&&(t+=o/1e3),t}function $(t,e){var i=t.split("."),n=ga;!(i[0]in n)&&n.execScript&&n.execScript("var "+i[0]);for(var o;i.length&&(o=i.shift());)i.length||e===b?n=n[o]?n[o]:n[o]={}:n[o]=e}var b=void 0,f=!0
|
||
|
},t.zc=function(){this.b.volume(this.b.volume()+.1)},t.yc=function(){this.b.volume(this.b.volume()-.1)},u.dc=u.c.extend({i:function(t,e){u.c.call(this,t,e)}}),u.dc.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},u.jb=u.ea.extend(),u.jb.prototype.defaultValue="00:00",u.jb.prototype.e=function(){return u.ea.prototype.e.call(this,"div",{className:"vjs-volume-handle"})},u.da=u.q.extend({i:function(t,e){u.q.call(this,t,e),t.d("volumechange",u.bind(this,this.update)),t.h&&t.h.m&&t.h.m.volumeControl===l&&this.n("vjs-hidden"),t.d("loadstart",u.bind(this,function(){t.h.m&&t.h.m.volumeControl===l?this.n("vjs-hidden"):this.u("vjs-hidden")}))}}),u.da.prototype.e=function(){return u.q.prototype.e.call(this,"div",{className:"vjs-mute-control vjs-control",innerHTML:'<div><span class="vjs-control-text">Mute</span></div>'})},u.da.prototype.p=function(){this.b.muted(this.b.muted()?l:f)},u.da.prototype.update=function(){var t=this.b.volume(),e=3;for(0===t||this.b.muted()?e=0:.33>t?e=1:.67>t&&(e=2),this.b.muted()?"Unmute"!=this.a.children[0].children[0].innerHTML&&(this.a.children[0].children[0].innerHTML="Unmute"):"Mute"!=this.a.children[0].children[0].innerHTML&&(this.a.children[0].children[0].innerHTML="Mute"),t=0;4>t;t++)u.u(this.a,"vjs-vol-"+t);u.n(this.a,"vjs-vol-"+e)},u.oa=u.R.extend({i:function(t,e){u.R.call(this,t,e),t.d("volumechange",u.bind(this,this.update)),t.h&&t.h.m&&t.h.m.Dc===l&&this.n("vjs-hidden"),t.d("loadstart",u.bind(this,function(){t.h.m&&t.h.m.Dc===l?this.n("vjs-hidden"):this.u("vjs-hidden")})),this.n("vjs-menu-button")}}),u.oa.prototype.Ka=function(){var t=new u.ma(this.b,{Vc:"div"}),e=new u.hb(this.b,u.k.B({Cd:f},this.g.Vd));return t.Z(e),t},u.oa.prototype.p=function(){u.da.prototype.p.call(this),u.R.prototype.p.call(this)},u.oa.prototype.e=function(){return u.q.prototype.e.call(this,"div",{className:"vjs-volume-menu-button vjs-menu-button vjs-control",innerHTML:'<div><span class="vjs-control-text">Mute</span></div>'})},u.oa.prototype.update=u.da.prototype.update,u.cb=u.q.extend({i:function(t,e){u.q.call(this,t,e),(!t.poster()||!t.controls())&&this.C(),t.d("play",u.bind(this,this.C))}}),u.cb.prototype.e=function(){var t=u.e("div",{className:"vjs-poster",tabIndex:-1}),e=this.b.poster();return e&&("backgroundSize"in t.style?t.style.backgroundImage='url("'+e+'")':t.appendChild(u.e("img",{src:e}))),t},u.cb.prototype.p=function(){this.K().controls()&&this.b.play()},u.Wb=u.c.extend({i:function(t,e){u.c.call(this,t,e),t.d("canplay",u.bind(this,this.C)),t.d("canplaythrough",u.bind(this,this.C)),t.d("playing",u.bind(this,this.C)),t.d("seeked",u.bind(this,this.C)),t.d("seeking",u.bind(this,this.show)),t.d("seeked",u.bind(this,this.C)),t.d("error",u.bind(this,this.show)),t.d("waiting",u.bind(this,this.show))}}),u.Wb.prototype.e=function(){return u.c.prototype.e.call(this,"div",{className:"vjs-loading-spinner"})},u.Wa=u.q.extend(),u.Wa.prototype.e=function(){return u.q.prototype.e.call(this,"div",{className:"vjs-big-play-button",innerHTML:'<span aria-hidden="true"></span>',"aria-label":"play video"})},u.Wa.prototype.p=function(){this.b.play()},u.r=u.c.extend({i:function(t,e,i){u.c.call(this,t,e,i);var n,o;o=this,n=this.K(),t=function(){if(n.controls()&&!n.Rb()){var t,e;o.d("mousedown",o.p),o.d("touchstart",function(t){t.preventDefault(),t.stopPropagation(),e=this.b.ja()}),t=function(t){t.stopPropagation(),e&&this.b.Mb()},o.d("touchmove",t),o.d("touchleave",t),o.d("touchcancel",t),o.d("touchend",t);var i,u,s;i=0,o.d("touchstart",function(){i=(new Date).getTime(),s=f}),t=function(){s=l},o.d("touchmove",t),o.d("touchleave",t),o.d("touchcancel",t),o.d("touchend",function(){s===f&&(u=(new Date).getTime()-i,250>u&&this.j("tap"))}),o.d("tap",o.md)}},e=u.bind(o,o.pd),this.L(t),n.d("controlsenabled",t),n.d("controlsdisabled",e)}}),u.r.prototype.pd=function(){this.o("tap"),this.o("touchstart"),this.o("touchmove"),this.o("touchleave"),this.o("touchcancel"),this.o("touchend"),this.o("click"),this.o("mousedown")},u.r.prototype.p=function(t){0
|