HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //home/design-blogs.co.uk/public_html/wp-content/themes/newscrunch/admin/assets/js/ajax.js
jQuery(document).ready(function() {

	/* Tabs in welcome page */
	function newscrunch_welcome_page_tabs(event) {
		jQuery(event).parent().addClass("active");
	   	jQuery(event).parent().siblings().removeClass("active");
	   	var tab = jQuery(event).attr("href");
		jQuery(".newscrunch-tab-pane").not(tab).css("display", "none");
		jQuery(tab).fadeIn();
	}
    
    jQuery(".newscrunch-nav-tabs li").slice(0,1).addClass("active");

    jQuery(".newscrunch-nav-tabs a").click(function(event) {
		event.preventDefault();
		newscrunch_welcome_page_tabs(this);
    });
	   
	/* Tab Content height matches admin menu height for scrolling purpouses */
	$tab = jQuery('.newscrunch-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);
	}
	
	jQuery(".newscrunch-custom-class").click(function(event){
	   event.preventDefault();
	   jQuery('.newscrunch-nav-tabs li a[href="#changelog"]').click();
	});
});