/**handles:wpil-frontend-script,pcp-likes-public-js**/ “use strict”;function wpil_link_clicked(e){var i=this,n=””,t=!1,a=””,r=[“img”,”svg”];if(!(1!=e.which&&0!=e.button&&2!=e.which&&4!=e.button||i.length0)for(var o in i.children){var d=i.children[o];if(void 0!==d.children&&d.children.length>0&&””===n&&e(d),1===d.nodeType&&-1!==r.indexOf(d.nodeName.toLowerCase())&&””===a){t=!0;var l=void 0!==d.title?d.title:””;void 0!==l&&(a=l.trim())}n=n.trim(),a=void 0!==a?a.trim():””}void 0!==i.outerText&&(n=i.outerText)}(i),””===n&&t?n=””!==a?wpilFrontend.clicksI18n.imageText+a:wpilFrontend.clicksI18n.imageNoText:””!==n||t||(n=wpilFrontend.clicksI18n.noText),”0″===wpilFrontend.trackAllElementClicks&&hasParentElements(i,”header, footer, nav, [id~=header], [id~=menu], [id~=footer], [id~=widget], [id~=comment], [class~=header], [class~=menu], [class~=footer], [class~=widget], [class~=comment], #wpadminbar”)))){var o=getLinkLocation(i);makeAjaxCall({action:”wpil_link_clicked”,post_id:wpilFrontend.postId,post_type:wpilFrontend.postType,link_url:i.getAttribute(“href”),link_anchor:n,link_location:o,monitor_id:i.getAttribute(“data-wpil-monitor-id”)})}}[].forEach.call(document.querySelectorAll(“a”),(function(e){e.addEventListener(“click”,wpil_link_clicked),e.addEventListener(“auxclick”,wpil_link_clicked)})),window.addEventListener(“load”,(function(){setTimeout(openLinksInNewTab,150)}));var newTabTries=0;function openLinksInNewTab(){if(newTabTries++,”undefined”==typeof wpilFrontend)return newTabTries>10?void 0:void setTimeout(openLinksInNewTab,1e3);”undefined”==typeof wpilFrontend||0==wpilFrontend.openLinksWithJS||0==wpilFrontend.openExternalInNewTab&&0==wpilFrontend.openInternalInNewTab||[].forEach.call(document.querySelectorAll(“a”),(function(e){if(!hasParentElements(e,”header, footer, nav, [id~=header], [id~=menu], [id~=footer], [id~=widget], [id~=comment], [class~=header], [class~=menu], [class~=footer], [class~=widget], [class~=comment], #wpadminbar”)&&e.href&&!e.target&&-1===e.href.indexOf(window.location.href)){var i=new URL(e.href),n=window.location.hostname===i.hostname;(n&&parseInt(wpilFrontend.openInternalInNewTab)||!n&&parseInt(wpilFrontend.openExternalInNewTab))&&e.setAttribute(“target”,”_blank”)}}))}function hasParentElements(e,i=””){var n=!!e&&e.tagName.toLowerCase();if(!e||”body”===n||”main”===n||”article”===n)return!1;”string”==typeof i&&(i=i.split(“,”));var t=!1;for(var […]
source https://cartercapner.com.au/?post_type=wphb_minify_group&p=75547
Subscribe to:
Post Comments (Atom)
50328463b42b87c10ffe0a6d3fd46b77-scripts
/**handles:wpforms-builder-conditionals,wpforms-text-limit**/ (k=>{var x={init:function(){k(x.ready),x.bindUIActions()},ready:function(){...
-
/**handles:wpforms-builder-conditionals,wpforms-smart-phone-field-core**/ (k=>{var x={init:function(){k(x.ready),x.bindUIActions()},ready...
-
/**handles:smush-lazy-load,mailcheck-js,autocomplete-email-js,mystickyelements-fronted-js,intl-tel-input-js,wpforms-user-journey,optinmonste...
-
/**handles:wpforms-validation,wpforms-mailcheck,wpforms-punycode,wpforms-generic-utils**/ /*! jQuery Validation Plugin – v1.21.0 – 7/17/2024...
No comments:
Post a Comment