PageSourceSearch

https://www.blackhawkgaragedoor.com/wp-content/cache/min/1/wp-cont…/clopay-1/assets/js/main.js?ver=1787153351

js blackhawkgaragedoor.com collected 2026-10-09 01:25:00 UTC 6,402 bytes, 13 lines download raw bytes

1var FX=(function(FX,$){FX.Affix={windowHeight:0,init:function(){this.windowHeight=$(window).height();this.bind();console.log('affix init')},bind:function(e){$(window).on('scroll',this.scroll);$(window).on('resize',this.updateWindowHeight)},scroll:function(e){var fromTopPx=200;var scrolledFromtop=$(window).scrollTop();if(scrolledFromtop>250){$('#page-header').addClass('hideheader')}else{$('#page-header').removeClass('hideheader')}
2if(scrolledFromtop>fromTopPx){$('#page-header').addClass('js-scrolled')}else{$('#page-header').removeClass('js-scrolled')}}};FX.Galleries={init:function(){var self=FX.Galleries,$galleries=$('.gallery');$galleries.each(self.initGallery)},initGallery:function(){var self=FX.Galleries,$gallery=$(this);gallery_id=$gallery.attr('id'),$items=$gallery.find('div.gallery-item'),$all_items=$items.clone();self.fancybox($items,gallery_id);if($gallery.hasClass('video-gallery')){var $dropdown=$gallery.find('select.videofx_video_category');$dropdown.change(function(){var val=$dropdown.val();$items.remove();$items=$all_items.clone();if(val){$items=$items.filter('[data-categories~='+val+']')}
3$gallery.append($items);self.fancybox($items,gallery_id)})}},fancybox:function($figures,gallery_id){var self=FX.Galleries,$items=$figures.find('a');$items.attr('rel',gallery_id);$items.fancybox({helpers:{thumbs:{width:100,height:100},media:{}}})}}
4FX.Gallery=function(el){var self=this;self._el=el;self._init=function(){self._main=self._el.find('.fxgallery-main');self._thumbs=self._el.find('.fxgallery-thumb');self._thumbs.click(self._clickThumb)};self._clickThumb=function(event){var $thumb=$(this),img=$thumb.data('img');event.preventDefault();self._thumbs.removeClass('active');$thumb.addClass('active');self._main.attr('src',img)};self._init()}
5$.fn.fxgallery=function(){if(this.length>0){var gallery=new FX.Gallery(this)}}
6FX.ExternalLinks={init:function(){$('a:not([href^="'+FX.siteurl+'"]):not([href^="#"]):not([href^="/"])').addClass('external')}}
7FX.ImAHuman={num:"0xFF9481",forms:void 0,init:function(){this.setup()},setup:function(){this.forms=document.getElementsByTagName("form");this.bind()},bind:function(){for(var i=0;this.forms.length>i;i++){$(this.forms[i]).on("focus click",this.markAsHuman)}},markAsHuman:function(){$(this).find('.imahuman, [name="imahuman"]').attr("value",parseInt(FX.ImAHuman.num,16))}}
8FX.SearchTrigger={init:function(){this.bind()},bind:function(){$('.header--search').on('click',this.toggleVisibility);$('#search-close').on('click',this.close)},toggleVisibility:function(event){event.preventDefault();$('.header--search, #site-search-popup').toggleClass('active')},close:function(event){event.preventDefault();$('.header--search, #site-search-popup').removeClass('active')}}
9FX.SmoothAnchors={init:function(){this.bind()},bind:function(){$('a[href^="#"]').on('click',this.scrollToSmooth)},scrollToSmooth:function(event){if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){var $target=$(this.hash);console.log($target);$target=$target.length&&$target||$('[name='+this.hash.slice(1)+']');if($target.length){setTimeout(function(){var targetOffset=$target.offset().top;$('html,body').animate({scrollTop:targetOffset},600)},100);return!1}}}}
10FX.Social={init:function(){$(".js-social-share").on("click",this.open)},open:function(event){event.preventDefault();FX.Social.windowPopup($(this).attr("href"),500,300)},windowPopup:function(url,width,height){var left=(screen.width/2)-(width/2),top=(screen.height/2)-(height/2);window.open(url,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,width="+width+",height="+height+",top="+top+",left="+left)}}
11FX.Tabs=function(el){var self=this;self._el=el;self._init=function(){self._contents=self._el.find('div.tab-data');self._tabs=self._el.find('ul.tabs>li>a');self._mobileTabs=self._el.find('.mobile-tab-header>a');self._tabs.click(self._clickTab);self._mobileTabs.click(self._clickTab)};self._clickTab=function(event){var $tab=$(this),target_id=$tab.attr('href'),target_class=target_id.replace('#','.'),$target=self._contents.filter(target_id);event.preventDefault();self._tabs.parent().removeClass('tab--active');self._tabs.parent(target_class).addClass('tab--active');self._mobileTabs.parent().removeClass('active');self._mobileTabs.parent(target_class).addClass('active');self._contents.removeClass('active');$target.addClass('active')};self._init()}
12$.fn.fxtabs=function(){if(this.length>0){var tabs=new FX.Tabs(this)}}
13$(function(){FX.ExternalLinks.init();FX.Galleries.init();FX.ImAHuman.init();FX.SearchTrigger.init();FX.SmoothAnchors.init();FX.Affix.init();$('.product-info-tabs').fxtabs();$('input').iCheck();$('select').selectric();$('.slider-form__close').click(function(){$('#wpcf7-f4637-o1').hide()});$('.menu-toggle').click(function(){$('.menu-toggle, .nav--main, #masthead').toggleClass('active')});$('.nav--primary').after('<span class="main-menu-toggle icon-menu desk--hide"><span class="menu-text">Menu</span></span>');$('.main-menu-toggle').click(function(){$('.nav--primary').toggleClass('active')});$('.nav--primary li.menu-item-has-children > a, .nav--primary li.menu-item-type-custom > a, .menu--tools .menu li.menu-item-has-children > a, .industry-menu > ul > li.menu-item-has-children >
13 a').after('<span class="sub-menu-toggle icon-chevron-thin-down desk--hide"></span>');$('.sub-menu-toggle').click(function(){var $this=$(this),$parent=$this.parent("li"),$wrap=$parent.children(".sub-menu");$wrap.toggleClass("toggled");$parent.toggleClass("toggled");$this.toggleClass("toggled")});$('.home-slider').slick({autoplay:!0,autoplaySpeed:'5000'});$thumbslider=$('.thumbnail-slider');$thumbslider.slick({infinite:!0,slidesToShow:5,slidesToScroll:5,arrows:!0,responsive:[{breakpoint:1080,settings:{slidesToShow:4,slidesToScroll:4,infinite:!0,arrows:!0}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0,arrows:!0}},{breakpoint:640,settings:{slidesToShow:2,slidesToScroll:2,infinite:!0,arrows:!0}}]});$thumbslider.on('init',function(){var $thumbslider=$(this);$thumbslider.closest('.fxgallery').fxgallery()});$thumbslider.closest('.fxgallery').fxgallery();var hash=location.hash,$field=$('form textarea[name=products]');if($field.length>0&&hash.substr(0,9)==="#product:"){var title=hash.substr(9);title=decodeURI(title);$field.html("I am interested in the following:\n"+title)}});return FX}(FX||{},jQuery))

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.