1/** 2 * APB Post View Tracker 3 * Tracks post views via AJAX. 4 * 5 * @package APB 6 */ 7(function () { 8 if (window.apbViewTracked) { 9 return; 10 } 11 window.apbViewTracked = true; 12 13 const { ajaxUrl, nonce, postId } = apbPostViewTracker; 14 15 document.addEventListener('DOMContentLoaded', function () { 16 fetch(ajaxUrl, { 17 method: 'POST', 18 headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, 19 body: `action=apb_post_view&post_id=${postId}&nonce=${nonce}` 20 }); 21 }); 22})();
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.