1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10(function ($) { 11 $(document).ready(function () { 12 function handleAnchorClick(event) { 13 var linkUrl = $(this).attr("href"); 14 var anchorText = $(this).text(); 15 var pageUrl = window.location.href; 16 17 if (linkUrl) { 18 // Create a new entry 19 $.ajax({ 20 url: seo_metrics_ajax_object.ajaxurl, // WordPress AJAX endpoint 21 type: "POST", 22 data: { 23 action: "seo_metrics_create_click_entry", 24 link_url: linkUrl, 25 anchor_text: anchorText, 26 page_url: pageUrl, 27 }, 28 success: function () { 29 // Proceed with the link click 30 window.location.href = linkUrl; 31 }, 32 }); 33 } 34 35 // Prevent the default link behavior 36 event.preventDefault(); 37 } 38 39 // Attach the click event to all anchor links 40 $("a").on("click", handleAnchorClick); 41 }); 42})(jQuery); 43 44}
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.