PageSourceSearch

https://geekpartnership.org/wp-content/themes/colormag/assets/js/colormag-custom.min.js?ver=4.2.1

js geekpartnership.org collected 2026-09-24 11:36:37 UTC 9,309 bytes, 1 lines download raw bytes

1function colormagInit(){var e=function(){jQuery("#cm-masthead .search-form-top").removeClass("show"),jQuery("#cm-content").removeClass("backdrop")};jQuery(document).off("click.colormag",".search-top").on("click.colormag",".search-top",(function(){jQuery(this).next("#cm-masthead .search-form-top").toggleClass("show"),jQuery("#cm-content").toggleClass("backdrop"),requestAnimationFrame((function(){jQuery("#cm-masthead .search-form-top input").focus()})),function(){var e=jQuery(".cm-desktop-row .search-form-top.show, .cm-mobile-row .search-form-top.show");if(e.length){e.css({right:"",left:""});var t=e[0].getBoundingClientRect(),o=window.innerWidth;t.right>o?(e.css({right:0,left:"auto"}),e.css({"--arrow-right":"10px"})):t.left<0&&(e.css({left:0,right:"auto"}),e.css({"--arrow-left":"10px"}))}}(),jQuery(document).off("keyup.colormag").on("keyup.colormag",(function(t){27===t.keyCode&&jQuery("#cm-masthead .search-form-top").hasClass("show")&&e()})),jQuery(document).off("click.outEvent.colormag").on("click.outEvent.colormag",(function(t){t.target.closest(".cm-top-search")||(e(),jQuery(document).off("click.outEvent.colormag"))}))})),jQuery("#scroll-up").hide(),jQuery(window).off("scroll.colormag").on("scroll.colormag",(function(){jQuery(this).scrollTop()>1e3?jQuery("#scroll-up").fadeIn():jQuery("#scroll-up").fadeOut()})),jQuery("a#scroll-up").off("click.colormag").on("click.colormag",(function(){return"scrollBehavior"in document.documentElement.style?window.scrollTo({top:0,behavior:"smooth"}):jQuery("body,html").animate({scrollTop:0},800),!1})),jQuery(".cm-menu-primary-container .menu-item-has-children"),jQuery(".cm-submenu-toggle").off("click.colormag").on("click.colormag",(function(){jQuery(this).parent(".menu-item-has-children").children("ul.sub-menu").first().slideToggle("1000")})),jQuery(document).off("click.colormag","#cm-primary-nav ul li.menu-item-has-children > a").on("click.colormag","#cm-primary-nav ul li.menu-item-has-children > a",(function(e){var t=jQuery(this).parent(".menu-item-has-children");!t.hasClass("focus")&&jQuery(window).width()<=768&&(t.addClass("focus"),e.preventDefault(),t.children(".sub-menu").css({display:"block"}))}));let t,o=document.getElementsByClassName("cm-header-builder");function i(){if(window.matchMedia("(max-width: 768px)").matches&&jQuery("#cm-masthead .sticky-wrapper, .cm-header-bottom-row .sticky-wrapper, #cm-masthead .headroom").length>=1){var e=jQuery(window).height()-88,t=jQuery("#cm-primary-nav").find("ul").first();t.css("max-height",e),t.addClass("menu-scrollbar")}}var r,a,n,c,s,u,l,d,m,p,f;(t=o.length>0?".cm-header-bottom-row":".cm-primary-nav","complete"===document.readyState?i():jQuery(window).off("load.colormag").on("load.colormag",i),void 0!==jQuery.fn.magnificPopup&&(jQuery(".image-popup").magnificPopup({type:"image"}),jQuery(".gallery").find('a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"], a[href*=".ico"]').magnificPopup({type:"image",gallery:{enabled:!0}}),jQuery(".colormag-ticker-news-popup-link").magnificPopup({type:"ajax",callbacks:{parseAjax:function(e){var t=jQuery.magnificPopup.instance,o=jQuery(t.currItem.el[0]).data("fragment");e.data=jQuery(e.data).find(o)}}})),void 0!==jQuery.fn.fitVids&&jQuery(".fitvids-video").fitVids(),void 0!==jQuery.fn.newsTicker&&jQuery(".newsticker").not("[data-cm-init]").each((function(){jQuery(this).attr("data-cm-init","1").newsTicker({row_height:20,max_rows:1,speed:1e3,direction:"down",duration:4e3,autostart:1,pauseOnHover:1,start:function(){jQuery(".newsticker").css("visibility","visible")}})})),void 0!==jQuery.fn.sticky)&&((g=jQuery("#wpadminbar")).length?jQuery(t).sticky({topSpacing:g.height(),zIndex:999}):jQuery(t).sticky({topSpacing:0,zIndex:999}));if(jQuery(".wp-block-search__input").attr("placeholder","Search posts"),void 0!==jQuery.fn.headroom){var y=jQuery(t).offset().top,g=jQuery("#wpadminbar"),h=jQuery(t).width();g.length&&(y=g.height()+jQuery(t).offset().top),jQuery(t).headroom({offset:y,tolerance:0,onPin:function(){g.length?jQuery(t).css({top:g.height(),position:"fixed",width:h}):jQuery(t).css({top:0,position:"fixed","z-index":999,width:h})},onTop:function(){jQuery(t).css({top:0,position:"relative"})}})}if(void 0!==jQuery.fn.bxSlider&&(jQuery(".cm-slider-area-rotate").not("[data-cm-init]").each((function(){jQuery(this).attr("data-cm-init","1").bxSlider({mode:"horizontal",speed:1500,auto:!0,pause:5e3,adaptiveHeight:!0,nextText:"",prevText:"",nextSelector:".slide-next",prevSelector:".slide-prev",pager:!1,tickerHover:!0,onSliderLoad:function(){jQuery(".cm-slider-area-rotate").css("visibility","visible"),jQuery(".cm-slider-area-rotate").css("height","auto")}})})),jQuery(".blog .gallery-images, .archive .gallery-images, .search .gallery-images, .single-post .gallery-images").not("[data-cm-init]").each((function(){jQuery(this).attr("data-cm-init","1").bxSlider({mode:"fade",speed:1500,auto:!0,pause:3e3,adaptiveHeight:!0,nextText:"",prevText:"",nextSelector:".slide-next",prevSelector:".slide-prev",pager:!1})}))),void 0!==jQuery.fn.easytabs&&jQuery(".cm-tabbed-widget").easytabs(),void 0!==jQuery.fn.theiaStickySidebar&&"undefined"!=typeof ResizeSensor){var v=jQuery("#site-navigation-sticky-wrapper").outerHeight();null===v&&(v=0),jQuery("#cm-primary, #cm-secondary, #tertiary").the
1iaStickySidebar({additionalMarginTop:40+v})}function j(e){e.find(".player-frame").each((function(){var e=jQuery(this),t=jQuery('[data-id="'+e.attr("id")+'"]');e.addVideoEvent("play",(function(e,o,i){t.removeClass("is-paused").addClass("is-playing")})),e.addVideoEvent("pause",(function(e,o,i){t.removeClass("is-playing").addClass("is-paused")})),e.addVideoEvent("finish",(function(e,o,i){t.removeClass("is-paused is-playing")}))}))}if(jQuery(".video-player").each((function(e){var t=jQuery(this),o="video-playlist-item-"+e,i=jQuery(this).find(".player-frame");t.attr("id",o),i.video(),j(t),i.addVideoEvent("ready",(function(){i.css("visibility","visible").fadeIn()})),t.off("click.colormag",".video-playlist-item").on("click.colormag",".video-playlist-item",(function(){var e=jQuery(this),o=e.data("id"),i=jQuery("#"+o),r=e.data("src");t.find(".player-frame").each((function(){jQuery(this).pauseVideo().hide()})),i.length?i.playVideo():(t.find(".video-frame").append('<iframe id="'+o+'" class="player-frame" src="'+r+'" frameborder="0" width="100%" height="434" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),(i=jQuery("#"+o)).video(),i.addVideoEvent("ready",(function(e,t,o){i.playVideo()}))),i.css("visibility","visible").fadeIn(),j(t)}))})),"undefined"!=typeof google&&"undefined"!=typeof colormag_google_maps_widget_settings){r=parseFloat(colormag_google_maps_widget_settings.longitude),a=parseFloat(colormag_google_maps_widget_settings.latitude),n=parseInt(colormag_google_maps_widget_settings.zoom_size),c={lat:a,lng:r},s=new google.maps.Map(document.getElementById("GoogleMaps"),{zoom:n,center:c}),new google.maps.Marker({position:c,map:s}),jQuery("#GoogleMaps").css({height:colormag_google_maps_widget_settings.height})}m=jQuery(".share-buttons #facebook")[0],p=jQuery(".share-buttons #twitter")[0],f=jQuery(".share-buttons #pinterest")[0],m&&jQuery(m).off("click.colormag").on("click.colormag",(function(e){return e.preventDefault(),(u=window.open("https://www.facebook.com/sharer/sharer.php?u="+document.URL+"&p[title]="+document.title,"facebook-popup","height=350,width=600")).focus&&u.focus(),!1})),p&&jQuery(p).off("click.colormag").on("click.colormag",(function(e){return e.preventDefault(),(l=window.open("https://twitter.com/share?text="+document.title+"&url="+document.URL,"twitter-popup","height=350,width=600")).focus&&l.focus(),!1})),f&&jQuery(f).off("click.colormag").on("click.colormag",(function(e){e.preventDefault();var t=jQuery(".cm-posts .cm-featured-image img").attr("src")?jQuery(".cm-posts .cm-featured-image img").attr("src"):"";return(d=window.open("https://pinterest.com/pin/create/button/?url="+document.URL+"&media="+t+"&description="+document.title,"pinterest-popup","height=350,width=600")).focus&&d.focus(),!1}))}if(jQuery(".wp-block-group__inner-container h2").wrap('<div class="block-title"></div>'),jQuery(".wp-block-heading").wrap('<div class="block-title"></div>'),jQuery(document).ready((function(){colormagInit()})),"undefined"!=typeof wp&&wp.customize&&(wp.customize.bind("preview-ready",(function(){colormagInit()})),wp.customize.preview&&(wp.customize.preview.bind("url",(function(){colormagInit()})),wp.customize.preview.bind("section",(function(){colormagInit()}))),wp.customize.bind("change",(function(){setTimeout((function(){colormagInit()}),100)})),wp.customize.bind("preview-url",(function(){colormagInit()}))),"undefined"!=typeof MutationObserver){var observer=new MutationObserver((function(e){var t=!1;e.forEach((function(e){if("childList"===e.type){var o=e.target;o&&(o.classList.contains("cm-header-builder")||o.classList.contains("cm-desktop-row")||o.classList.contains("cm-mobile-row")||o.closest(".cm-header-builder"))&&(t=!0)}})),t&&(observer.disconnect(),setTimeout((function(){colormagInit();var e=document.querySelector(".cm-header-builder");e&&observer.observe(e,{childList:!0,subtree:!0})}),50))}));jQuery(document).ready((function(){var e=document.querySelector(".cm-header-builder");e&&observer.observe(e,{childList:!0,subtree:!0})}))}

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.