PageSourceSearch

https://www.lafbnetwork.com/wp-content/plugins/tpd-addons/blocks/c…/inc/js/comments-cta.min.js?ver=1.95

js lafbnetwork.com collected 2026-10-02 06:37:25 UTC 1,909 bytes, 1 lines download raw bytes

1(()=>{const t=window,e=document;var n=t.tpdCommentsCTA,o={getCommentingElementSelector:function(){let t=["#comments-container","#tpd-comments-container","#bottom-addons-container","#mvp-comments-button","#comments"];for(let e=0,n=t.length;e<n;e++){let n=document.querySelector(t[e]);if(n)return n.style.scrollMarginTop="60px",t[e]}return null},getAnchorCTAElements:function(){return e.querySelectorAll(".comments-cta-anchor")},updateAnchorLinks:function(){let n=o.getCommentingElementSelector();if(!n)return;let s=o.getAnchorCTAElements();s.length&&(t.tpd=t.tpd||{},t.tpd.scrollIntoViewOfCommentingForTpdTheme=(t=>{t.preventDefault(),e.querySelector(n).scrollIntoView({behavior:"smooth",block:"start"});let o=e.getElementById("mvp-comments-button");o&&o.click()}),s.forEach(t=>{t.addEventListener("click",window.tpd.scrollIntoViewOfCommentingForTpdTheme)}),s.forEach(t=>{t.setAttribute("data-google-interstitial","false")}))},updateComments:function(t){for(var n=e.querySelectorAll(".comments-cta-count span"),o=0,s=n.length;o<s;o++)n[o].innerHTML=t},disqusApiFetchUrl:function(){return`https://disqus.com/api/3.0/threads/details.json?forum=${n.disqus_site_shortcode}&api_key=${n.disqus_api_key}&thread=link:${n.permalink}`},spotimApiFetchUrl:function(){return`https://open-api.spot.im/v1/messages-count?spot_id=${n.spot_id}&posts_ids=${n.post_id}`},getCommentCount:function(){if(n){var t=0;switch(n.type){case"spotim":fetch(o.spotimApiFetchUrl()).then(t=>{if(200===t.status)return t.json();throw`comments cta disqus error with status ${t.status}`}).then(e=>{t=e.messages_count[n.post_id],o.updateComments(t)});break;case"disqus":fetch(o.disqusApiFetchUrl()).then(t=>{if(200===t.status)return t.json();throw`comments cta disqus error with status ${t.status}`}).then(e=>{t=e.response.posts,o.updateComments(t)});break;default:o.updateComments(n.comments_count)}o.updateAnchorLinks()}}};o.getCommentCount()})();

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.