PageSourceSearch

https://www.crisisgo.com/hubfs/hub_generated/template_assets/1/212…/template_comparison-table.min.js

js crisisgo.com collected 2026-09-24 09:10:06 UTC 2,796 bytes, 2 lines download raw bytes

1function comptab(obj,cols_nr,first_col_width_lg,first_col_width_md,first_col_width_sm,first_col_width_xs){const header=obj.querySelector(".comptab__head"),scroller_body=obj.querySelector(".comptab__scroller--body"),scroller_head=obj.querySelector(".comptab__scroller--head"),track_body=obj.querySelector(".comptab__track--body"),track_head=obj.querySelector(".comptab__track--head"),regular_col=obj.querySelectorAll(".comptab__col--regular"),regular_col_ref=scroller_body.querySelector(".comptab__col--regular");obj.querySelectorAll(".comptab__col--first");let first_col_width,scroller_body_width=scroller_body.offsetWidth;first_col_width=window.innerWidth<act.xs?first_col_width_xs:window.innerWidth<act.sm?first_col_width_sm:window.innerWidth<act.md?first_col_width_md:first_col_width_lg;let col_width=(scroller_body_width-first_col_width)/cols_nr;for(i=0;i<regular_col.length;i++)regular_col[i].style.flexBasis=col_width+"px",regular_col[i].style.maxWidth=col_width+"px";if(track_body.style.width=first_col_width+regular_col_ref.getBoundingClientRect().width*cols_nr+"px",track_head.style.width=first_col_width+regular_col_ref.getBoundingClientRect().width*cols_nr+"px",scroller_body.addEventListener("scroll",act.throttle(function(){scroller_body.scrollLeft>0?obj.classList.add("comptab--scrolled"):obj.classList.remove("comptab--scrolled")},10)),scroller_body.offsetHeight>scroller_body.scrollHeight?obj.classList.add("comptab--scrollable"):obj.classList.remove("comptab--scrollable"),scroller_body.addEventListener("scroll",function(){scroller_head.scrollLeft=this.scrollLeft},{passive:!0}),obj.classList.contains("comptab--sticky-header")){let new_element=document.createElement("div");new_element.classList.add("comptab__sticky-header-observer"),el=new_element,(referenceNode=header).parentNode.insertBefore(el,referenceNode),new IntersectionObserver(function(entries){0===entries[0].intersectionRatio?obj.classList.add("comptab--sticky-header-on"):1===entries[0].intersectionRatio&&obj.classList.remove("comptab--sticky-header-on")},{threshold:[0,1]}).observe(obj.querySelector(".comptab__sticky-header-observer"))}var el,referenceNode}document.addEventListener("tippyready",function(){tippy(".comptab__ttip",{content:ref=>ref.querySelector(".comptab__ttip-content").innerHTML,allowHTML:!0,onTrigger(instance,event){instance.reference.closest(".comptab").classList.contains("comptab--light")?instance.setProps({theme:"act-dark"}):instance.reference.closest(".comptab").classList.contains("comptab--dark")&&instance.setProps({theme:"act-light"})},interactive:!0,appendTo:()=>document.body,aria:{content:null,expanded:!1}})});
2//# sourceURL=https://2597094.fs1.hubspotusercontent-na1.net/hubfs/2597094/hub_generated/template_assets/1/212750046735/1789045798358/template_comparison-table.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.