PageSourceSearch

https://www.bravurasecurity.com/hubfs/hub_generated/template_asset…/1788969095198/template_common.min.js

js bravurasecurity.com collected 2026-09-25 13:58:49 UTC 9,948 bytes, 2 lines download raw bytes

1bcPath=window.location.pathname,bcProto=window.location.protocol,bcHost=window.location.hostname,dataOS=[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}],pentos="";var hashScroll=!0;hv=window.hv||{},function(window,document,$,hv){hv.commonFunction={init:function(options){hv.commonFunction.bindEventsSelectors()},getParmsFromURLHash:function(url){var pieces,parts,i,parms={},hash=url.lastIndexOf("html");-1!==hash&&(url=url.slice(hash+1));var filters=url.indexOf("#");if(-1!==filters)for(pieces=(url=url.slice(filters+1)).split("#"),i=0;i<pieces.length;i++)(parts=pieces[i].split("=")).length<2&&parts.push(""),parms[decodeURIComponent(parts[0])]=decodeURIComponent(parts[1]);return parms},getUrlParameter:function(qURL){var vars={},hashes=qURL.split("?")[1];if(void 0!==hashes){for(var hash=hashes.split("&"),i=0;i<hash.length;i++)params=hash[i].split("="),vars[params[0]]=params[1];return vars}},isIEBrowser:function(){return/Trident\/|MSIE/.test(window.navigator.userAgent)},equalColumns:function(htmlElements){$(htmlElements).removeAttr("style");var heights=$(htmlElements).map(function(){return $(this).height()}).get(),maxHeight=Math.max.apply(null,heights);$(htmlElements).height(maxHeight)},trimParagraph:function(ele,wcount){$(ele).each(function(){var t=$(this).text();t.length<wcount||$(this).html(t.slice(0,wcount)+"...")})},trimTitle:function(ele1,ele2,wcount){wcount=Number(wcount);$(ele1).each(function(){var tTxt=$(this).find(ele2).text(),wLen=hv.commonFunction.countWords(tTxt),trimTxt=tTxt.split(/\s+/).slice(0,wcount).join(" ");wLen>wcount&&(trimTxt+="..."),$(this).find(ele2).text(trimTxt)})},countWords:function(str){return str.trim().split(/\s+/).length},ccsGetLastWord:function(paragraph,line){return paragraph.split("\n")[line].split(" ").pop()},aContainsB:function(a,b){return a.indexOf(b)>=0},isEmpty:function(el){return!$.trim(el.html())},heroBannerImageChanger:function(ele,rstatus){var array=ele;$.each(array,function(i,val){for(var len=$("."+val).length,j=0;j<len;j++)hv.commonFunction.changerFunction(val,j,rstatus)})},changerFunction:function(ele,index,rstatus){var val=ele;index=Number(index);if(-1!=navigator.userAgent.indexOf("MSIE")||-1!=navigator.userAgent.indexOf("Edge")||navigator.appVersion.indexOf("Trident/")>
1-1||navigator.userAgent.search("Safari")>=0&&navigator.userAgent.search("Chrome")<0){var deskImageUrl=$("."+val).eq(index).attr("data-jpg-desktop");""!=(mobImageUrl=$("."+val).eq(index).attr("data-jpg-mobile"))&&null!=mobImageUrl||(mobImageUrl=$("."+val).eq(index).attr("data-jpg-desktop")),void 0!==deskImageUrl&&void 0!==mobImageUrl&&($(window).width()>=500?1==rstatus?$("."+val).eq(index).css("background-image","url("+deskImageUrl+")"):$("."+val).eq(index).attr("data-bgset",deskImageUrl):1==rstatus?$("."+val).eq(index).css("background-image","url("+mobImageUrl+")"):($("."+val).eq(index).attr("data-bgset",mobImageUrl),$("."+val).removeClass("lazyloaded").addClass("lazyload")))}else{deskImageUrl=$("."+val).eq(index).attr("data-webp-desktop");var mobImageUrl=$("."+val).eq(index).attr("data-webp-mobile"),mobJPGImageUrl=$("."+val).eq(index).attr("data-jpg-mobile");""!=deskImageUrl&&null!=deskImageUrl||(deskImageUrl=$("."+val).eq(index).attr("data-jpg-desktop")),""!=mobImageUrl&&null!=mobImageUrl||(mobImageUrl=""!=mobJPGImageUrl||null!=mobJPGImageUrl?$("."+val).eq(index).attr("data-jpg-mobile"):$("."+val).eq(index).attr("data-jpg-desktop")),void 0!==deskImageUrl&&void 0!==mobImageUrl&&($(window).width()>=500?1==rstatus?$("."+val).eq(index).css("background-image","url("+deskImageUrl+")"):$("."+val).eq(index).attr("data-bgset",deskImageUrl):1==rstatus?$("."+val).eq(index).css("background-image","url("+mobImageUrl+")"):($("."+val).eq(index).attr("data-bgset",mobImageUrl),$("."+val).removeClass("lazyloaded").addClass("lazyload")))}},setIframeHeight:function(id){var ifrm=document.getElementById(id),doc=ifrm.contentDocument?ifrm.contentDocument:ifrm.contentWindow.document;ifrm.style.visibility="hidden",ifrm.style.height="10px",ifrm.style.height=hv.commonFunction.getDocHeight(doc)+4+"px",ifrm.style.visibility="visible",$(".content-loader").hide()},getDocHeight:function(doc){var body=(doc=doc||document).body,html=doc.documentElement;return Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight)},ctaCaratIcons:function(){$(".c-link, .c-btn").each(function(){if($(this).find("svg").length>0&&!$(this).find("div").hasClass("true")){var gLock=!1,gHtml="",nodeTxt=$(this).contents().filter(function(){return 3===this.nodeType}),nodeVal=$.trim(nodeTxt.text());if(hv.commonFunction.countWords(nodeVal)>0&&!$(this).find("svg").hasClass("glyphicon-menu-left")){$(this).hasClass("isGatedLock")&&(gHtml="",gLock=!0);var w=hv.commonFunction.ccsGetLastWord(nodeVal,0),p=nodeVal.substring(0,nodeVal.lastIndexOf(" "));$(this).contents().filter(function(){return 3===this.nodeType}).remove();var ss=$(this).html();1==gLock?$(this).html("").prepend(gHtml+p+' <div class="true" style="display:inline-block;">'+w+ss+"</div> "):$(this).html("").prepend(p+' <div class="true" style="display:inline-block;">'+w+ss+"</div> ")}}})},addGatedIcon:function(){setTimeout(function(){$(".isGatedLock").each(function(index,el){console.log("gated link"),$(this).find("svg").hasClass("gated-lock")||($(this).hasClass("c-anchor-block")?$(this).parent().find(".c-link, c-btn").prepend('<svg role="img" class="gated-lock"><use xlink:href="/content/dam/public/en_us/image/common/header-footer-sprite.svg#lock" link:title="Gated Asset"></use></svg>'):$(this).prepend('<svg role="img" class="gated-lock"><use xlink:href="/content/dam/public/en_us/image/common/header-footer-sprite.svg#lock" link:title="Gated Asset"></use></svg>'))})},1e3)},getCountry:function(){var a=window.location.pathname,b=a.split("/");return(a=(a=b[1]).split("-"))[1]},searchString:function(data){for(var i=0;i<data.length;i++){var dataString=data[i].string,dataProp=data[i].identity;if(dataString){if(-1!=dataString.indexOf(data[i].subString))return data[i].identity}else if(dataProp)return data[i].identity}},readCookie:function(name){for(var nameEQ=name+"=",ca=document.cookie.split(";"),i=0;i<ca.length;i++){for(var c=ca[i];" "==c.charAt(0);)c=c.substring(1,c.length);if(0==c.indexOf(nameEQ))return c.substring(nameEQ.length,c.length)}return null},openOverlayParams:function(){var qURL=window.location.href,qparam=hv.commonFunction.getUrlParameter(qURL);if(void 0!==qparam)var redParm=qparam.overlay;"contact-sales"==redParm&&$('#footer-cotactlist-3 a[rel="iframemodal"]').trigger("click")},bindEventsSelectors:function(){setInterval(function(){if(!$(".loadOverlay").is(":visible")&&1==hashScroll){hv.commonFunction.openOverlayParams(),hashScroll=!1;var hash=window.location.hash;if(""!=hash&&null!=hash){var idCheck=hash.substr(0,hash.indexOf("="));$(idCheck).length>0&&$("html, body").animate({scrollTop:$(window.location.hash).offset().top},800)}}},1500),pentos=hv.commonFunction.searchString(dataOS);var param=decodeURIComponent(location.search);void 0!==param&&param.indexOf("utm_")>-1&&(param=(param=param.substring(param.indexOf("?")+1)).replace(/&/g,","),document.cookie="utmParam="+param+";expires: 0;path=/"),hv.commonFunction.addGatedIcon();var eleClass=["webpImg"];hv.commonFunction.heroBannerImageChanger(eleClass,!1),$(window).on("resize",function(){hv.commonFunction.heroBannerImageChanger(eleClass,!0)}),hv.commonFunction.ctaCaratIcons(),$(document).ajaxStop(function(e){hv.commonFunction.ctaCaratIcons()}),$(document).on("click","a[rel=emailHome]",function(){var emailadd=$(this).attr("lang").replace("(at)","@"),emailSub=$(this).data("msubject");null==emailSub&&(emailSub=""),setTimeout(function(){window.open("mailto:"+emailadd+"?subject="+emailSub,"_self")},1e3)}),$("a").each(function(){"emailHome"==$(this).attr("rel")&&$(this).attr("href","javascript:void(0);")}),$(document).on("click","a[rel=iframemodal]",function(evt){evt.preventDefault(),$("#modal").css({background:"rgba(0,0,0,0)"}),$("#modal").addClass("custom-modal"),$("#modal").before($('<div class="modal-custom-overlay"></div>'));var modal=$("#modal").modal(),formTitle=$(this).attr("data-formtitle"),targetURL=$(this).attr("href");
1if(modal.find(".modal-header .title").text("").append(formTitle),modal.find(".modal-body").html("<iframe src='"+targetURL+"' height='540' frameborder='0' scrolling='no' id='hdsModalWindow' onload='hv.commonFunction.setIframeHeight(this.id)'></iframe><div class='content-loader'></div>"),modal.show(),$("#modalValProp").show(),navigator.userAgent.match(/iPhone|iPad|iPod/i)){var styleEl=document.createElement("style");document.head.appendChild(styleEl),styleEl.sheet}}),$(document).on("click",".modal-header button.close",function(evt){$("#modal").find(".modal-body").html(""),$("#modal").css({background:"rgba(0,0,0,0.75)"}),$(".modal-custom-overlay").remove(),$("#modal").removeClass("custom-modal"),$("#modal").removeClass("modal-webcast")});var userAgent=window.navigator.userAgent,platform=window.navigator.platform,os=null;-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(platform)?$("body").addClass("mac"):-1!==["iPhone","iPad","iPod"].indexOf(platform)?$("body").addClass("iphone-device"):-1!==["Win32","Win64","Windows","WinCE"].indexOf(platform)?os="Windows":/Android/.test(userAgent)?$("body").addClass("android-device"):!os&&/Linux/.test(platform)&&(os="Linux"),!$(".hv-hero-marquee, .hv-hero-comm-banner,.hv-search-banner,.hv-webcast-banner,.hv-contact-banner,.hv-asset-podcast,.hv-blog-landing-hero-wrapper,.hv-worldwide-loc").length>0&&$(".breadcrumb-container").addClass("bread-withouthero")}}}(window,document,jQuery,hv),$(function(){hv.commonFunction.init()});
2//# sourceURL=https://8773866.fs1.hubspotusercontent-na1.net/hubfs/8773866/hub_generated/template_assets/1/37753108269/1788969095198/template_common.js

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.