403Webshell
Server IP : 38.190.208.107  /  Your IP : 216.73.217.46
Web Server : nginx/1.28.1
System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64
User : root ( 0)
PHP Version : 8.2.28
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/wp.3/wp-content/plugins/Ultimate_VC_Addons/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/wp.3/wp-content/plugins/Ultimate_VC_Addons/assets/js/flip-box.js
( function ( $, window, undefined ) {
	$( window ).on( 'load', function ( a ) {
		flip_box_set_auto_height();
	} );

	$( document ).ready( function ( a ) {
		flip_box_set_auto_height();
	} );

	$( window ).on( 'resize', function ( a ) {
		flip_box_set_auto_height();
	} );

	function flip_box_set_auto_height() {
		$( '.flip-box' ).each( function ( index, value ) {
			const bodywidth = $( document ).width();
			const WW = window.innerWidth;

			if ( WW != '' ) {
				// For desktops
				if ( WW >= 768 ) {
					var h = $( this ).attr( 'data-min-height' ) || '';

					if ( h != '' ) {
						if ( $( this ).hasClass( 'ifb-custom-height' ) ) {
							$( this ).css( 'min-height', h );
							$( this ).css( 'height', h );

							if (
								$( this )
									.find( '.ifb-back' )
									.find( '.ifb-flip-box-section' )
									.hasClass(
										'ifb-flip-box-section-vertical-middle'
									)
							) {
								var back = $( this )
									.find( '.ifb-back' )
									.outerHeight();
								var backsection = $( this )
									.find( '.ifb-back' )
									.find( '.ifb-flip-box-section' )
									.outerHeight();

								back = parseInt( h );
								backsection = parseInt( backsection );

								//
								if ( backsection >= back ) {
									$( this )
										.find( '.ifb-back' )
										.find( '.ifb-flip-box-section' )
										.addClass( 'ifb_disable_middle' );
								}
							}

							if (
								$( this )
									.find( '.ifb-front' )
									.find( '.ifb-flip-box-section' )
									.hasClass(
										'ifb-flip-box-section-vertical-middle'
									)
							) {
								var front = $( this )
									.find( '.ifb-front' )
									.outerHeight();
								front = parseInt( h );
								var frontsection = $( this )
									.find( '.ifb-front' )
									.find( '.ifb-flip-box-section' )
									.outerHeight();
								frontsection = parseInt( frontsection );

								if ( frontsection >= front ) {
									$( this )
										.find( '.ifb-front' )
										.find( '.ifb-flip-box-section' )
										.addClass( 'ifb_disable_middle' );
								}
							}
						}
					} else if ( $( this ).hasClass( 'ifb-jq-height' ) ) {
						var ht1 = $( this )
							.find( '.ifb-back' )
							.find( '.ifb-flip-box-section' )
							.outerHeight();
						ht1 = parseInt( ht1 );
						var ht2 = $( this )
							.find( '.ifb-front' )
							.find( '.ifb-flip-box-section' )
							.outerHeight();
						ht2 = parseInt( ht2 );

						if ( ht1 >= ht2 ) {
							$( this ).find( '.ifb-face' ).css( 'height', ht1 );
						} else {
							$( this ).find( '.ifb-face' ).css( 'height', ht2 );
						}
					} else if ( $( this ).hasClass( 'ifb-auto-height' ) ) {
						if (
							$( this )
								.find( '.ifb-back' )
								.find( '.ifb-flip-box-section' )
								.hasClass(
									'ifb-flip-box-section-vertical-middle'
								)
						) {
							var back = $( this )
								.find( '.ifb-back' )
								.outerHeight();
							back = parseInt( back );
							var backsection = $( this )
								.find( '.ifb-back' )
								.find( '.ifb-flip-box-section' )
								.outerHeight();
							backsection = parseInt( backsection );

							if ( backsection >= back ) {
								$( this )
									.find( '.ifb-back' )
									.find( '.ifb-flip-box-section' )
									.addClass( 'ifb_disable_middle' );
							}
						}
					}
				}
				// For Mobiles
				else {
					var h = $( this ).attr( 'data-min-height' ) || '';
					//	for style - 9
					if ( $( this ).hasClass( 'style_9' ) ) {
						$( this ).css( 'height', 'initial' );
						const f1 = $( this )
							.find( '.ifb-front-1 .ifb-front' )
							.outerHeight();
						const f2 = $( this )
							.find( '.ifb-back-1 .ifb-back' )
							.outerHeight();
						//	set largest height - of either front or back
						if ( f1 > f2 ) {
							$( this ).css( 'height', f1 );
						} else {
							$( this ).css( 'height', f2 );
						}
					} else if ( $( this ).hasClass( 'ifb-jq-height' ) ) {
						var ht1 = $( this )
							.find( '.ifb-back' )
							.find( '.ifb-flip-box-section' )
							.outerHeight();
						ht1 = parseInt( ht1 );
						var ht2 = $( this )
							.find( '.ifb-front' )
							.find( '.ifb-flip-box-section' )
							.outerHeight();
						ht2 = parseInt( ht2 );
						if ( ht1 >= ht2 ) {
							$( this ).find( '.ifb-face' ).css( 'height', ht1 );
						} else {
							$( this ).find( '.ifb-face' ).css( 'height', ht2 );
						}
					} else if ( $( this ).hasClass( 'ifb-auto-height' ) ) {
						if (
							$( this )
								.find( '.ifb-back' )
								.find( '.ifb-flip-box-section' )
								.hasClass(
									'ifb-flip-box-section-vertical-middle'
								)
						) {
							var back = $( this )
								.find( '.ifb-back' )
								.outerHeight();
							var backsection = $( this )
								.find( '.ifb-back' )
								.find( '.ifb-flip-box-section' )
								.outerHeight();

							back = parseInt( back );
							backsection = parseInt( backsection );

							if ( backsection > back ) {
								$( this )
									.find( '.ifb-back' )
									.find( '.ifb-flip-box-section' )
									.addClass( 'ifb_disable_middle' );
							}
						}
					} else if ( $( this ).hasClass( 'ifb-custom-height' ) ) {
						if ( h != '' ) {
							$( this ).css( 'min-height', h );
							$( this ).css( 'height', h );
							if (
								$( this )
									.find( '.ifb-back' )
									.find( '.ifb-flip-box-section' )
									.hasClass(
										'ifb-flip-box-section-vertical-middle'
									)
							) {
								var back = $( this )
									.find( '.ifb-back' )
									.outerHeight();
								back = parseInt( back );
								var backsection = $( this )
									.find( '.ifb-back' )
									.find( '.ifb-flip-box-section' )
									.outerHeight();
								backsection = parseInt( backsection );

								if ( backsection >= back ) {
									$( this )
										.find( '.ifb-back' )
										.find( '.ifb-flip-box-section' )
										.addClass( 'ifb_disable_middle' );
								}
							}

							if (
								$( this )
									.find( '.ifb-front' )
									.find( '.ifb-flip-box-section' )
									.hasClass(
										'ifb-flip-box-section-vertical-middle'
									)
							) {
								var front = $( this )
									.find( '.ifb-front' )
									.outerHeight();
								front = parseInt( front );
								var frontsection = $( this )
									.find( '.ifb-front' )
									.find( '.ifb-flip-box-section' )
									.outerHeight();
								frontsection = parseInt( frontsection );

								if ( frontsection >= front ) {
									$( this )
										.find( '.ifb-front' )
										.find( '.ifb-flip-box-section' )
										.addClass( 'ifb_disable_middle' );
								} else {
									$( this )
										.find( '.ifb-front' )
										.find( '.ifb-flip-box-section' )
										.addClass( 'ifb_disable_middle' );
								}
							}
						}
					} else {
						$( this ).css( 'height', 'initial' );
					}
				}
			}
		} );
	}
} )( jQuery, window );

Youez - 2016 - github.com/yon3zu
LinuXploit