PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/bilosproperties.com/wp-content/plugins/js_composer/assets/js/lib/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/bilosproperties.com/wp-content/plugins/js_composer/assets/js/lib/deprecated.js

if ( jQuery.fn.bxSlider !== undefined ) {
	jQuery( '.bxslider' ).each( function () {
		var $slider = jQuery( this );
		$slider.bxSlider( $slider.data( 'settings' ) );
	} );
}
if ( window.Swiper !== undefined ) {

	jQuery( '.swiper-container' ).each( function () {
		var $this = jQuery( this ),
			my_swiper,
			max_slide_size = 0,
			options = jQuery( this ).data( 'settings' );
		if ( options.mode === 'vertical' ) {
			$this.find( '.swiper-slide' ).each( function () {
				var height = jQuery( this ).outerHeight( true );
				if ( height > max_slide_size ) {
					max_slide_size = height;
				}
			} );
			$this.height( max_slide_size );
			$this.css( 'overflow', 'hidden' );
		}
		jQuery( window ).resize( function () {
			$this.find( '.swiper-slide' ).each( function () {
				var height = jQuery( this ).outerHeight( true );
				if ( height > max_slide_size ) {
					max_slide_size = height;
				}
			} );
			$this.height( max_slide_size );
		} );
		my_swiper = jQuery( this ).swiper( jQuery.extend( options, {
			onFirstInit: function ( swiper ) {
				if ( swiper.slides.length < 2 ) {
					$this.find( '.vc_arrow-left,.vc_arrow-right' ).hide();
				} else if ( swiper.activeIndex === 0 && swiper.params.loop !== true ) {
					$this.find( '.vc_arrow-left' ).hide();
				} else {
					$this.find( '.vc_arrow-left' ).show();
				}
			},
			onSlideChangeStart: function ( swiper ) {
				if ( swiper.slides.length > 1 && swiper.params.loop !== true ) {
					if ( swiper.activeIndex === 0 ) {
						$this.find( '.vc_arrow-left' ).hide();
					} else {
						$this.find( '.vc_arrow-left' ).show();
					}
					if ( swiper.slides.length - 1 === swiper.activeIndex ) {
						$this.find( '.vc_arrow-right' ).hide();
					} else {
						$this.find( '.vc_arrow-right' ).show();
					}
				}
			}
		} ) );
		$this.find( '.vc_arrow-left' ).click( function ( e ) {
			e.preventDefault();
			my_swiper.swipePrev();
		} );
		$this.find( '.vc_arrow-right' ).click( function ( e ) {
			e.preventDefault();
			my_swiper.swipeNext();
		} );
		my_swiper.reInit();
	} );

}