PageSourceSearch

https://www.westmorelandtransit.com/wp-content/plugins/thrive-visu…/social-share.min.js?v=3.18&ver=3.18

js westmorelandtransit.com collected 2026-09-24 10:10:18 UTC 6,032 bytes, 1 lines download raw bytes

1!function(){var t={83511:function(t,e,o){((e,n)=>{const i=o(15149),a=o(10603),s={init:()=>{TCB_Front.Utils.isEditorPage()||(e(".thrv_social.thrv_social_custom").each(((t,o)=>s.initUI(e(o)))),s.initButtons(),e("body").on("click",".thrv_social_custom .tve_s_link",(function(){let t=e(this).parents(".tve_s_item"),o=t.attr("data-s");a[o]&&a[o](t)})),e(".thrv_social_follow").each(((t,o)=>{let n=!0;e(o).find(".tve_s_item").each(((t,o)=>{const i=e(o);i.find("a").attr("href")?n=!1:i.hide()})),n&&o.style.setProperty("display","none","important")}))),i.initShareCounts()},initUI:t=>{const e=n.Utils.jsonParse(t,"data-device-config"),o=n.getDisplayType();if(e[o]){const n=e[o],i=n.button_type||"tve_social_itb",a=1===parseInt(n.isFullWidth),s=n.showCount,r=1===parseInt(n.isVertical),c=t.find(".tve_social_items").attr("class").replace(/(tve_social_items|tve_social_custom)/g,"").match(/(\s+)?tve_social_([a-z]{2,3})/);let l=c?"tve_social_"+c[2]:"tve_social_itb";l!==i&&t.find(".tve_social_items").removeClass(l).addClass(i),a&&t.toggleClass("tcb-social-full-width",a),0===parseInt(s)&&t.find(".tve_s_share_count").remove(),n.isVertical&&t.toggleClass("tcb-social-vertical",r)}},initButtons:()=>{window.FB&&setTimeout((function(){e(".thrv_social_default .tve_s_fb_share, .thrv_social_default .tve_s_fb_like").each((function(){FB.XFBML.parse(this)}))}),200)}};window.TCB_Front.onSocialCustomClick=a,t.exports=s})(ThriveGlobal.$j,TCB_Front)},10603:function(t){const e={wnd:function(t,e,o){const n=void 0!==window.screenLeft?window.screenLeft:screen.left,i=void 0!==window.screenTop?window.screenTop:screen.top,a=(window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width)/2-e/2+n,s=(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/2-o/2+i,r=window.open(t,"Thrive Share","scrollbars=yes,resizable=yes,toolbar=no,menubar=no,scrollbars=no,location=no,directories=no,width="+e+", height="+o+", top="+s+", left="+a);return window.focus&&r.focus(),r},fb_share:function(t){let o=t.data();if(o.href||(o.href=location.href),o.type&&"feed"!==o.type)e.wnd("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(o.href),650,500);else{let t="";o.name&&(t+="&title="+encodeURIComponent(o.name)),o.description&&(t+="&description="+encodeURIComponent(o.description)),o.href&&(t+="&u="+encodeURIComponent(o.href)),o.caption&&(t+="&caption="+encodeURIComponent(o.caption)),o.image&&(t+="&picture="+encodeURIComponent(o.image)),t="?"+t.substr(1),e.wnd("https://www.facebook.com/sharer.php"+t,650,500)}return!1},t_share:function(t){let o=t.data();o.href||(o.href=location.href),e.wnd("https://twitter.com/intent/tweet?url="+encodeURIComponent(o.href)+(o.tweet?"&text="+encodeURIComponent(o.tweet):"")+(o.via?"&via="+o.via:""),550,450)},in_share:function(t){let o=t.data();o.href||(o.href=location.href),e.wnd("https://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(o.href),550,400)},pin_share:function(t){let o=t.data();o.href||(o.href=location.href),e.wnd("https://pinterest.com/pin/create/button/?url="+encodeURIComponent(o.href)+(o.media?"&media="+encodeURIComponent(o.media):"")+(o.description?"&description="+encodeURIComponent(o.description):""),600,600)},xing_share:function(t){let o=t.data();o.href||(o.href=location.href),e.wnd("https://www.xing.com/spi/shares/new?url="+encodeURIComponent(o.href),600,500)}};t.exports=e},15149:function(t){(e=>{const o={initShareCounts:()=>{!window.TVE_Dash||TVE_Dash.ajax_sent?o.getShareCounts():TCB_Front.$document.on("tve-dash.load",(function(t){const n=o.getShareCounts(e("body"),{},!0);n&&TVE_Dash.add_load_item("tcb_social",n[0],n[1])}))},getShareCounts:(t,o,n)=>{const i=(t=t||e("body")).find(".tve_social_items.tve_social_custom");if(!i.length)return;const a={action:"tve_social_count",for:[]};if(void 0!==o?e.each(o,(function(t,e){a[t]=e})):"undefined"!=typeof tve_path_params&&tve_path_params.post_id&&(a.post_id=tve_path_params.post_id),i.each((function(t){const o=e(this),n={};if(o.data("tve-social-counts")||!o.hasClass("tve_social_cb")&&"1"!==o.parent().attr("data-counts"))return void o.data("tve-social-counts",1);o.data("tve-social-counts",1);const i=o.prev(".tve_s_share_count"),s=o.children(".tve_s_item").each((function(){let t=e(this).addClass("tve_count_loading");n[t.attr("data-s")]=t.attr("data-href")}));if(n.hasOwnProperty("t_share")&&1===s.length)return s.removeClass("tve_count_loading"),i.remove(),void o.parent().removeAttr("data-counts");a.for[t]=n})),!a.for.length)return null;TCB_Front.total_share_counts={};let s=function(t){t&&t.counts&&t.totals&&i.each((function(o){let n=e(this),i=n.prev(".tve_s_share_count"),a=n.children(".tve_s_item");e.each(t.counts[o],(function(t,e){a.filter(".tve_s_"+t).find(".tve_s_count").html(e.formatted)})),a.removeClass("tve_count_loading");let s=i.length?window.getComputedStyle(i[0]).display:"flex";if(t.totals&&t.totals[o]&&"1"===n.parent().attr("data-counts")){let e=parseInt(n.parent().attr("data-min_shares"));e=isNaN(e)?0:e,i.find(".tve_s_cnt").html(t.totals[o].formatted),parseInt(tve_frontend_options.is_editor_page)||(s=e<t.totals[o].value?"flex"===s?"flex":"inl
1ine-block":"none",i.css("cssText",`display: ${s} !important;`))}t.totals&&t.totals[o]&&(TCB_Front.total_share_counts[a.attr("data-href")]=t.totals[o])}))};if(void 0!==n&&n)return[a,s];e.ajax({type:"post",xhrFields:{withCredentials:!0},url:tve_frontend_options.ajaxurl,data:a,dataType:"json"}).done(s)}};window.TCB_Front.getShareCounts=o.getShareCounts,t.exports=o})(ThriveGlobal.$j)}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,o),a.exports}void 0===TCB_Front.js_modules["social-share"]&&TCB_Front.setModuleLoadedStatus("social-share",!1),(t=>{if(TCB_Front.isModuleLoaded("social-share"))return;const e=o(83511);t(window).on("tcb_after_dom_ready",(()=>e.init())),TCB_Front.setModuleLoadedStatus("social-share",!0)})(ThriveGlobal.$j)}();

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.