| 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 : |
CNVS.SliderDimensions = function() {
var __core = SEMICOLON.Core;
var __base = SEMICOLON.Base;
return {
init: function(selector) {
selector = __core.getSelector( selector, false );
if( selector.length < 1 ){
return true;
}
var slider = document.querySelector('.slider-element'),
sliderParallaxEl = document.querySelector('.slider-parallax'),
body = __core.getVars.elBody,
parallaxElHeight = sliderParallaxEl?.offsetHeight,
parallaxElWidth = sliderParallaxEl?.offsetWidth,
slInner = sliderParallaxEl?.querySelector('.slider-inner'),
slSwiperW = slider.querySelector('.swiper-wrapper'),
slSwiperS = slider.querySelector('.swiper-slide'),
slFlexHeight = slider.classList.contains('h-auto') || slider.classList.contains('min-vh-0');
if( body.classList.contains('device-up-lg') ) {
setTimeout(function() {
if( slInner ) {
slInner.style.height = parallaxElHeight + 'px';
}
if( slFlexHeight ) {
parallaxElHeight = slider.querySelector('.slider-inner')?.querySelector('*').offsetHeight;
slider.style.height = parallaxElHeight + 'px';
if( slInner ) {
slInner.style.height = parallaxElHeight + 'px';
}
}
}, 500);
if( slFlexHeight && slSwiperS ) {
var slSwiperFC = slSwiperS.querySelector('*');
if( slSwiperFC.classList.contains('container') || slSwiperFC.classList.contains('container-fluid') ) {
slSwiperFC = slSwiperFC.querySelector('*');
}
if( slSwiperFC.offsetHeight > slSwiperW.offsetHeight ) {
slSwiperW.style.height = 'auto';
}
}
if( body.classList.contains('side-header') && slInner ) {
slInner.style.width = parallaxElWidth + 'px';
}
if( !body.classList.contains('stretched') ) {
parallaxElWidth = __core.getVars.elWrapper.offsetWidth;
if( slInner ) {
slInner.style.width = parallaxElWidth + 'px';
}
}
} else {
if( slSwiperW ) {
slSwiperW.style.height = '';
}
if( sliderParallaxEl ) {
sliderParallaxEl.style.height = '';
}
if( slInner ) {
slInner.style.width = '';
slInner.style.height = '';
}
}
__core.getVars.resizers.sliderdimensions = function() {
__base.sliderDimensions();
};
}
};
}();