AlkantarClanX12

Your IP : 3.12.146.100


Current Path : /home/thanudqk/siamfreetour.com/wp-content/themes/spiko/admin/assets/js/
Upload File :
Current File : //home/thanudqk/siamfreetour.com/wp-content/themes/spiko/admin/assets/js/ajax.js

jQuery(document).ready(function() {

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

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

});