HEX
Server: Apache/2.4.54 (Debian)
System: Linux a5825d2beacc 4.15.0-197-generic #208-Ubuntu SMP Tue Nov 1 17:23:37 UTC 2022 x86_64
User: root (0)
PHP: 8.1.14
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/themes/Divi/js/admin_post_settings.js
(function($){
	$(document).ready(function() {
		var $post_format          = $('input[name="post_format"]'),
			$settings             = $('.et_divi_format_setting'),
			$use_bg_color_setting = $('#et_post_use_bg_color');

		$('.color-picker-hex').wpColorPicker();

		$post_format.change( function() {
			var $this = $(this);

			$settings.hide();

			$( '.et_divi_format_setting' + '.et_divi_' + $this.val() + '_settings' ).show();

			$use_bg_color_setting.trigger( 'change' );
		} );

		$use_bg_color_setting.change( function() {
			var $this = $(this);

			$( '.et_post_bg_color_setting' ).toggle( $this.is(':checked') );
		} );

		$post_format.filter(':checked').trigger( 'change' );
	});
})(jQuery);