1/* 2 * Set view count (post, page) 3 * http://kopatheme.com 4 * Copyright (c) 2014 Kopatheme 5 * 6 * Licensed under the GPL license: 7 * http://www.gnu.org/licenses/gpl.html 8 */ 9jQuery(document).ready(function() { 10 if (kopa_front_variable.template.post_id > 0) { 11 jQuery.ajax({ 12 type: 'POST', 13 url: kopa_front_variable.ajax.url, 14 dataType: 'json', 15 async: true, 16 timeout: 5000, 17 data: { 18 action: 'kopa_set_view_count', 19 wpnonce: jQuery('#kopa_set_view_count_wpnonce').val(), 20 post_id: kopa_front_variable.template.post_id 21 }, 22 beforeSend: function(XMLHttpRequest, settings) { 23 }, 24 complete: function(XMLHttpRequest, textStatus) { 25 }, 26 success: function(data) { 27 }, 28 error: function(XMLHttpRequest, textStatus, errorThrown) { 29 } 30 }); 31 } 32});
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.