1jQuery(document).ready(function() { 2 3 // Only show the #pmpromd_map_optin if the pmpromd_hide_directory is unchecked. 4 if ( jQuery('#pmpromd_hide_directory').length ) { 5 6 if ( jQuery('#pmpromd_hide_directory').is(':checked') ) { 7 jQuery('#pmpromd_map_optin').closest('div').hide(); 8 jQuery('.pmpromd-map-address-field').closest('div').hide(); 9 } 10 11 jQuery('#pmpromd_hide_directory').on('change', function() { 12 if ( jQuery(this).is(':checked') ) { 13 jQuery('#pmpromd_map_optin').closest('div').hide(); 14 jQuery('.pmpromd-map-address-field').closest('div').hide(); 15 } else { 16 jQuery('#pmpromd_map_optin').closest('div').show(); 17 if( jQuery('#pmpromd_map_optin').is(':checked') ) { 18 jQuery('.pmpromd-map-address-field').closest('div').show(); 19 } 20 } 21 }); 22 } 23 24 // Initially hide the address fields if the checkbox is not checked 25 if (!jQuery('#pmpromd_map_optin').is(':checked')) { 26 jQuery('.pmpromd-map-address-field').closest('div').hide(); 27 } 28 29 // Toggle visibility when the checkbox state changes 30 jQuery('#pmpromd_map_optin').on('change', function() { 31 if (jQuery(this).is(':checked')) { 32 jQuery('.pmpromd-map-address-field').closest('div').show(); 33 } else { 34 jQuery('.pmpromd-map-address-field').closest('div').hide(); 35 } 36 }); 37});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.