HEX
Server: Apache
System: Linux flamboyant-gauss.194-164-62-186.plesk.page 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: gamesamphora (10001)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/amphoragames.com/httpdocs/wp-content/themes/ibuki/framework/assets/js/az-meta.js
jQuery(document).ready(function($){
	
	var selectedScheme = 'disabled';
	
	if ($('#_az_header_settings').hasClass('disabled')){
		$('.form-table.az-metabox-table.az-metabox-page-header tr:not(:first-child)').hide();
		$('.form-table.az-metabox-table.az-metabox-post-header tr:not(:first-child)').hide();
	}
       
    $('#_az_header_settings').on('change', function(){
		$(this).removeClass(selectedScheme).addClass($(this).val());
		selectedScheme = $(this).val();
		
		if ($('#_az_header_settings').hasClass('disabled')){
			$('.form-table.az-metabox-table.az-metabox-page-header tr:not(:first-child)').fadeOut("slow");
			$('.form-table.az-metabox-table.az-metabox-post-header tr:not(:first-child)').fadeOut("slow");
		} else {
			$('.form-table.az-metabox-table.az-metabox-page-header tr:not(:first-child)').fadeIn("slow");
			$('.form-table.az-metabox-table.az-metabox-post-header tr:not(:first-child)').fadeIn("slow");
		}
	});

	if ($('#_az_header_text').hasClass('disabled')){
		$('.form-table.az-metabox-table.az-metabox-page-header').find('#_az_header_text').parent().parent().nextAll('tr').hide();
		$('.form-table.az-metabox-table.az-metabox-post-header').find('#_az_header_text').parent().parent().nextAll('tr').hide();
	}

    $('#_az_header_text').on('change', function(){
		$(this).removeClass(selectedScheme).addClass($(this).val());
		selectedScheme = $(this).val();
		
		if ($('#_az_header_text').hasClass('disabled')){
			$(this).parent().parent().nextAll('tr').fadeOut("slow");
		} else {
			$(this).parent().parent().nextAll('tr').fadeIn("slow");
		}
	});

   function checkField(){
	   $('.az_meta_subfield').parents('tr').addClass('subfield_master');
	   if ($('.az_meta_checker').is(':checked')) {
			$('tr.subfield_master').addClass('showed');
	   } else {
	   		$('tr.subfield_master').addClass('hided');
	   }
   }

   $('.az_meta_checker').on('change', function(){
   		if ($(this).is(':checked')) {
   			$('tr.subfield_master').removeClass('hided').addClass('showed');
	  	} else {
	  		$('tr.subfield_master').removeClass('showed').addClass('hided');
	  	}
	});
	
	$('#post-formats-select input').change(checkFormat);

	$('#mymetabox_revslider_0').hide();

	function checkFormat(){
		var format = $('#post-formats-select input:checked').attr('value');
		
		if(typeof format != 'undefined'){
			
			if(format == 'gallery'){
				$('#poststuff div[id$=slide][id^=post]').stop(true,true).fadeIn(500);
			}
			
			else {
				$('#poststuff div[id$=slide][id^=post]').stop(true,true).fadeOut(500);
			}
			
			$('#post-body div[id^=az-metabox-post-]').hide();
			$('#post-body div[id^=az-metabox-post-header]').show();
			$('#post-body #az-metabox-post-'+format+'').stop(true,true).fadeIn(500);
					
		}
	
	}

	function toggleSectionComposer(){
		$('body').delegate('.hide_row', 'click', function(){
			$(this).toggleClass('view');
			$(this).parents('.wpb_vc_row').find('.wpb_vc_column').eq(0).fadeToggle(150);
			return false;
		});
	}
	
	toggleSectionComposer();
	
	$(window).load(function(){
		checkFormat();
		checkField();
	})
	
	$('#poststuff div[id$=slide][id^=post]').hide();
});