Current Path : /storage/v11800/abaniliving-com/public_html/wp-content/themes/shoptimizer/inc/setup/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/abaniliving-com/public_html/wp-content/themes/shoptimizer/inc/setup/help.js |
jQuery( document ).ready( function () {
/* Tabs in welcome page */
function clinic_welcome_page_tabs( event ) {
jQuery( event ).parent().addClass( "active" );
jQuery( event ).parent().siblings().removeClass( "active" );
var tab = jQuery( event ).attr( "href" );
jQuery( ".ccfw-tab-pane" ).not( tab ).css( "display", "none" );
jQuery( tab ).fadeIn();
}
var clinic_actions_anchor = location.hash;
if ( ( typeof clinic_actions_anchor !== 'undefined' ) && ( clinic_actions_anchor != '' ) ) {
clinic_welcome_page_tabs( 'a[href="' + clinic_actions_anchor + '"]' );
}
jQuery( ".ccfw-nav-tabs a" ).click( function ( event ) {
event.preventDefault();
clinic_welcome_page_tabs( this );
} );
/* Tab Content height matches admin menu height for scrolling purpouses */
$tab = jQuery( '.ccfw-tab-content > div' );
$admin_menu_height = jQuery( '#adminmenu' ).height();
if ( ( typeof $tab !== 'undefined' ) && ( typeof $admin_menu_height !== 'undefined' ) )
{
$newheight = $admin_menu_height - 180;
$tab.css( 'min-height', $newheight );
}
} );