PageSourceSearch

https://www.callture.com/js/basescript.min.js?v=1.0.1

js callture.com collected 2026-09-26 12:50:55 UTC 14,086 bytes, 1 lines download raw bytes

1if("undefined"!=typeof Storage){var tempagentidId=getParameterByName("ID"),temppromocode=getParameterByName("Promo"),tempgclid=getParameterByName("gclid"),tempPID=getParameterByName("PID");""!=tempagentidId&&null!=tempagentidId&&"null"!=tempagentidId&&sessionStorage.setItem("AgentID",tempagentidId),""!=temppromocode&&null!=temppromocode&&"null"!=temppromocode&&sessionStorage.setItem("PromoCode",temppromocode),""!=tempgclid&&null!=tempgclid&&"null"!=tempgclid&&sessionStorage.setItem("gclid",tempgclid),""!=tempPID&&null!=tempPID&&"null"!=tempPID&&sessionStorage.setItem("PID",tempPID)}var agentidId=getParameterByName("ID"),promocode=getParameterByName("Promo"),gclid=getParameterByName("gclid"),PID=getParameterByName("PID");function getParameterByName(e,o){o||(o=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var t=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)","i").exec(o);return t?t[2]?decodeURIComponent(t[2].replace(/\+/g," ")):"":null}function setCookie(e,o,t,a){a=null!=a&&"undefined"!=a&&""!=a?";path="+a+";":"";var n=new Date;n.setTime(n.getTime()+24*t*60*60*1e3);var r="expires="+n.toUTCString();document.cookie=e+"="+o+"; "+r+a}function getCookie(e){for(var o=e+"=",t=document.cookie.split(";"),a=0;a<t.length;a++){for(var n=t[a];" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf(o))return n.substring(o.length,n.length)}return""}function UpdatePromocode(e){"undefined"!=typeof Storage&&sessionStorage.setItem("PromoCode",e),setCookie("PromoCode",e,30)}function getPromoCode(){if("undefined"!=typeof Storage){var e=sessionStorage.getItem("PromoCode");return""!=e&&null!=e&&"null"!=e?e:""==(o=getCookie("PromoCode"))?"DEFAULT":o}var o;return""==(o=getCookie("PromoCode"))?"DEFAULT":o}function getgclid(){if("undefined"!=typeof Storage){var e=sessionStorage.getItem("gclid");if(""!=e&&null!=e&&"null"!=e)return e;var o=getCookie("gclid");return""==o?"":o}var t=getCookie("gclid");return""==t?"":t}function getPID(){if("undefined"!=typeof Storage){var e=sessionStorage.getItem("PID");if(""!=e&&null!=e&&"null"!=e)return e;var o=getCookie("PID");return""==o?"":o}var t=getCookie("PID");return""==t?"":t}function getAgentID(){var e=window.location.hostname;if("undefined"!=typeof Storage){var o=sessionStorage.getItem("AgentID");return""!=o&&null!=o&&"null"!=o?o:(agentidcookie=getCookie("AgentID"),""==agentidcookie?"biz.callture.ca"==e.toLowerCase()?"115925":"115860":agentidcookie)}return agentidcookie=getCookie("AgentID"),""==agentidcookie?"biz.callture.ca"==e.toLowerCase()?"115925":"115860":agentidcookie}function getObjects(e,o,t){var a=[];for(var n in e)e.hasOwnProperty(n)&&("object"==typeof e[n]?a=a.concat(getObjects(e[n],o,t)):n==o&&e[o]==t&&a.push(e));return a}function validateForm(e){var o=!0;return $.each(e,function(e,t){t.checkValidity()||(o=!1)}),o}""!=agentidId&&null!=agentidId&&"null"!=agentidId&&setCookie("AgentID",agentidId,30),""!=promocode&&null!=promocode&&"null"!=promocode&&setCo
1okie("PromoCode",promocode,30),""!=gclid&&null!=gclid&&"null"!=gclid&&setCookie("gclid",gclid,30),""!=PID&&null!=PID&&"null"!=PID&&setCookie("PID",PID,30);var validatecreditcard=function(e){return function(o){for(var t,a=o.length,n=1,r=0;a;)t=parseInt(o.charAt(--a),10),r+=(n^=1)?e[t]:t;return r&&r%10==0}}([0,2,4,6,8,1,3,5,7,9]),headerpresent=$("#header_bar").length;if(headerpresent>0){var pathname=window.location.pathname,url=window.location.href,changepathurl=0;if(pathname.indexOf("/promo/fax")>=0||pathname.indexOf("/promo/connect")>=0||pathname.indexOf("/promo/realty")>=0)changepathurl=1;if(1==changepathurl)var headerpath="/inc/header.html";else headerpath="/inc/header.html";$("#header_bar").load(headerpath,function(){var e=location.href;$("#menu-test-menu>li").each(function(){var o=$(this).find("a").attr("href");if(e.toLowerCase().indexOf(o.toLowerCase())>=0)return $("#menu-test-menu>li").removeClass("active"),$(this).addClass("active"),!1}),1==changepathurl&&$("#menu-test-menu>li>a").each(function(){var e="../../"+$(this).attr("href");$(this).attr("href",e)}),"1"==getParameterByName("noheader")&&$(".no-header").hide(),$("#formaddlead1,#formaddlead2,#formaddleadmodal,#formaddleadmemo").submit(function(e){e.preventDefault(),SubmitLead(this),$("#resourcesmodal").length>0&&$("#resourcesmodal").modal("hide")}),populateCountrynew("drp_country")})}$("#formebook").submit(function(e){e.preventDefault(),$(this).addClass("activeformebook")});var countrydropexist=$(".country_dropdown_cls").length;if(countrydropexist>0){var currentyear=(new Date).getFullYear();$(".country_dropdown_cls").each(function(){$(this).html("");for(var e=currentyear;e<=currentyear+11;e++)$(this).append("<option value='"+e+"'>"+e+"</option>");$(this).val(currentyear)})}var locationurl=location.href;function livechatopen(){window.open("https://www.livehelpnow.net/lhn/lc.aspx?d=0&zzwindow=0&lhnid=14764&custom1=&custom2=&custom3=","","width=300, height=400")}$("#menu-test-menu>
1li").each(function(){var e=$(this).find("a").attr("href");if(locationurl.toLowerCase().indexOf(e.toLowerCase())>=0)return $("#menu-test-menu>li").removeClass("active"),$(this).addClass("active"),!1});var footerpresent=$("#footer_bar").length;if(footerpresent>0){pathname=window.location.pathname,url=window.location.href,changepathurl=0;if(pathname.indexOf("/promo/connect")>0||pathname.indexOf("/promo/realty")>0)changepathurl=1;if(1==changepathurl)var footerpath="/inc/footer.html";else footerpath="footer.html";$("#footer_bar").load(footerpath,function(){"1"==getParameterByName("noheader")&&$(".no-header").hide()})}var promoheaderpresent=$("#promo_header_bar").length;promoheaderpresent>0&&$("#promo_header_bar").load("/inc/header-promo.html",function(){"1"==getParameterByName("noheader")&&$(".no-header").hide(),$("#formaddlead1,#formaddlead2,#formaddleadmodal,#formaddleadmemo,#formebook").submit(function(e){e.preventDefault(),SubmitLead(this),$("#resourcesmodal").length>0&&$("#resourcesmodal").modal("hide")})});var promofooterpresent=$("#promo_footer_bar").length;promofooterpresent>0&&$("#promo_footer_bar").load("/inc/footer-promo.html",function(){"1"==getParameterByName("noheader")&&$(".no-header").hide(),$(".modal-body>iframe").each(function(){var e="../.."+$(this).attr("src");$(this).attr("src",e)}),$("#bottomdiv").length>0&&($("#bottomdiv").addClass("stickybottom"),$(window).on("scroll",function(e){scrollY=$(this).scrollTop(),parseInt(scrollY)>=0?$("#bottomdiv").addClass("stickybottom"):$("#bottomdiv").removeClass("stickybottom")}));var e=$("#frameFeature").closest(".modal-body").height();e-=20,$("#frameFeature").attr("height",e),e=$("#frameTest").closest(".modal-body").height(),e-=20,$("#frameTest").attr("height",e),e=$("#frameAbout").closest(".modal-body").height(),e-=20,$("#frameAbout").attr("height",e)});var phonesmodalpresent=$("#phones_modal_bar").length;phonesmodalpresent>0&&$("#phones_modal_bar").load("phones-modal.html",function(){var e=window.location.pathname;window.location.href;e.indexOf("pricing.html")>0?($("#phone-select").click(function(){LoadPhones(),ResetPhoneModal(),editUser=-1}),$(".user-edit-phone").click(function(e){editUser=Number($(e.target).find(".hidden").text()),$("#usersModal").modal("toggle"),ResetPhoneModal(),$("#myModal").modal()})):LoadPhones()});var noheader=getParameterByName("noheader");"1"==noheader&&$(".no-header").hide();var bottomdiv=$("#bottomdiv").length;if(bottomdiv>0){$("#bottomdiv").addClass("stickybottom"),$(window).on("scroll",function(e){scrollY=$(this).scrollTop(),parseInt(scrollY)>=0?$("#bottomdiv").addClass("stickybottom"):$("#bottomdiv").removeClass("stickybottom")});var height=$("#frameFeature").closest(".modal-body").height();height-=20,$("#frameFeature").attr("height",height),height=$("#frameTest").closest(".modal-body").height(),height-=20,$("#frameTest").attr("height",height),height=$("#frameAbout").closest(".modal-body").height(),height-=20,$("#frameAbout").attr("height",height)}var path=window.location.pathname;if(path.toLowerCase().indexOf("confirmation.html")>=0||path.toLowerCase().indexOf("leadcreation.html")>=0||path.toLowerCase().indexOf("leadconfirmation_expert.html")>=0||path.toLowerCase().indexOf("leadconfirmation_msteams.html")>=0||path.toLowerCase().indexOf("signupconfirm_expert.html")>=0){setCookie("lead-guid","",30);var cookieguid=getCookie("success-guid");setCookie("success-guid","",30);var guidparam=getParameterByName("refid");if(cookieguid==guidparam&&""!=cookieguid){$("#success-account-id").text(getCookie("success-account-id")),$("#success-login").text(getCookie("success-login")),$("#success-password").text(getCookie("success-password")),$("#success-name").text(getCookie("success-name"));var ccnumber=getCookie("ccnumber");validatecreditcard(ccnumber)}}else setCookie("success-account-id","",30),setCookie("success-login","",30),setCookie("success-password","",30),setCookie("success-guid","",30),setCookie("lead-guid","",30),setCookie("ccnumber","",30);if($("#mainlogo").length>0)if(path.toLowerCase().indexOf("/promo/")>=0)$("#mainlogo").removeClass("logo-main"),$("#mainlogo").attr("src","/img/logo.png"),$("#poweredbylogo").hide(),$(".navbar-brand").removeClass("logo-hide");else{url="/api/CallAPIs.asp?apiname=AGENTLOGOGET&AgentID="+getAgentID();$.ajax({type:"GET",url:url,contentType:"application/x-www-form-urlencoded",cache:!1}).done(function(e){var o=(new X2JS).xml2json(e),t="",a="",n="";try{Array.isArray(o.XML.Agent.AgentLogo)?($.each(o.XML.Agent.AgentLogo,function(e,o){"0"===o.LogoType?t=o.Logo:"1"===o.LogoType?a="Yes":"2"===o.LogoType&&(n="Yes")}),""==t||""==a&&""==n?($("#mainlogo").removeClass("logo-main"),$("#mainlogo").attr("src","/img/logo_white.svg"),$("#poweredbylogo").hide(),$(".navbar-brand").removeClass("logo-hide")):($("#mainlogo").addClass("logo-main"),$("#mainlogo").attr("src","data:image/png;base64,"+t),$("#mainlogo1").addClass("logo-main"),$("#mainlogo1").attr("src","data:image/png;base64,"+t),$("#mainlogo2").addClass("logo-main"),$("#mainlogo2").attr("src","data:image/png;base64,"+t),$("#poweredbylogo").show(),$(".navbar-brand").addClass("logo-hide"))):($("#mainlogo").removeClass("logo-main"),$("#mainlogo").attr("src","/img/logo_white.svg"),$("#poweredbylogo").hide(),$(".navbar-brand").removeClass("logo-hide"))}catch(e){$("#mainlogo").removeClass("logo-main"),$("#mainlogo").attr("src","/img/logo_white.svg"),$("#poweredbylogo").hide(),$(".navbar-brand").removeClass("logo-hide")}}).fail(function(){$("#mainlogo").removeClass("logo-main"),$("#mainlogo").attr("src","/img/logo_white.svg"),$("#poweredbylogo").hide(),$(".navbar-brand").removeClass("logo-hide")})}function IsSalesPromoPage(){return window.location.href.toLowerCase().indexOf("/promo/sales2")>=0||window.location.href.toLowerCase().indexOf("/promo/cutcost")>=0||window.location.href.toLowerCase().indexOf("/promo/saleso")>=0}function IsFAXSignupPage(){return window.location.href.toLowerCase().indexOf("/fax/signup.html")>=0||window.location.href.toLowerCase().indexOf("/fax-signup.html")>=0}function IsVoiceMailSignupPage(){return window.location.href.toLowerCase().indexOf("/voicemail/signup.html")>=0}function IsSignupPage(){return window.location.href.toLowerCase().indexOf("/tollfree/signup.html")>=0||window.location.href.toLowerCase().indexOf("/vpbx-signup.html")>=0||window.location.href.toLowerCase().indexOf("/signup-covid19.html")>=0}function IsCovidSignupPage(){return window.location.href.toLowerCase().indexOf("/signup-covid19.html")>=0}function IsClosePopup(){return window.location.href.toLowerCase().indexOf("/promo/sales114")>=0||window.location.href.toLowerCase().indexOf("/promo/cutcost115")>=0||window.location.href.toLowerCase().indexOf("/promo/sales115")>=0||window.location.href.toLowerCase().indexOf("/promo/sales116")>=0||window.location.href.toLowerCase().indexOf("/promo/sales117")>=0||window.location.href.toLowerCase().indexOf("/promo/sales118")>=0||window.location.href.toLowerCase().indexOf("/promo/cutcost116")>=0||window.location.href.toLowerCase().indexOf("/promo/cutcost117")>=0||window.location.href.toLowerCase().indexOf("/promo/cutcost118")>=0}function ChangeButtonDemoText(e){window.location.href.toLowerCase().indexOf("/promo/cutcost")>=0?"formaddlead5"==e.attr("id")||"formaddlead3"==e.attr("id")?e.find("#btndemo").text("Free Audit"):e.find("#btndemo").text("Free Guide"):window.location.href.toLowerCase().indexOf("/promo/saleso")>=0&&"formaddlead4"==e.attr("id")?e.find("#btndemo").text("Free Guide"):e.find("#btndemo").text("View Demo")}if(IsSalesPromoPage()){var email=getParameterByName("email");""!=email&&null!=email&&"null"!=email&&null!=email&&"undefined"!=email&&setCo
1okie("LeadEmail",email,30)}function scrolltopage(e){var o=0;if($("#"+e).length>0){o=$("#"+e).offset().top;$("html, body").animate({scrollTop:o+10},1e3)}}function commissioncalc(e){""==e&&(e="0");var o=10*parseInt(e),t=0;$("#lbl_month").find("input").val(o);var a=1;$("#commission-table").find("tr").each(function(){if($(this).find("td.month").length>0){var e=$(this).find("td.month").html(),n=parseInt(e)*o,r=24.5*parseInt(n),i=(Math.round(.25*parseInt(r)),.25*parseInt(r));t+=i,parseInt(e)%12==0&&(1==a?$("#lbl_1_commission").find("input").val("$ "+numberWithCommas(Math.round(t))):2==a?$("#lbl_2_commission").find("input").val("$ "+numberWithCommas(Math.round(t))):3==a&&($("#lbl_3_commission").find("input").val("$ "+numberWithCommas(Math.round(t))),$("#lbl_all_commission").find("input").val("$ "+numberWithCommas(5*Math.round(t)))),t=0,a++)}})}function numberWithCommas(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}$("#bottom-menu").on("click",function(){$("#bottom-menu-section").is(":visible")?($("#bottom-menu-section").addClass("hidden-xs"),$(this).find("i").removeClass("fa-times").addClass("fa-bars")):($("#bottom-menu-section").removeClass("hidden-xs"),$(this).find("i").removeClass("fa-bars").addClass("fa-times"))}),$(".button-pdf-modal").on("click",function(){$("#iframepdf").attr("src",$("#iframepdf").attr("data-src"))}),$("#txt-new-clients").length>0&&commissioncalc($("#txt-new-clients").val()),$("#txt-new-clients").on("keyup keypress change",function(){commissioncalc($(this).val())});

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.