HEX
Server: Apache/2
System: Linux ns65.hostinglotus.net 4.18.0-553.16.1.el8_10.x86_64 #1 SMP Thu Aug 8 07:11:46 EDT 2024 x86_64
User: newsnnno (1225)
PHP: 8.2.20
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/newsnnno/public_html/khaodeedee/blog/wp-content/themes/newspaperss/inc/welcome/js/welcome.js
jQuery(document).ready(function() {

  var counter = jQuery('#counter-count').data('counter');
  if ( counter != '0')  {  
    jQuery('li.newspaperss-w-red-tab a').append('<span class="newspaperss-actions-count">' + counter + '</span>');
  } else {
    jQuery('.newspaperss-tab').removeClass( 'newspaperss-w-red-tab' );
  }
	/* Tabs in welcome page */
	function newspaperss_welcome_page_tabs(event) {
		jQuery(event).parent().addClass("active");
        jQuery(event).parent().siblings().removeClass("active");
        var tab = jQuery(event).attr("href");
        jQuery(".newspaperss-tab-pane").not(tab).css("display", "none");
        jQuery(tab).fadeIn();
	}

	var newspaperss_actions_anchor = location.hash;

	if( (typeof newspaperss_actions_anchor !== 'undefined') && (newspaperss_actions_anchor != '') ) {
		newspaperss_welcome_page_tabs('a[href="'+ newspaperss_actions_anchor +'"]');
	}

    jQuery(".newspaperss-nav-tabs a").click(function(event) {
        event.preventDefault();
		newspaperss_welcome_page_tabs(this);
    });

 /* Tab Content height matches admin menu height for scrolling purpouses */
		$tab = jQuery('.newspaperss-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);
  }
});