Comparing version
@@ -0,1 +1,8 @@ | ||
# 3.0.1 | ||
#### Updates | ||
* Update `engines` in `package.json` (node and npm) | ||
# 3.0.0 | ||
@@ -2,0 +9,0 @@ |
@@ -1,10 +0,10 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.vlitejs=e():t.vlitejs=e()}(window,(function(){return function(t){var e={};function s(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,s),r.l=!0,r.exports}return s.m=t,s.c=e,s.d=function(t,e,i){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)s.d(i,r,function(e){return t[e]}.bind(null,r));return i},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="/dist/",s(s.s="./src/vlite/config.js")}({"./src/vlite/config.js":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,r=(i=s("./src/vlite/js/vlite.js"))&&i.__esModule?i:{default:i};s("./src/vlite/css/reset.css"),s("./src/vlite/css/vars.css"),s("./src/vlite/css/loader.css"),s("./src/vlite/css/controls.css"),s("./src/vlite/css/player.css");var n=r.default;e.default=n},"./src/vlite/css/controls.css":function(t,e,s){},"./src/vlite/css/loader.css":function(t,e,s){},"./src/vlite/css/player.css":function(t,e,s){},"./src/vlite/css/reset.css":function(t,e,s){},"./src/vlite/css/vars.css":function(t,e,s){},"./src/vlite/js/player-html5.js":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,r=(i=s("./src/vlite/js/player.js"))&&i.__esModule?i:{default:i};class n extends r.default{get type(){return"html5"}constructor({selector:t,options:e,onReady:s}){super({selector:t,options:e,onReady:s}),this.waitUntilVideoIsReady().then(this.onPlayerReady.bind(this)),this.skinDisabled||this.bindSpecificEvents()}onPlayerReady(){super.playerIsReady(),this.updateDuration()}waitUntilVideoIsReady(){return new window.Promise((t,e)=>{"number"==typeof this.player.duration&&!1===isNaN(this.player.duration)?t():(this.onDurationChange=()=>{this.player.removeEventListener("durationchange",this.onDurationChange),this.player.removeEventListener("error",this.onError),t()},this.onError=t=>{this.player.removeEventListener("error",this.onError),this.player.removeEventListener("durationchange",this.onDurationChange),e(t)},this.player.addEventListener("durationchange",this.onDurationChange,!1),this.player.addEventListener("error",this.onError,!1))})}bindSpecificEvents(){this.options.controls&&(this.options.time&&this.player.addEventListener("durationchange",t=>this.updateDuration(t),!1),this.player.addEventListener("timeupdate",t=>this.updateCurrentTime(t),!1)),this.player.addEventListener("ended",t=>this.onVideoEnded(t),!1),this.onPlayingEvent=()=>{this.onPlaying()},this.player.addEventListener("playing",t=>this.onPlayingEvent(t),!1),this.onWaitingEvent=()=>{this.onWaiting()},this.player.addEventListener("waiting",t=>this.onWaitingEvent(t),!1),this.onSeekingEvent=()=>{this.onSeeking()},this.player.addEventListener("seeking",t=>this.onSeekingEvent(t),!1),this.onSeekedEvent=()=>{this.onSeeked()},this.player.addEventListener("seeked",t=>this.onSeekedEvent(t),!1)}getInstance(){return this.player}getCurrentTime(){return this.player.currentTime}setCurrentTime(t){this.player.currentTime=t}getDuration(){return this.player.duration}onProgressChanged(t){this.setCurrentTime(t.target.value*this.getDuration()/100)}methodPlay(){this.player.play()}methodPause(){this.player.pause()}methodMute(){this.player.muted=!0,this.player.setAttribute("muted","")}methodUnMute(){this.player.muted=!1,this.player.removeAttribute("muted")}onWaiting(){this.loading(!0)}onPlaying(){this.loading(!1)}onSeeking(){this.loading(!0)}onSeeked(){this.loading(!1)}unBindSpecificEvents(){this.options.time&&this.player.removeEventListener("durationchange",this.updateDuration),this.player.removeEventListener("timeupdate",this.updateCurrentTime),this.player.removeEventListener("playing",this.onPlaying),this.player.removeEventListener("waiting",this.onWaiting),this.player.removeEventListener("seeking",this.onSeeking),this.player.removeEventListener("seeked",this.onSeeked),this.player.removeEventListener("ended",this.onVideoEnded)}}e.default=n},"./src/vlite/js/player-youtube.js":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,r=(i=s("./src/vlite/js/player.js"))&&i.__esModule?i:{default:i};class n extends r.default{get type(){return"youtube"}constructor({selector:t,options:e,onReady:s}){super({selector:t,options:e,onReady:s}),this.initYoutubePlayer()}initYoutubePlayer(){this.instancePlayer=new window.YT.Player(this.player.getAttribute("id"),{videoId:this.player.getAttribute("data-youtube-id"),height:"100%",width:"100%",playerVars:{showinfo:0,modestbranding:0,autohide:1,rel:0,fs:this.options.fullscreen?1:0,wmode:"transparent",playsinline:this.options.playsinline?1:0,controls:this.skinDisabled?1:0},events:{onReady:t=>this.onPlayerReady(t),onStateChange:t=>this.onPlayerStateChange(t)}})}onPlayerReady(t){this.player=t.target.getIframe(),super.playerIsReady()}getInstance(){return this.instancePlayer}onPlayerStateChange(t){switch(t.data){case window.YT.PlayerState.UNSTARTED:this.options.controls&&this.options.time&&super.updateDuration();break;case window.YT.PlayerState.ENDED:super.onVideoEnded();break;case window.YT.PlayerState.PLAYING:this.loading(!1),this.options.controls&&setInterval(()=>{super.updateCurrentTime()},100),super.afterPlayPause("play");break;case window.YT.PlayerState.PAUSED:super.afterPlayPause("pause");break;case window.YT.PlayerState.BUFFERING:this.loading(!0)}}setCurrentTime(t){this.instancePlayer.seekTo(t)}getCurrentTime(){return this.instancePlayer.getCurrentTime()}getDuration(){return this.instancePlayer.getDuration()}onProgressChanged(t){this.setCurrentTime(t.target.value*this.getDuration()/100)}methodPlay(){this.instancePlayer.playVideo()}methodPause(){this.instancePlayer.pauseVideo()}methodMute(){this.instancePlayer.mute()}methodUnMute(){this.instancePlayer.unMute()}removeInstance(){this.instancePlayer.destroy()}}e.default=n},"./src/vlite/js/player.js":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=c(s("./src/vlite/svg/big-play.svg")),r=c(s("./src/vlite/svg/play.svg")),n=c(s("./src/vlite/svg/pause.svg")),a=c(s("./src/vlite/svg/volume-high.svg")),o=c(s("./src/vlite/svg/volume-mute.svg")),l=c(s("./src/vlite/svg/fullscreen.svg")),u=c(s("./src/vlite/svg/fullscreen-exit.svg"));function c(t){return t&&t.__esModule?t:{default:t}}e.default=class{constructor({selector:t,options:e,onReady:s}){this.onReady=s,this.isFullScreen=!1,this.isPaused=null,this.player=t,this.touchSupport=this.isTouch(),this.skinDisabled=!1,this.delayAutoHide=3e3;let i={};i=this.player.hasAttribute("data-options")?JSON.parse(this.player.getAttribute("data-options")):e,this.options=Object.assign({},{autoplay:!1,controls:!0,playPause:!0,progressBar:!0,time:!0,volume:!0,fullscreen:!0,poster:null,bigPlay:!0,autoHide:!1,nativeControlsForTouch:!1,playsinline:!0},i),this.options.nativeControlsForTouch&&(this.skinDisabled=!0,this.player.setAttribute("controls","controls"),this.options.controls=!1),this.options.playsinline&&(this.player.setAttribute("playsinline",!0),this.player.setAttribute("webkit-playsinline",!0)),this.supportFullScreen=this.constructor.checkSupportFullScreen(),this.buildPlayer(),this.bindEvents()}buildPlayer(){const t=document.createElement("div");t.setAttribute("class","v-vlite v-firstStart v-paused v-loading"),t.setAttribute("tabindex",0),this.player.parentNode.insertBefore(t,this.player),t.appendChild(this.player),this.wrapperPlayer=this.player.parentNode,this.player.setAttribute("data-v-toggle-play-pause",""),this.skinDisabled&&this.wrapperPlayer.classList.add("v-forceControls");const e=null!==this.options.poster?`background-image: url(${this.options.poster});`:"",s=`${this.options.nativeControlsForTouch?"":`<div class="v-overlayVideo" data-v-toggle-play-pause>\n\t\t\t\t\t\t\t\t\t${this.touchSupport?"":'<div class="v-overlayLeft" data-v-fast-forward data-direction="left"></div>\n\t\t\t\t\t\t\t\t\t\t<div class="v-overlayRight" data-v-fast-forward data-direction="right"></div>'}\n\t\t\t\t\t\t\t\t</div>`}\n\t\t\t\t\t\t\t<div class="v-loader">\n\t\t\t\t\t\t\t\t<div class="v-loaderContent">\n\t\t\t\t\t\t\t\t\t<div class="v-loaderBounce1"></div>\n\t\t\t\t\t\t\t\t\t<div class="v-loaderBounce2"></div>\n\t\t\t\t\t\t\t\t\t<div class="v-loaderBounce3"></div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="v-poster v-active" data-v-toggle-play-pause style="${e}"></div>\n\t\t\t\t\t\t\t${this.options.bigPlay?`<div class="v-bigPlayButton" data-v-toggle-play-pause>\n\t\t\t\t\t\t\t\t\t <span class="v-playerIcon v-iconBigPlay">${i.default}</span>\n\t\t\t\t\t\t\t\t</div>`:""}\n\t\t\t\t\t\t\t${this.options.controls?`<div class="v-controlBar">\n\t\t\t\t\t\t\t\t\t${this.options.progressBar?'<div class="v-progressBar">\n\t\t\t\t\t\t\t\t\t\t\t<div class="v-progressSeek"></div>\n\t\t\t\t\t\t\t\t\t\t\t<input type="range" class="v-progressInput" min="0" max="100" step="0.01" value="0" orient="horizontal" />\n\t\t\t\t\t\t\t\t\t\t</div>':""}\n\t\t\t\t\t\t\t\t\t<div class="v-controlBarContent">\n\t\t\t\t\t\t\t\t\t\t${this.options.playPause?`<div class="v-playPauseButton" data-v-toggle-play-pause>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="v-playerIcon v-iconPlay">${r.default}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="v-playerIcon v-iconPause">${n.default}</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>`:""}\n\t\t\t\t\t\t\t\t\t\t${this.options.time?'<div class="v-time">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="v-currentTime">00:00</span> / <span class="v-duration"></span>\n\t\t\t\t\t\t\t\t\t\t\t</div>':""}\n\t\t\t\t\t\t\t\t\t\t${this.options.volume?`<div class="v-volume">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="v-playerIcon v-iconVolumeHigh">${a.default}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="v-playerIcon v-iconVolumeMute">${o.default}</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>`:""}\n\t\t\t\t\t\t\t\t\t\t${this.options.fullscreen?`<div class="v-fullscreen">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="v-playerIcon v-iconFullscreen">${l.default}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="v-playerIcon v-iconShrink">${u.default}</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>`:""}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>`:""}`;t.insertAdjacentHTML("beforeend",s)}bindEvents(){if(this.options.controls&&this.options.progressBar&&(this.onChangeProgressBar=t=>{this.onProgressChanged(t)},this.wrapperPlayer.querySelector(".v-progressInput").addEventListener("change",this.onChangeProgressBar,!1)),this.onClickTogglePlayPause=t=>{t.preventDefault(),this.togglePlayPause()},this.wrapperPlayer.querySelectorAll("[data-v-toggle-play-pause]").forEach(t=>{t.addEventListener("click",this.onClickTogglePlayPause,!1)}),!this.touchSupport){this.onDblclickFastForward=t=>{t.preventDefault(),this.fastForward(t)},[...this.wrapperPlayer.querySelectorAll("[data-v-fast-forward]")].forEach(t=>{t.addEventListener("dblclick",this.onDblclickFastForward,!1)})}this.options.controls&&this.options.volume&&(this.onCLickToggleVolume=t=>{t.preventDefault(),this.toggleVolume()},this.wrapperPlayer.querySelector(".v-volume").addEventListener("click",this.onCLickToggleVolume,!1)),this.options.controls&&this.options.fullscreen&&(this.onClickToggleFullscreen=t=>{t.preventDefault(),this.toggleFullscreen()},this.wrapperPlayer.querySelector(".v-fullscreen").addEventListener("click",this.onClickToggleFullscreen,!1),this.onDblclickVideo=t=>{t.preventDefault(),t.target.hasAttribute("data-v-fast-forward")||this.toggleFullscreen()},this.wrapperPlayer.querySelector(".v-overlayVideo").addEventListener("dblclick",this.onDblclickVideo,!1)),this.options.controls&&(this.onKeyupEvent=t=>{this.onKeyup(t)},this.wrapperPlayer.addEventListener("keyup",this.onKeyupEvent,!1),this.onMousemoveEvent=t=>{this.onMousemove(t)},this.wrapperPlayer.addEventListener("mousemove",this.onMousemoveEvent,!1)),this.onChangeFullScreen=t=>{!document[this.supportFullScreen.isFullScreen]&&this.isFullScreen&&this.exitFullscreen(t.target)},window.addEventListener(this.supportFullScreen.changeEvent,this.onChangeFullScreen,!1)}playerIsReady(){this.loading(!1),"function"==typeof this.onReady&&this.onReady(this),this.options.autoplay&&(this.player.muted||this.mute(),this.togglePlayPause())}loading(t){t?this.wrapperPlayer.classList.add("v-loading"):this.wrapperPlayer.classList.remove("v-loading")}updateDuration(){this.wrapperPlayer.querySelector(".v-duration").innerHTML=this.constructor.formatVideoTime(this.getDuration())}onVideoEnded(){this.wrapperPlayer.classList.replace("v-playing","v-paused"),this.wrapperPlayer.classList.add("v-firstStart"),this.wrapperPlayer.querySelector(".v-poster").classList.add("v-active"),this.options.controls&&(this.wrapperPlayer.querySelector(".v-progressSeek").style.width="0%",this.wrapperPlayer.querySelector(".v-progressInput").setAttribute("value",0),this.wrapperPlayer.querySelector(".v-currentTime").innerHTML="00:00")}togglePlayPause(){this.wrapperPlayer.classList.contains("v-paused")?this.play():this.pause()}fastForward(t){"left"===t.target.getAttribute("data-direction")?this.seekTo(this.getCurrentTime()-10):this.seekTo(this.getCurrentTime()+10)}play(){this.wrapperPlayer.classList.contains("v-firstStart")&&(this.wrapperPlayer.classList.remove("v-firstStart"),this.wrapperPlayer.querySelector(".v-poster").classList.remove("v-active")),this.methodPlay(),this.isPaused=!1,this.afterPlayPause()}pause(){this.methodPause(),this.isPaused=!0,this.afterPlayPause()}afterPlayPause(){this.isPaused?this.wrapperPlayer.classList.replace("v-playing","v-paused"):this.wrapperPlayer.classList.replace("v-paused","v-playing"),this.options.autoHide&&this.options.controls&&(this.isPaused?this.wrapperPlayer.querySelector(".v-controlBar").classList.remove("hidden"):this.timerAutoHide=setTimeout(()=>{this.wrapperPlayer.querySelector(".v-controlBar").classList.add("hidden")},this.delayAutoHide))}toggleVolume(){this.wrapperPlayer.querySelector(".v-volume").classList.contains("v-muted")?this.unMute():this.mute()}mute(){this.methodMute(),this.wrapperPlayer.querySelector(".v-volume").classList.add("v-muted")}unMute(){this.methodUnMute(),this.wrapperPlayer.querySelector(".v-volume").classList.remove("v-muted")}seekTo(t){this.setCurrentTime(t)}toggleFullscreen(){this.isFullScreen?this.exitFullscreen():this.requestFullscreen()}static checkSupportFullScreen(){let t,e,s,i,r=["","moz","webkit","ms","o"],n=r.length;if(void 0!==document.cancelFullscreen)t="requestFullscreen",e="exitFullscreen",s="fullscreenchange";else for(;n--;)"moz"===r[n]&&!document.mozFullScreenEnabled||void 0===document[r[n]+"CancelFullScreen"]||(t=r[n]+"RequestFullScreen",e=r[n]+"CancelFullScreen",s=r[n]+"fullscreenchange",i="webkit"===r[n]?r[n]+"IsFullScreen":r[n]+"FullScreen");return!!t&&{requestFn:t,cancelFn:e,changeEvent:s,isFullScreen:i}}requestFullscreen(){const{requestFn:t}=this.supportFullScreen;this.player[t]&&(this.player.parentNode[t](),this.isFullScreen=!0,this.wrapperPlayer.classList.add("v-fullscreen-display"),this.wrapperPlayer.querySelector(".v-fullscreen").classList.add("v-exit"))}exitFullscreen(){const{cancelFn:t}=this.supportFullScreen;document[t]&&(document[t](),this.wrapperPlayer.classList.remove("v-fullscreen-display"),this.wrapperPlayer.querySelector(".v-fullscreen").classList.remove("v-exit"),this.isFullScreen=!1)}onKeyup(t){32===t.keyCode&&this.togglePlayPause()}onMousemove(){!1===this.isPaused&&this.options.autoHide&&this.options.controls&&(this.wrapperPlayer.querySelector(".v-controlBar").classList.remove("hidden"),clearTimeout(this.timerAutoHide),this.timerAutoHide=setTimeout(()=>{this.wrapperPlayer.querySelector(".v-controlBar").classList.add("hidden")},this.delayAutoHide))}updateCurrentTime(){const t=Math.round(this.getCurrentTime()),e=100*t/this.getDuration(),s=this.wrapperPlayer.querySelector(".v-currentTime");this.wrapperPlayer.querySelector(".v-progressSeek").style.width=`${e}%`,null!==s&&(s.innerHTML=this.constructor.formatVideoTime(t))}unBindEvents(){if([...this.wrapperPlayer.querySelectorAll("[data-v-toggle-play-pause]")].forEach(t=>{t.removeEventListener("click",this.onClickTogglePlayPause)}),this.onClickTogglePlayPause=null,!this.touchSupport){[...this.wrapperPlayer.querySelectorAll("[data-v-fast-forward]")].forEach(t=>{t.removeEventListener("dblclick",this.onDblclickFastForward)}),this.onDblclickFastForward=null}this.options.controls&&this.options.progressBar&&(this.wrapperPlayer.querySelector(".v-progressInput").removeEventListener("change",this.onChangeProgressBar,!1),this.onChangeProgressBar=null),this.options.controls&&this.options.volume&&(this.wrapperPlayer.querySelector(".v-volume").removeEventListener("click",this.onCLickToggleVolume),this.onCLickToggleVolume=null),this.options.controls&&(this.wrapperPlayer.removeEventListener("keyup",this.onKeyupEvent),this.wrapperPlayer.removeEventListener("mousemove",this.onMousemoveEvent),this.onKeyupEvent=null,this.onMousemoveEvent=null),this.options.controls&&this.options.fullscreen&&(this.wrapperPlayer.querySelector(".v-fullscreen").removeEventListener("click",this.onClickToggleFullscreen),this.wrapperPlayer.querySelector(".v-overlayVideo").removeEventListener("dblclick",this.onDblclickVideo),this.onClickToggleFullscreen=null,this.onDblclickVideo=null),window.removeEventListener(this.supportFullScreen.changeEvent,this.onChangeFullScreen)}destroy(){this.pause(),this.unBindEvents(),"function"==typeof this.unBindSpecificEvents&&this.unBindSpecificEvents(),"function"==typeof this.removeInstance&&this.removeInstance(),this.wrapperPlayer.remove()}isTouch(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch}static formatVideoTime(t){const e=1e3*t,s=e/1e3/60<<0,i=e/1e3%60<<0;let r="";return r+=s<10?"0":"",r+=s+":",r+=i<10?"0":"",r+=i}}},"./src/vlite/js/vlite.js":function(t,e,s){"use strict"; | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.vlitejs=e():t.vlitejs=e()}(window,(function(){return function(t){var e={};function s(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,s),r.l=!0,r.exports}return s.m=t,s.c=e,s.d=function(t,e,i){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)s.d(i,r,function(e){return t[e]}.bind(null,r));return i},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="/dist/",s(s.s="./src/vlite/config.js")}({"./src/vlite/config.js":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,r=(i=s("./src/vlite/js/vlite.js"))&&i.__esModule?i:{default:i};s("./src/vlite/css/reset.css"),s("./src/vlite/css/vars.css"),s("./src/vlite/css/loader.css"),s("./src/vlite/css/controls.css"),s("./src/vlite/css/player.css");var n=r.default;e.default=n},"./src/vlite/css/controls.css":function(t,e,s){},"./src/vlite/css/loader.css":function(t,e,s){},"./src/vlite/css/player.css":function(t,e,s){},"./src/vlite/css/reset.css":function(t,e,s){},"./src/vlite/css/vars.css":function(t,e,s){},"./src/vlite/js/player-html5.js":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,r=(i=s("./src/vlite/js/player.js"))&&i.__esModule?i:{default:i};class n extends r.default{get type(){return"html5"}constructor({selector:t,options:e,onReady:s}){super({selector:t,options:e,onReady:s}),this.waitUntilVideoIsReady().then(this.onPlayerReady.bind(this)),this.skinDisabled||this.bindSpecificEvents()}onPlayerReady(){super.playerIsReady(),this.updateDuration()}waitUntilVideoIsReady(){return new window.Promise((t,e)=>{"number"==typeof this.player.duration&&!1===isNaN(this.player.duration)?t():(this.onDurationChange=()=>{this.player.removeEventListener("durationchange",this.onDurationChange),this.player.removeEventListener("error",this.onError),t()},this.onError=t=>{this.player.removeEventListener("error",this.onError),this.player.removeEventListener("durationchange",this.onDurationChange),e(t)},this.player.addEventListener("durationchange",this.onDurationChange,!1),this.player.addEventListener("error",this.onError,!1))})}bindSpecificEvents(){this.options.controls&&(this.options.time&&this.player.addEventListener("durationchange",t=>this.updateDuration(t),!1),this.player.addEventListener("timeupdate",t=>this.updateCurrentTime(t),!1)),this.player.addEventListener("ended",t=>this.onVideoEnded(t),!1),this.onPlayingEvent=()=>{this.onPlaying()},this.player.addEventListener("playing",t=>this.onPlayingEvent(t),!1),this.onWaitingEvent=()=>{this.onWaiting()},this.player.addEventListener("waiting",t=>this.onWaitingEvent(t),!1),this.onSeekingEvent=()=>{this.onSeeking()},this.player.addEventListener("seeking",t=>this.onSeekingEvent(t),!1),this.onSeekedEvent=()=>{this.onSeeked()},this.player.addEventListener("seeked",t=>this.onSeekedEvent(t),!1)}getInstance(){return this.player}getCurrentTime(){return this.player.currentTime}setCurrentTime(t){this.player.currentTime=t}getDuration(){return this.player.duration}onProgressChanged(t){this.setCurrentTime(t.target.value*this.getDuration()/100)}methodPlay(){this.player.play()}methodPause(){this.player.pause()}methodMute(){this.player.muted=!0,this.player.setAttribute("muted","")}methodUnMute(){this.player.muted=!1,this.player.removeAttribute("muted")}onWaiting(){this.loading(!0)}onPlaying(){this.loading(!1)}onSeeking(){this.loading(!0)}onSeeked(){this.loading(!1)}unBindSpecificEvents(){this.options.time&&this.player.removeEventListener("durationchange",this.updateDuration),this.player.removeEventListener("timeupdate",this.updateCurrentTime),this.player.removeEventListener("playing",this.onPlaying),this.player.removeEventListener("waiting",this.onWaiting),this.player.removeEventListener("seeking",this.onSeeking),this.player.removeEventListener("seeked",this.onSeeked),this.player.removeEventListener("ended",this.onVideoEnded)}}e.default=n},"./src/vlite/js/player-youtube.js":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,r=(i=s("./src/vlite/js/player.js"))&&i.__esModule?i:{default:i};class n extends r.default{get type(){return"youtube"}constructor({selector:t,options:e,onReady:s}){super({selector:t,options:e,onReady:s}),this.initYoutubePlayer()}initYoutubePlayer(){this.instancePlayer=new window.YT.Player(this.player.getAttribute("id"),{videoId:this.player.getAttribute("data-youtube-id"),height:"100%",width:"100%",playerVars:{showinfo:0,modestbranding:0,autohide:1,rel:0,fs:this.options.fullscreen?1:0,wmode:"transparent",playsinline:this.options.playsinline?1:0,controls:this.skinDisabled?1:0},events:{onReady:t=>this.onPlayerReady(t),onStateChange:t=>this.onPlayerStateChange(t)}})}onPlayerReady(t){this.player=t.target.getIframe(),super.playerIsReady()}getInstance(){return this.instancePlayer}onPlayerStateChange(t){switch(t.data){case window.YT.PlayerState.UNSTARTED:this.options.controls&&this.options.time&&super.updateDuration();break;case window.YT.PlayerState.ENDED:super.onVideoEnded();break;case window.YT.PlayerState.PLAYING:this.loading(!1),this.options.controls&&setInterval(()=>{super.updateCurrentTime()},100),super.afterPlayPause("play");break;case window.YT.PlayerState.PAUSED:super.afterPlayPause("pause");break;case window.YT.PlayerState.BUFFERING:this.loading(!0)}}setCurrentTime(t){this.instancePlayer.seekTo(t)}getCurrentTime(){return this.instancePlayer.getCurrentTime()}getDuration(){return this.instancePlayer.getDuration()}onProgressChanged(t){this.setCurrentTime(t.target.value*this.getDuration()/100)}methodPlay(){this.instancePlayer.playVideo()}methodPause(){this.instancePlayer.pauseVideo()}methodMute(){this.instancePlayer.mute()}methodUnMute(){this.instancePlayer.unMute()}removeInstance(){this.instancePlayer.destroy()}}e.default=n},"./src/vlite/js/player.js":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=c(s("./src/vlite/svg/big-play.svg")),r=c(s("./src/vlite/svg/play.svg")),n=c(s("./src/vlite/svg/pause.svg")),a=c(s("./src/vlite/svg/volume-high.svg")),o=c(s("./src/vlite/svg/volume-mute.svg")),l=c(s("./src/vlite/svg/fullscreen.svg")),u=c(s("./src/vlite/svg/fullscreen-exit.svg"));function c(t){return t&&t.__esModule?t:{default:t}}e.default=class{constructor({selector:t,options:e,onReady:s}){this.onReady=s,this.isFullScreen=!1,this.isPaused=null,this.player=t,this.touchSupport=this.isTouch(),this.skinDisabled=!1,this.delayAutoHide=3e3;let i={};i=this.player.hasAttribute("data-options")?JSON.parse(this.player.getAttribute("data-options")):e,this.options=Object.assign({},{autoplay:!1,controls:!0,playPause:!0,progressBar:!0,time:!0,volume:!0,fullscreen:!0,poster:null,bigPlay:!0,autoHide:!1,nativeControlsForTouch:!1,playsinline:!0},i),this.options.nativeControlsForTouch&&(this.skinDisabled=!0,this.player.setAttribute("controls","controls"),this.options.controls=!1),this.options.playsinline&&(this.player.setAttribute("playsinline",!0),this.player.setAttribute("webkit-playsinline",!0)),this.supportFullScreen=this.constructor.checkSupportFullScreen(),this.buildPlayer(),this.bindEvents()}buildPlayer(){const t=document.createElement("div");t.setAttribute("class","v-vlite v-firstStart v-paused v-loading"),t.setAttribute("tabindex",0),this.player.parentNode.insertBefore(t,this.player),t.appendChild(this.player),this.wrapperPlayer=this.player.parentNode,this.player.setAttribute("data-v-toggle-play-pause",""),this.skinDisabled&&this.wrapperPlayer.classList.add("v-forceControls");const e=null!==this.options.poster?`background-image: url(${this.options.poster});`:"",s=`${this.options.nativeControlsForTouch?"":`<div class="v-overlayVideo" data-v-toggle-play-pause>\n\t\t\t\t\t\t\t\t\t${this.touchSupport?"":'<div class="v-overlayLeft" data-v-fast-forward data-direction="left"></div>\n\t\t\t\t\t\t\t\t\t\t<div class="v-overlayRight" data-v-fast-forward data-direction="right"></div>'}\n\t\t\t\t\t\t\t\t</div>`}\n\t\t\t\t\t\t\t<div class="v-loader">\n\t\t\t\t\t\t\t\t<div class="v-loaderContent">\n\t\t\t\t\t\t\t\t\t<div class="v-loaderBounce1"></div>\n\t\t\t\t\t\t\t\t\t<div class="v-loaderBounce2"></div>\n\t\t\t\t\t\t\t\t\t<div class="v-loaderBounce3"></div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="v-poster v-active" data-v-toggle-play-pause style="${e}"></div>\n\t\t\t\t\t\t\t${this.options.bigPlay?`<div class="v-bigPlayButton" data-v-toggle-play-pause>\n\t\t\t\t\t\t\t\t\t <span class="v-playerIcon v-iconBigPlay">${i.default}</span>\n\t\t\t\t\t\t\t\t</div>`:""}\n\t\t\t\t\t\t\t${this.options.controls?`<div class="v-controlBar">\n\t\t\t\t\t\t\t\t\t${this.options.progressBar?'<div class="v-progressBar">\n\t\t\t\t\t\t\t\t\t\t\t<div class="v-progressSeek"></div>\n\t\t\t\t\t\t\t\t\t\t\t<input type="range" class="v-progressInput" min="0" max="100" step="0.01" value="0" orient="horizontal" />\n\t\t\t\t\t\t\t\t\t\t</div>':""}\n\t\t\t\t\t\t\t\t\t<div class="v-controlBarContent">\n\t\t\t\t\t\t\t\t\t\t${this.options.playPause?`<div class="v-playPauseButton" data-v-toggle-play-pause>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="v-playerIcon v-iconPlay">${r.default}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="v-playerIcon v-iconPause">${n.default}</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>`:""}\n\t\t\t\t\t\t\t\t\t\t${this.options.time?'<div class="v-time">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="v-currentTime">00:00</span> / <span class="v-duration"></span>\n\t\t\t\t\t\t\t\t\t\t\t</div>':""}\n\t\t\t\t\t\t\t\t\t\t${this.options.volume?`<div class="v-volume">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="v-playerIcon v-iconVolumeHigh">${a.default}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="v-playerIcon v-iconVolumeMute">${o.default}</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>`:""}\n\t\t\t\t\t\t\t\t\t\t${this.options.fullscreen?`<div class="v-fullscreen">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="v-playerIcon v-iconFullscreen">${l.default}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="v-playerIcon v-iconShrink">${u.default}</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>`:""}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>`:""}`;t.insertAdjacentHTML("beforeend",s)}bindEvents(){if(this.options.controls&&this.options.progressBar&&(this.onChangeProgressBar=t=>{this.onProgressChanged(t)},this.wrapperPlayer.querySelector(".v-progressInput").addEventListener("change",this.onChangeProgressBar,!1)),this.onClickTogglePlayPause=t=>{t.preventDefault(),this.togglePlayPause()},this.wrapperPlayer.querySelectorAll("[data-v-toggle-play-pause]").forEach(t=>{t.addEventListener("click",this.onClickTogglePlayPause,!1)}),!this.touchSupport){this.onDblclickFastForward=t=>{t.preventDefault(),this.fastForward(t)},[...this.wrapperPlayer.querySelectorAll("[data-v-fast-forward]")].forEach(t=>{t.addEventListener("dblclick",this.onDblclickFastForward,!1)})}this.options.controls&&this.options.volume&&(this.onClickToggleVolume=t=>{t.preventDefault(),this.toggleVolume()},this.wrapperPlayer.querySelector(".v-volume").addEventListener("click",this.onClickToggleVolume,!1)),this.options.controls&&this.options.fullscreen&&(this.onClickToggleFullscreen=t=>{t.preventDefault(),this.toggleFullscreen()},this.wrapperPlayer.querySelector(".v-fullscreen").addEventListener("click",this.onClickToggleFullscreen,!1),this.onDblclickVideo=t=>{t.preventDefault(),t.target.hasAttribute("data-v-fast-forward")||this.toggleFullscreen()},this.wrapperPlayer.querySelector(".v-overlayVideo").addEventListener("dblclick",this.onDblclickVideo,!1)),this.options.controls&&(this.onKeyupEvent=t=>{this.onKeyup(t)},this.wrapperPlayer.addEventListener("keyup",this.onKeyupEvent,!1),this.onMousemoveEvent=t=>{this.onMousemove(t)},this.wrapperPlayer.addEventListener("mousemove",this.onMousemoveEvent,!1)),this.onChangeFullScreen=t=>{!document[this.supportFullScreen.isFullScreen]&&this.isFullScreen&&this.exitFullscreen(t.target)},window.addEventListener(this.supportFullScreen.changeEvent,this.onChangeFullScreen,!1)}playerIsReady(){this.loading(!1),"function"==typeof this.onReady&&this.onReady(this),this.options.autoplay&&(this.player.muted||this.mute(),this.togglePlayPause())}loading(t){t?this.wrapperPlayer.classList.add("v-loading"):this.wrapperPlayer.classList.remove("v-loading")}updateDuration(){this.wrapperPlayer.querySelector(".v-duration").innerHTML=this.constructor.formatVideoTime(this.getDuration())}onVideoEnded(){this.wrapperPlayer.classList.replace("v-playing","v-paused"),this.wrapperPlayer.classList.add("v-firstStart"),this.wrapperPlayer.querySelector(".v-poster").classList.add("v-active"),this.options.controls&&(this.wrapperPlayer.querySelector(".v-progressSeek").style.width="0%",this.wrapperPlayer.querySelector(".v-progressInput").setAttribute("value",0),this.wrapperPlayer.querySelector(".v-currentTime").innerHTML="00:00")}togglePlayPause(){this.wrapperPlayer.classList.contains("v-paused")?this.play():this.pause()}fastForward(t){"left"===t.target.getAttribute("data-direction")?this.seekTo(this.getCurrentTime()-10):this.seekTo(this.getCurrentTime()+10)}play(){this.wrapperPlayer.classList.contains("v-firstStart")&&(this.wrapperPlayer.classList.remove("v-firstStart"),this.wrapperPlayer.querySelector(".v-poster").classList.remove("v-active")),this.methodPlay(),this.isPaused=!1,this.afterPlayPause()}pause(){this.methodPause(),this.isPaused=!0,this.afterPlayPause()}afterPlayPause(){this.isPaused?this.wrapperPlayer.classList.replace("v-playing","v-paused"):this.wrapperPlayer.classList.replace("v-paused","v-playing"),this.options.autoHide&&this.options.controls&&(this.isPaused?this.wrapperPlayer.querySelector(".v-controlBar").classList.remove("hidden"):this.timerAutoHide=setTimeout(()=>{this.wrapperPlayer.querySelector(".v-controlBar").classList.add("hidden")},this.delayAutoHide))}toggleVolume(){this.wrapperPlayer.querySelector(".v-volume").classList.contains("v-muted")?this.unMute():this.mute()}mute(){this.methodMute(),this.wrapperPlayer.querySelector(".v-volume").classList.add("v-muted")}unMute(){this.methodUnMute(),this.wrapperPlayer.querySelector(".v-volume").classList.remove("v-muted")}seekTo(t){this.setCurrentTime(t)}toggleFullscreen(){this.isFullScreen?this.exitFullscreen():this.requestFullscreen()}static checkSupportFullScreen(){let t,e,s,i,r=["","moz","webkit","ms","o"],n=r.length;if(void 0!==document.cancelFullscreen)t="requestFullscreen",e="exitFullscreen",s="fullscreenchange";else for(;n--;)"moz"===r[n]&&!document.mozFullScreenEnabled||void 0===document[r[n]+"CancelFullScreen"]||(t=r[n]+"RequestFullScreen",e=r[n]+"CancelFullScreen",s=r[n]+"fullscreenchange",i="webkit"===r[n]?r[n]+"IsFullScreen":r[n]+"FullScreen");return!!t&&{requestFn:t,cancelFn:e,changeEvent:s,isFullScreen:i}}requestFullscreen(){const{requestFn:t}=this.supportFullScreen;this.player[t]&&(this.player.parentNode[t](),this.isFullScreen=!0,this.wrapperPlayer.classList.add("v-fullscreen-display"),this.wrapperPlayer.querySelector(".v-fullscreen").classList.add("v-exit"))}exitFullscreen(){const{cancelFn:t}=this.supportFullScreen;document[t]&&(document[t](),this.wrapperPlayer.classList.remove("v-fullscreen-display"),this.wrapperPlayer.querySelector(".v-fullscreen").classList.remove("v-exit"),this.isFullScreen=!1)}onKeyup(t){32===t.keyCode&&this.togglePlayPause()}onMousemove(){!1===this.isPaused&&this.options.autoHide&&this.options.controls&&(this.wrapperPlayer.querySelector(".v-controlBar").classList.remove("hidden"),clearTimeout(this.timerAutoHide),this.timerAutoHide=setTimeout(()=>{this.wrapperPlayer.querySelector(".v-controlBar").classList.add("hidden")},this.delayAutoHide))}updateCurrentTime(){const t=Math.round(this.getCurrentTime()),e=100*t/this.getDuration(),s=this.wrapperPlayer.querySelector(".v-currentTime");this.wrapperPlayer.querySelector(".v-progressSeek").style.width=`${e}%`,null!==s&&(s.innerHTML=this.constructor.formatVideoTime(t))}unBindEvents(){if([...this.wrapperPlayer.querySelectorAll("[data-v-toggle-play-pause]")].forEach(t=>{t.removeEventListener("click",this.onClickTogglePlayPause)}),this.onClickTogglePlayPause=null,!this.touchSupport){[...this.wrapperPlayer.querySelectorAll("[data-v-fast-forward]")].forEach(t=>{t.removeEventListener("dblclick",this.onDblclickFastForward)}),this.onDblclickFastForward=null}this.options.controls&&this.options.progressBar&&(this.wrapperPlayer.querySelector(".v-progressInput").removeEventListener("change",this.onChangeProgressBar,!1),this.onChangeProgressBar=null),this.options.controls&&this.options.volume&&(this.wrapperPlayer.querySelector(".v-volume").removeEventListener("click",this.onClickToggleVolume),this.onClickToggleVolume=null),this.options.controls&&(this.wrapperPlayer.removeEventListener("keyup",this.onKeyupEvent),this.wrapperPlayer.removeEventListener("mousemove",this.onMousemoveEvent),this.onKeyupEvent=null,this.onMousemoveEvent=null),this.options.controls&&this.options.fullscreen&&(this.wrapperPlayer.querySelector(".v-fullscreen").removeEventListener("click",this.onClickToggleFullscreen),this.wrapperPlayer.querySelector(".v-overlayVideo").removeEventListener("dblclick",this.onDblclickVideo),this.onClickToggleFullscreen=null,this.onDblclickVideo=null),window.removeEventListener(this.supportFullScreen.changeEvent,this.onChangeFullScreen)}destroy(){this.pause(),this.unBindEvents(),"function"==typeof this.unBindSpecificEvents&&this.unBindSpecificEvents(),"function"==typeof this.removeInstance&&this.removeInstance(),this.wrapperPlayer.remove()}isTouch(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch}static formatVideoTime(t){const e=1e3*t,s=e/1e3/60<<0,i=e/1e3%60<<0;let r="";return r+=s<10?"0":"",r+=s+":",r+=i<10?"0":"",r+=i}}},"./src/vlite/js/vlite.js":function(t,e,s){"use strict"; | ||
/** | ||
* @license MIT | ||
* @name vlitejs | ||
* @version 3.0.0 | ||
* @version 3.0.1 | ||
* @author: Yoriiis aka Joris DANIEL <joris.daniel@gmail.com> | ||
* @description: vLitejs is a fast and lightweight Javascript library to customize and skin native HTML5 video and Youtube video in Javascript native with a default skin | ||
* @description: vLitejs is a fast and lightweight Javascript library for customizing HTML5 and Youtube video players in Javascript with a minimalist theme | ||
* {@link https://yoriiis.github.io/vlitejs} | ||
* @copyright 2019 Joris DANIEL <https://yoriiis.github.io/vlitejs> | ||
**/Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(s("./src/vlite/js/player-youtube.js")),r=n(s("./src/vlite/js/player-html5.js"));function n(t){return t&&t.__esModule?t:{default:t}}const a={apiLoading:!1,apiReady:!1,apiReadyQueue:[]};e.default=class{constructor({selector:t,options:e,onReady:s}){this.player=null,"string"==typeof t?this.player=document.querySelector(t):"object"==typeof t&&(this.player=t),null!==this.player&&(this.options=e,this.onReady=s,this.initPlayer())}initPlayer(){this.player.hasAttribute("data-youtube-id")?a.apiReady?this.instancePlayer=new i.default({selector:this.player,options:this.options,onReady:this.onReady}):(a.apiLoading||(a.apiLoading=!0,this.loadYoutubeAPI()),a.apiReadyQueue.push({player:this.player,options:this.options,onReady:this.onReady})):this.instancePlayer=new r.default({selector:this.player,options:this.options,onReady:this.onReady})}loadYoutubeAPI(){let t=document.createElement("script");t.async=!0,t.type="text/javascript",t.src="https://youtube.com/iframe_api",window.onYouTubeIframeAPIReady=()=>{a.apiReady=!0,a.apiReadyQueue.forEach(t=>{this.instancePlayer=new i.default({selector:t.player,options:t.options,onReady:t.onReady})}),a.apiReadyQueue=[]},document.getElementsByTagName("body")[0].appendChild(t)}destroy(){this.instancePlayer.destroy()}}},"./src/vlite/svg/big-play.svg":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M16 0C7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16S24.837 0 16 0zm0 29C8.82 29 3 23.18 3 16S8.82 3 16 3s13 5.82 13 13-5.82 13-13 13zM12 9l12 7-12 7z"></path></svg>'},"./src/vlite/svg/fullscreen-exit.svg":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M24.586 27.414L29.172 32 32 29.172l-4.586-4.586L32 20H20v12zM0 12h12V0L7.414 4.586 2.875.043.047 2.871l4.539 4.543zm0 17.172L2.828 32l4.586-4.586L12 32V20H0l4.586 4.586zM20 12h12l-4.586-4.586 4.547-4.543L29.133.043l-4.547 4.543L20 0z"></path></svg>'},"./src/vlite/svg/fullscreen.svg":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M27.414 24.586L22.828 20 20 22.828l4.586 4.586L20 32h12V20zM12 0H0v12l4.586-4.586 4.543 4.539 2.828-2.828-4.543-4.539zm0 22.828L9.172 20l-4.586 4.586L0 20v12h12l-4.586-4.586zM32 0H20l4.586 4.586-4.543 4.539 2.828 2.828 4.543-4.539L32 12z"></path></svg>'},"./src/vlite/svg/pause.svg":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M4 4h10v24H4zm14 0h10v24H18z"></path></svg>'},"./src/vlite/svg/play.svg":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M6 4l20 12L6 28z"></path></svg>'},"./src/vlite/svg/volume-high.svg":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 32"><path d="M27.814 28.814a1.5 1.5 0 0 1-1.061-2.56C29.492 23.515 31 19.874 31 16.001s-1.508-7.514-4.247-10.253a1.5 1.5 0 1 1 2.121-2.121C32.179 6.932 34 11.327 34 16.001s-1.82 9.069-5.126 12.374a1.495 1.495 0 0 1-1.061.439zm-5.329-2.829a1.5 1.5 0 0 1-1.061-2.56c4.094-4.094 4.094-10.755 0-14.849a1.5 1.5 0 1 1 2.121-2.121c2.55 2.55 3.954 5.94 3.954 9.546s-1.404 6.996-3.954 9.546a1.495 1.495 0 0 1-1.061.439zm-5.328-2.828a1.5 1.5 0 0 1-1.061-2.56 6.508 6.508 0 0 0 0-9.192 1.5 1.5 0 1 1 2.121-2.121c3.704 3.704 3.704 9.731 0 13.435a1.495 1.495 0 0 1-1.061.439zM13 30a1 1 0 0 1-.707-.293L4.586 22H1a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h3.586l7.707-7.707A1 1 0 0 1 14 3v26a1.002 1.002 0 0 1-1 1z"></path></svg>'},"./src/vlite/svg/volume-mute.svg":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M13 30a1 1 0 0 1-.707-.293L4.586 22H1a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h3.586l7.707-7.707A1 1 0 0 1 14 3v26a1.002 1.002 0 0 1-1 1z"></path></svg>'}}).default})); |
{ | ||
"name": "vlitejs", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "vLitejs is a fast and lightweight Javascript library for customizing HTML5 and Youtube video players in Javascript with a minimalist theme", | ||
@@ -68,4 +68,5 @@ "keywords": [ | ||
"engines": { | ||
"node": ">=8.11.2" | ||
"node": "8.11.2", | ||
"npm": "5.6.0" | ||
} | ||
} |
@@ -7,3 +7,3 @@ <br /><p align="center"> | ||
<p align="center"> | ||
<img alt="TravisCI" src="https://img.shields.io/badge/vLitejs-v3.0.0-ff7f15.svg?style=for-the-badge"> | ||
<img alt="TravisCI" src="https://img.shields.io/badge/vLitejs-v3.0.1-ff7f15.svg?style=for-the-badge"> | ||
<a href="https://travis-ci.com/yoriiis/vlitejs"> | ||
@@ -10,0 +10,0 @@ <img alt="TravisCI" src="https://img.shields.io/travis/yoriiis/vlitejs?style=for-the-badge"> |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3573544
05
-16.67%