1/** 2 * @var object stm_gdpr_vars 3 */ 4jQuery(document).ready(function ($) { 5 6 $('#stm_gdpr_popup_accept').bind('click', acceptAction); 7 8 function acceptAction(e) { 9 e.preventDefault(); 10 jQuery.post(stm_gdpr_vars.AjaxUrl, {"action": "stm_gdpr_cookie_accept"}); 11 jQuery('#stm_gdpr_popup-main').fadeOut(); 12 } 13 14 $('#stm-gpdr-form').on('submit', function(event) { 15 event.preventDefault(); 16 17 var data = { 18 'action': 'stm_gpdr_data_request', 19 'stm_gpdr_data_type' : $( 'input[name=stm_gpdr_data_type]:checked', '#stm-gpdr-form').val(), 20 'stm_gpdr_data_email': $( '#stm_gpdr_data_email' ).val(), 21 }; 22 23 $( '.stm-gdpr-errors' ).remove(); 24 $( '.stm-gdpr-success' ).remove(); 25 26 $.ajax({ 27 url: stm_gdpr_vars.AjaxUrl, 28 type: 'post', 29 data: data, 30 success: function( response ) { 31 if ( 'success' !== response.data ) { 32 $('#stm-gpdr-form').append( '<div class="stm-gdpr-errors" style="display:none;">' + stm_gdpr_vars.error_prefix + '<br />' + response.data + '</div>' ); 33 $('.stm-gdpr-errors').slideDown(); 34 } else { 35 $('#stm-gpdr-form').append( '<div class="stm-gdpr-success" style="display:none;">' + stm_gdpr_vars.success + '</div>' ); 36 $('.stm-gdpr-success').slideDown(); 37 } 38 } 39 }); 40 }); 41 42});
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.