1jQuery(document).ready(function($){ 2 3 $('#detect_btn').click(function(){ 4 5 var site_url = $('#site_url').val(); 6 7 $('#result').html("Detecting..."); 8 9 $.ajax({ 10 url: awptd_ajax.ajax_url, 11 type: 'POST', 12 data: { 13 action: 'awptd_detect', 14 site_url: site_url, 15 nonce: awptd_ajax.nonce 16 }, 17 success: function(response){ 18 19 if(response.success){ 20 21 var data = response.data; 22 23 $('#result').html( 24 "<h3>Detection Result</h3>" + 25 "<p><strong>Theme Slug:</strong> " + data.theme_slug + "</p>" + 26 "<p><strong>Theme Name:</strong> " + data.theme_name + "</p>" + 27 "<p><strong>Author:</strong> " + data.author + "</p>" + 28 "<p><strong>Version:</strong> " + data.version + "</p>" + 29 "<p><strong>WordPress Version:</strong> " + data.wp_version + "</p>" 30 ); 31 32 } else { 33 $('#result').html("<p style='color:red'>" + response.data + "</p>"); 34 } 35 } 36 }); 37 38 }); 39 40});
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.