1const rcURL = window.location + '/ajax-admin'; 2 3jQuery(document).on('ready', function() { 4 5 let attributeURL = window.location.pathname; 6 7 jQuery.ajax({ 8 type: 'POST', 9 url: '/wp-admin/admin-ajax.php?action=call_onload', 10 data: { 11 'analytic_url': attributeURL 12 }, 13 success: function( response ) { 14 console.log( "success" ); 15 }, 16 error: function( xhr, textStatus, errorThrown ) { 17 console.log("error"); 18 } 19 }); 20}); 21 22 23jQuery(document).on('ready', function() { 24 25 jQuery('.lp-track').on('click', function() { 26 27 let attributeElement = jQuery(this).attr('lp-onclick-element'); 28 let attributeURL = window.location.pathname; 29 30 if( attributeElement == undefined || attributeElement == "" ) 31 { 32 console.dir("Fehler bei der Attributsabfrage"); 33 return; 34 } 35 36 jQuery.ajax({ 37 type: 'POST', 38 url: '/wp-admin/admin-ajax.php?action=call_onclick', 39 data: { 40 'analytic_element': attributeElement, 41 'analytic_url': attributeURL 42 }, 43 success: function( response ) { 44 console.log("success"); 45 }, 46 error: function( xhr, textStatus, errorThrown ) { 47 console.log("error"); 48 console.log(xhr.responseText); // Zeigen Sie die Fehlerantwort im Konsolenprotokoll an 49 } 50 }); 51 }); 52});
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.