PageSourceSearch

http://change-facilitation.org/js/template_main.min.js

js change-facilitation.org collected 2026-09-27 14:46:20 UTC 5,004 bytes, 2 lines download raw bytes

1require(["jquery"],function($){$(".hsForm_ec76fafe-4d09-4d33-b70d-49dff67cf32f").find(".hs-submit").append('<button class="subscribe-submit">Subscribe</button>'),$("button.subscribe-submit").click(function(e){function validateEmail(email){return/^(([a-zA-Z0-9]+)|([a-zA-Z0-9]+((?:\_[a-zA-Z0-9]+)|(?:\.[a-zA-Z0-9]+))*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-zA-Z]{2,6}(?:\.[a-zA-Z]{2})?)$)/.test(email)}var checkbox=$('.hsForm_ec76fafe-4d09-4d33-b70d-49dff67cf32f input[type="checkbox"]'),email=$('.hs-email input[type="email"]').val();checkbox.is(":checked")&&validateEmail(email)?console.log("validate"):checkbox.is(":not(:checked)")&&validateEmail(email)?($(".hs_training_and_engagement_follow_ups").append('<p class="subscription-error">Please select at least one of the boxes above</p>'),console.log("do not validate because of boxes"),e.preventDefault(),$(checkbox).change(function(){$(".subscription-error").remove()})):checkbox.is(":checked")?(e.preventDefault(),$(checkbox).change(function(){$(".subscription-error").remove()})):(console.log("do not validate"),e.preventDefault())}),$(".selected-topic").click(function(){"false"==$(this).attr("aria-selected")?($(".topic-list__dropdown").attr("aria-expanded","false"),$(".topic-list__dropdown").slideUp(),$(this).attr("aria-selected","true"),$(this).next().attr("aria-expanded","true"),$(this).next().slideDown()):($(".selected-topic").attr("aria-selected","false"),$(".topic-list__dropdown").attr("aria-expanded","false"),$(".topic-list__dropdown").slideUp())}),$(".topic-select").click(function(){var topic=$(this).text(),topicName=$(this).attr("data-filter");$(".topic-list__dropdown li a").removeClass("hide"),$(".topic-select").removeClass("hide"),$(this).closest(".topic-list__dropdown").siblings(".selected-topic").children("span").text(topic),$(this).addClass("hide"),$("#loadMore").removeClass("load-more"),$("#loadMore").addClass("load-more-topic-posts"),$(".post").removeClass("selected"),$(".post").hide(),$(".post."+topicName).addClass("selected"),$('.post.selected[data-type="recent"]').slice(0,24).fadeIn(),$('.post.selected[data-type="archive"]').slice(0,9).fadeIn(),$('.post.selected[data-type="recent"]:hidden').length>0?$(".load-more-topic-posts").show():$(".load-more-topic-posts").hide(),$(".load-more-topic-posts").on("click",function(e){e.preventDefault(),$('.post.selected[data-type="recent"]:hidden').slice(0,24).show(),$('.post.selected[data-type="archive"]:hidden').slice(0,9).show(),0==$(".post.selected:hidden").length&&$(".load-more-topic-posts").hide()}),$(this).closest(".topic-list__dropdown").siblings(".selected-topic").attr("aria-selected","false"),$(".topic-list__dropdown").slideUp()});var winHeight,docHeight,max,value,percentValue,progressBar=$(".reading-progress__container"),progressPercent=$(".progress-bar");$(document).on("resize",function(){$(window).width(),winHeight=$(window).height(),docHeight=$(".blog-post").height()+600,max=docHeight-winHeight}),$(document).resize();$(document).on("scroll",function(){value=$(window).scrollTop(),progressBar.attr("value",value),progressBar.attr("max",max),percentValue=value/max,progressPercent.css("width",Math.round(1e6*percentValue)/1e4+"%")});$(window).width();$(".hs-blog-post #main-content .body-container--blog-post .blog-post-grid").append("<div class='sidebar-outer'><ul class='sidebar-nav'></ul></div>");$(".hs-blog-post article.blog-post h2, .hs-blog-post article.blog-post h3").each(function(i){var sidebarNavItemText=$(this).text(),sidebarNavItemFormatted=sidebarNavItemText.toLowerCase().replace(/[^a-z0-9\s]/gi,"").replace(/[_\s]/g,"-");$(this).attr("id",sidebarNavItemFormatted),$(this).addClass("scrolltosection"),0==i?$(".sidebar-nav").append('<li class="active" ><a href="#'+sidebarNavItemFormatted+'">'+sidebarNavItemText+"</a><li>"):$(".sidebar-nav").append('<li><a href="#'+sidebarNavItemFormatted+'">'+sidebarNavItemText+"</a></li>")});var sidebarMenu=$(".sidebar-nav"),topMenuHeight=$(".top-filter-bar").outerHeight()+30,menuItems=sidebarMenu.find("a"),scrollItems=menuItems.map(function(){var item=$($(this).attr("href"));if(item.length)return item});menuItems.click(function(e){var href=$(this).attr("href"),offsetTop="#"===href?0:$(href).offset().top-topMenuHeight+1;$("html, body").stop().animate({scrollTop:offsetTop},850),e.preventDefault()}),$(window).scroll(function(){var fromTop=$(this).scrollTop()+topMenuHeight,cur=scrollItems.map(function(){if($(this).offset().top<fromTop)return this}),id=(cur=cur[cur.length-1])&&cur.length?cur[0].id:"";id&&($(".sidebar-nav li.active").removeClass("active"),$(`.sidebar-nav li a[href="#${id}"]`).parent().addClass("active"))})}),document.querySelectorAll('a[href^="#"]').forEach(anchor=>{anchor.addEventListener("click",function(e){e.preventDefault(),document.querySelector(this.getAttribute("href")).scrollIntoView({behavior:"smooth"})})});
2//# sourceURL=https://367443.fs1.hubspotusercontent-na1.net/hubfs/367443/hub_generated/template_assets/1/73798709149/1776267883360/template_main.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.