403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.146
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www2/wp-content/plugins/so-widgets-bundle/widgets/price-table/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www2/wp-content/plugins/so-widgets-bundle/widgets/price-table/js/pricetable.js
/* globals jQuery, sowb */

var sowb = window.sowb || {};

jQuery( function ( $ ) {
	var setupPriceTable = function () {
		$( '.so-widget-sow-price-table' ).each( function () {
			var $priceTable = $( this );
			
			if ( ! $priceTable.is( ':visible' ) || $priceTable.data( 'initialized' ) ) {
				return $priceTable;
			}
			
			$priceTable.find( '.sow-equalize-row-heights' ).each( function () {
				var $pt = $( this );
				var equalizeHeights = function ( selector ) {
					var maxHeight = 0;
					var $elements = $pt.find( selector );
					$elements.each( function () {
						maxHeight = Math.max( maxHeight, $( this ).height() );
					} );
					$elements.height( maxHeight );
				};
				
				var maxFeatures = 0;
				$pt.find( '.ow-pt-features' ).each( function () {
					maxFeatures = Math.max( maxFeatures, $( this ).find( '.ow-pt-feature' ).length );
				} );
				
				for ( var i = 0; i < maxFeatures; i++ ) {
					equalizeHeights( '.ow-pt-feature-index-' + i );
				}
				
				var selectors = [ '.ow-pt-title', '.ow-pt-details', '.ow-pt-image', '.ow-pt-features', '.ow-pt-button' ];
				selectors.forEach( equalizeHeights );
			} );
			
			$( '.ow-pt-icon[data-icon]' ).each( function () {
				var $$ = $( this );
				var icon = $$.data( 'icon' );
				
				if ( $( '#so-pt-icon-' + icon ).length ) {
					var svg = $( '#so-pt-icon-' + icon + ' svg' ).clone().css( {
						'max-width': 24,
						'max-height': 24
					} );
					
					if ( $$.data( 'icon-color' ) !== '' ) {
						svg.find( 'path' ).css( 'fill', $$.data( 'icon-color' ) );
					}
					else {
						svg.find( 'path' ).css( 'fill', '#333333' );
					}
					
					$$.append( svg );
				}
			} );
			
			$priceTable.data( 'initialized', true );
		} );
	};
	
	setupPriceTable();
	
	$( sowb ).on( 'setup_widgets', setupPriceTable );
} );

Youez - 2016 - github.com/yon3zu
LinuXploit