[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: hs-video-player.min.js
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.HSVideoPlayer=t():e.HSVideoPlayer=t()}(window,(function(){return function(e){var t={};function o(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=t,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="./src/js/hs-video-player.js")}({"./src/js/hs-video-player.js": /*!***********************************!*\ !*** ./src/js/hs-video-player.js ***! \***********************************/ /*! exports provided: default */function(e,t,o){"use strict";function i(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}o.r(t),o.d(t,"default",(function(){return r})); /* * HSVideoPlayer Plugin * @version: 3.0.0 (Wed, 17 Mar 2021) * @author: HtmlStream * @event-namespace: .HSVideoPlayer * @license: Htmlstream Libraries (https://htmlstream.com/) * Copyright 2021 Htmlstream */ var n={parentSelector:null,targetSelector:null,classMap:{toggle:"video-player-played"},videoType:"you-tube",videoId:null,isAutoplay:!1,isMuted:!1,youTubeAPISrc:"//www.youtube.com/player_api",isYouTubeAPICreated:!1,vimeoAPISrc:"//player.vimeo.com/api/player.js",isVimeoAPICreated:!1},r=function(){function e(t,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.collection=[];var n;n=t instanceof HTMLElement?[t]:t instanceof Object?t:document.querySelectorAll(t);for(var r=0;r<n.length;r+=1)this.addToCollection(n[r],o,i||n[r].id);return!!this.collection.length&&(this._init(),this)}var t,o,r;return t=e,(o=[{key:"_init",value:function(){for(var e=this,t=function(t){var o,i=void 0;if(e.collection[t].hasOwnProperty("$initializedEl"))return"continue";i=e.collection[t].$el,"you-tube"===(o=e.collection[t].options).videoType&&e._youTubeAPI(i,o),"vimeo"===o.videoType&&e._vimeoAPI(i,o),i.addEventListener("click",(function(){document.querySelector(o.parentSelector).classList.toggle(o.classMap.toggle),"vimeo"===o.videoType?e._vimeoPlayer(i,o):"html5"===o.videoType?e._html5Player(i,o):e._youTubePlayer(i,o)})),e.collection[t].$initializedEl=o},o=0;o<e.collection.length;o+=1)t(o)}},{key:"_youTubeAPI",value:function(e,t){if(!t.isYouTubeAPICreated){var o=document.createElement("script"),i=document.getElementsByTagName("script")[0];o.src=t.youTubeAPISrc,i.parentNode.insertBefore(o,i),t.isYouTubeAPICreated=!0}}},{key:"_vimeoAPI",value:function(e,t){if(!t.isVimeoAPICreated){var o=document.createElement("script"),i=document.querySelector("script");o.src=t.vimeoAPISrc,i.parentNode.insertBefore(o,i),t.isVimeoAPICreated=!0}}},{key:"_youTubePlayer",value:function(e,t){var o=Object.assign({},{videoId:t.videoId,playerVars:{origin:window.location.origin,autoplay:!0===t.isAutoplay?1:0}},t.specificAPIOptions);new YT.Player(t.targetSelector.slice(1,t.targetSelector.length),o)}},{key:"_vimeoPlayer",value:function(e,t){var o=Object.assign({},{id:t.videoId,autoplay:!0===t.isAutoplay?1:0,muted:!0===t.isMuted?1:0},t.specificAPIOptions),i=document.getElementById(t.targetSelector.slice(1,t.targetSelector.length));new Vimeo.Player(i,o).on("loaded",(function(){var e=i.querySelector("iframe");e.style.height="100%",e.style.width="100%"}))}},{key:"_html5Player",value:function(e,t){document.querySelector(t.targetSelector).insertAdjacentHTML("beforeend",'\n\t\t\t\t<video class="pfx-hero-bg-video__item" style="width:100%;height:100%;" playsinline '.concat(!0===t.isAutoplay?"autoplay ":"").concat(!0===t.isMuted?"muted ":"").concat(!0===t.isLoop?"loop":"",'>\n\t\t\t\t\t<source src="').concat(t.videoId,'.mp4" type="video/mp4">\n\t\t\t\t\t<source src="').concat(t.videoId,'.ogg" type="video/ogg">\n\t\t\t\t\t<source src="').concat(t.videoId,'.webm" type="video/webm">\n\t\t\t\t\tYour browser doesn\'t support HTML5 video tag.\n\t\t\t\t</video>'))}},{key:"addToCollection",value:function(e,t,o){this.collection.push({$el:e,id:o||null,options:Object.assign({},n,e.hasAttribute("data-hs-video-player-options")?JSON.parse(e.getAttribute("data-hs-video-player-options")):{},t)})}},{key:"getItem",value:function(e){return"number"==typeof e?this.collection[e].$initializedEl:this.collection.find((function(t){return t.id===e})).$initializedEl}}])&&i(t.prototype,o),r&&i(t,r),e}()}}).default})); //# sourceMappingURL=hs-video-player.min.js.map
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.73 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002