403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.216.11
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/home2/domains/nycyouth/js/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/home2/domains/nycyouth/js/modules/fullvideo.js
CNVS.FullVideo = function() {
	var __core = SEMICOLON.Core;
	var __modules = SEMICOLON.Modules;

	return {
		init: function(selector) {
			if( __core.getSelector(selector, false, false).length < 1 ){
				return true;
			}

			__core.initFunction({ class: 'has-plugin-html5video', event: 'pluginHtml5VideoReady' });

			selector = __core.getSelector( selector, false, false );
			if( selector.length < 1 ){
				return true;
			}

			selector.forEach( function(element) {
				var elVideo = element.querySelector('video'),
					elRatio = element.getAttribute('data-ratio') || '16/9';

				if( !elVideo ) {
					return true;
				}

				elRatio = elRatio.split('/');

				elVideo.style.left = '';
				elVideo.style.top = '';

				var divWidth = element.offsetWidth,
					divHeight = element.offsetHeight,
					elWidth = ( Number(elRatio[0])*divHeight)/Number(elRatio[1]),
					elHeight = divHeight;

				if( elWidth < divWidth ) {
					elWidth = divWidth;
					elHeight = (Number(elRatio[1])*divWidth)/Number(elRatio[0]);
				}

				elVideo.style.width = elWidth + 'px';
				elVideo.style.height = elHeight + 'px';

				if( elHeight > divHeight ) {
					elVideo.style.left = '';
					elVideo.style.top = -( ( elHeight - divHeight )/2 ) + 'px';
				}

				if( elWidth > divWidth ) {
					elVideo.style.left = -( ( elWidth - divWidth )/2 ) + 'px';
					elVideo.style.top = '';
				}

				if( SEMICOLON.Mobile.any() && !element.classList.contains('no-placeholder') ) {
					var placeholderImg = elVideo.getAttribute('poster');

					if( placeholderImg != '' ) {
						element.innerHTML += '<div class="video-placeholder" style="background-image: url('+ placeholderImg +');"></div>';
					}

					elVideo.classList.add('d-none');
				}
			});

			__core.getVars.resizers.html5video = function() {
				__modules.html5Video();
			};
		}
	};
}();

Youez - 2016 - github.com/yon3zu
LinuXploit