Current File : /home/n742ef5/royalanteam.com/wp-content/plugins/Ultimate_VC_Addons/assets/js/info-box.js |
jQuery( window ).on( 'load', function ( a ) {
info_box_set_auto_height();
} );
jQuery( document ).ready( function ( a ) {
info_box_set_auto_height();
jQuery( window ).resize( function ( a ) {
info_box_set_auto_height();
} );
} );
function info_box_set_auto_height() {
jQuery( '.aio-icon-box.square_box-icon' ).each( function ( index, value ) {
const WW = jQuery( window ).width() || '';
if ( WW != '' ) {
if ( WW >= 768 ) {
const h = jQuery( this ).attr( 'data-min-height' ) || '';
if ( h != '' ) {
jQuery( this ).css( 'min-height', h );
}
} else {
jQuery( this ).css( 'min-height', 'initial' );
}
}
} );
}