PageSourceSearch

https://formpakinc.com/wp-content/mmr/574307c4-1786428168.min.js

js formpakinc.com collected 2026-10-06 19:49:29 UTC 14,242 bytes, 35 lines download raw bytes

1(function($,window,document,undefined){window.jetslothLightboxDefaults=gform.applyFilters('gfic_lightbox_defaults',{sourceAttr:'href',overlay:!0,spinner:!0,nav:!0,navText:['‹','›'],captions:!0,captionDelay:0,captionSelector:'self',captionType:'attr',captionsData:'title',captionPosition:'bottom',captionClass:'',close:!0,closeText:'×',swipeClose:!0,showCounter:!0,fileExt:'png|jpg|jpeg|gif|webp',animationSlide:!0,animationSpeed:250,preloading:!0,enableKeyboard:!0,enableSwipe:!0,loop:!0,rel:!1,docClose:!0,swipeTolerance:50,className:'jetsloth-lightbox',widthRatio:0.8,heightRatio:0.9,scaleImageToRatio:!1,disableRightClick:!1,disableScroll:!0,alertError:!0,alertErrorMessage:'Image not found, next image will be loaded',additionalHtml:!1,history:!0,throttleInterval:0});$.fn.jetslothLightbox=function(options){var options=$.extend(window.jetslothLightboxDefaults,options);var touchDevice=('ontouchstart' in window),pointerEnabled=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,touched=function(event){if(touchDevice)return!0;if(!pointerEnabled||typeof event==='undefined'||typeof event.pointerType==='undefined')return!1;if(typeof event.MSPOINTER_TYPE_MOUSE!=='undefined'){if(event.MSPOINTER_TYPE_MOUSE!=event.pointerType)return!0}else{if(event.pointerType!='mouse')return!0}
2return!1},swipeDiff=0,swipeYDiff=0,curImg=$(),transPrefix=function(){var s=document.body||document.documentElement;s=s.style;if(s.WebkitTransition==='')return'-webkit-';if(s.MozTransition==='')return'-moz-';if(s.OTransition==='')return'-o-';if(s.transition==='')return'';return!1},opened=!1,loaded=[],getRelated=function(rel,jqObj){var $related=jqObj.filter(function(){return($(this).attr('rel')===rel)});return $related},objects=(options.rel&&options.rel!==!1)?getRelated(options.rel,$(this)):this,transPrefix=transPrefix(),globalScrollbarwidth=0,canTransisions=(transPrefix!==!1)?!0:!1,supportsPushState=('pushState' in history),historyhasChanged=!1,historyUpdateTimeout,winLoc=window.location,getHash=function(){return winLoc.hash.substring(1)},initialHash=getHash(),updateHash=function(){var hash=getHash(),newHash='pid='+(index+1);var newURL=winLoc.href.split('#')[0]+'#'+newHash;if(supportsPushState){history[historyhasChanged?'replaceState':'pushState']('',document.title,newURL)}else{if(historyhasChanged){winLoc.replace(newURL)}else{winLoc.hash=newHash}}
3historyhasChanged=!0},resetHash=function(){if(supportsPushState){history.pushState('',document.title,winLoc.pathname+winLoc.search)}else{winLoc.hash=''}
4clearTimeout(historyUpdateTimeout)},updateURL=function(){if(!historyhasChanged){updateHash()}else{historyUpdateTimeout=setTimeout(updateHash,800)}},throttle=function(func,limit){var inThrottle;return function(){var args=arguments;var context=this;if(!inThrottle){func.apply(context,args);inThrottle=!0;setTimeout(function(){return inThrottle=!1},limit)}}},prefix='jetslothlb',overlay=$('<div>').addClass('jl-overlay'),closeBtn=$('<button>').addClass('jl-close').html(options.closeText),spinner=$('<div>').addClass('jl-spinner').html('<div></div>'),nav=$('<div>').addClass('jl-navigation').html('<button class="jl-prev">'+options.navText[0]+'</button><button class="jl-next">'+options.navText[1]+'</button>'),counter=$('<div>').addClass('jl-counter').html('<span class="jl-current"></span>/<span class="jl-total"></span>'),animating=!1,index=0,startIndex=0,caption=$('<div>').addClass('jl-caption '+options.captionClass+' pos-'+options.captionPosition),image=$('<div>').addClass('jl-image'),wrapper=$('<div>').addClass('jl-wrapper').addClass(options.className),isValidLink=function(element){if(!options.fileExt)return!0;var filEext=/\.([0-9a-z]+)(?=[?#])|(\.)(?:[\w]+)$/gmi;var testExt=$(element).attr(options.sourceAttr).match(filEext);return testExt&&$(element).prop('tagName').toLowerCase()=='a'&&(new RegExp('\.('+options.fileExt+')$','i')).test(testExt)},setup=function(){if(options.close)closeBtn.appendTo(wrapper);if(options.showCounter){if(objects.length>1){counter.appendTo(wrapper);counter.find('.jl-total').text(objects.length)}}
5if(options.nav)nav.appendTo(wrapper);if(options.spinner)spinner.appendTo(wrapper);},openImage=function(elem){elem.trigger($.Event('show.jetslothlightbox'));if(options.disableScroll)globalScrollbarwidth=handleScrollbar('hide');wrapper.appendTo('body');image.appendTo(wrapper);if(options.overlay)overlay.appendTo($('body'));animating=!0;index=objects.index(elem);curImg=$('<img/>').hide().attr('src',elem.attr(options.sourceAttr));if(loaded.indexOf(elem.attr(options.sourceAttr))==-1){loaded.push(elem.attr(options.sourceAttr))}
6image.html('').attr('style','');curImg.appendTo(image);addEvents();overlay.fadeIn('fast');$('.jl-close').fadeIn('fast');spinner.show();nav.fadeIn('fast');$('.jl-wrapper .jl-counter .jl-current').text(index+1);counter.fadeIn('fast');adjustImage();if(options.preloading)preload();setTimeout(function(){elem.trigger($.Event('shown.jetslothlightbox'))},options.animationSpeed)},adjustImage=function(dir){if(!curImg.length)return;var tmpImage=new Image(),windowWidth=window.innerWidth*options.widthRatio,windowHeight=window.innerHeight*options.heightRatio;tmpImage.src=curImg.attr('src');$(tmpImage).on('error',function(ev){objects.eq(index).trigger($.Event('error.jetslothlightbox'));animating=!1;opened=!0;spinner.hide();var dirDefinined=(dir==1||dir==-1);if(startIndex===index&&dirDefinined){close();return}
7if(options.alertError){alert(options.alertErrorMessage)}
8if(dirDefinined){loadImage(dir)}else{loadImage(1)}
9return});tmpImage.onload=function(){if(typeof dir!=='undefined'){objects.eq(index).trigger($.Event('changed.jetslothlightbox')).trigger($.Event((dir===1?'nextDone':'prevDone')+'.jetslothlightbox'))}
10if(options.history){updateURL()}
11if(loaded.indexOf(curImg.attr('src'))==-1){loaded.push(curImg.attr('src'))}
12var imageWidth=tmpImage.width,imageHeight=tmpImage.height;if(options.scaleImageToRatio||imageWidth>windowWidth||imageHeight>windowHeight){var ratio=imageWidth/imageHeight>windowWidth/windowHeight?imageWidth/windowWidth:imageHeight/windowHeight;imageWidth/=ratio;imageHeight/=ratio}
13$('.jl-image').css({'top':(window.innerHeight-imageHeight)/2+'px','left':(window.innerWidth-imageWidth-globalScrollbarwidth)/2+'px'});spinner.hide();curImg.css({'width':imageWidth+'px','height':imageHeight+'px'}).fadeIn('fast');opened=!0;var cSel=(options.captionSelector=='self')?objects.eq(index):objects.eq(index).find(options.captionSelector);var captionText;if(options.captionType=='data'){captionText=cSel.data(options.captionsData)}else if(options.captionType=='text'){captionText=cSel.html()}else{captionText=cSel.prop(options.captionsData)}
14if(!options.loop){if(index===0){$('.jl-prev').hide()}
15if(index>=objects.length-1){$('.jl-next').hide()}
16if(index>0){$('.jl-prev').show()}
17if(index<objects.length-1){$('.jl-next').show()}}
18if(objects.length==1)$('.jl-prev, .jl-next').hide();if(dir==1||dir==-1){var css={'opacity':1.0};if(options.animationSlide){if(canTransisions){slide(0,100*dir+'px');setTimeout(function(){slide(options.animationSpeed/1000,0+'px')},50)}else{css.left=parseInt($('.jl-image').css('left'))+100*dir+'px'}}
19$('.jl-image').animate(css,options.animationSpeed,function(){animating=!1;setCaption(captionText,imageWidth)})}else{animating=!1;setCaption(captionText,imageWidth)}
20if(options.additionalHtml&&$('.jl-additional-html').length===0){$('<div>').html(options.additionalHtml).addClass('jl-additional-html').appendTo($('.jl-image'))}}},setCaption=function(captiontext,imageWidth){if(captiontext!==''&&typeof captiontext!=="undefined"&&options.captions){caption.html(captiontext).css({'width':imageWidth+'px'}).hide().appendTo($('.jl-image')).delay(options.captionDelay).fadeIn('fast')}},slide=function(speed,pos){var styles={};styles[transPrefix+'transform']='translateX('+pos+')';styles[transPrefix+'transition']=transPrefix+'transform '+speed+'s linear';$('.jl-image').css(styles)},addEvents=function(){$(window).on('resize.'+prefix,adjustImage);$(document).on('click.'+prefix+' touchstart.'+prefix,'.jl-close',function(e){e.preventDefault();if(opened){close()}});if(options.history){setTimeout(function(){$(window).on('hashchange.'+prefix,function(){if(opened){if(getHash()===initialHash){close();return}}})},40)}
21nav.on('click.'+prefix,'button',throttle(function(e){e.preventDefault();swipeDiff=0;loadImage($(this).hasClass('jl-next')?1:-1)},options.throttleInterval));var swipeStart=0,swipeEnd=0,swipeYStart=0,swipeYEnd=0,mousedown=!1,imageLeft=0;if(options.enableSwipe){image.on('touchstart.'+prefix+' mousedown.'+prefix,function(e){if(mousedown)return!0;if(canTransisions)imageLeft=parseInt(image.css('left'));mousedown=!0;swipeDiff=0;swipeYDiff=0;swipeStart=e.originalEvent.pageX||e.originalEvent.touches[0].pageX;swipeYStart=e.originalEvent.pageY||e.originalEvent.touches[0].pageY;return!1}).on('touchmove.'+prefix+' mousemove.'+prefix+' pointermove MSPointerMove',function(e){if(!mousedown)return!0;e.preventDefault();swipeEnd=e.originalEvent.pageX||e.originalEvent.touches[0].pageX;swipeYEnd=e.originalEvent.pageY||e.originalEvent.touches[0].pageY;swipeDiff=swipeStart-swipeEnd;swipeYDiff=swipeYStart-swipeYEnd;if(options.animationSlide){if(canTransisions)slide(0,-swipeDiff+'px');else image.css('left',imageLeft-swipeDiff+'px')}}).on('touchend.'+prefix+' mouseup.'+prefix+' touchcancel.'+prefix+' mouseleave.'+prefix+' pointerup pointercancel MSPointerUp MSPointerCancel',function(e){if(mousedown){mousedown=!1;var possibleDir=!0;if(!options.loop){if(index===0&&swipeDiff<0){possibleDir=!1}
22if(index>=objects.length-1&&swipeDiff>0){possibleDir=!1}}
23if(Math.abs(swipeDiff)>options.swipeTolerance&&possibleDir){loadImage(swipeDiff>0?1:-1)}else if(options.animationSlide){if(canTransisions)slide(options.animationSpeed/1000,0+'px');else image.animate({'left':imageLeft+'px'},options.animationSpeed/2)}
24if(options.swipeClose&&Math.abs(swipeYDiff)>50&&Math.abs(swipeDiff)<options.swipeTolerance){close()}}})}},removeEvents=function(){nav.off('click','button');$(document).off('click.'+prefix,'.jl-close');$(window).off('resize.'+prefix);$(window).off('hashchange.'+prefix)},preload=function(){var next=(index+1<0)?objects.length-1:(index+1>=objects.length-1)?0:index+1,prev=(index-1<0)?objects.length-1:(index-1>=objects.length-1)?0:index-1;$('<img />').attr('src',objects.eq(next).attr(options.sourceAttr)).on('load',function(){if(loaded.indexOf($(this).attr('src'))==-1){loaded.push($(this).attr('src'))}
25objects.eq(index).trigger($.Event('nextImageLoaded.jetslothlightbox'))});$('<img />').attr('src',objects.eq(prev).attr(options.sourceAttr)).on('load',function(){if(loaded.indexOf($(this).attr('src'))==-1){loaded.push($(this).attr('src'))}
26objects.eq(index).trigger($.Event('prevImageLoaded.jetslothlightbox'))})},loadImage=function(dir){objects.eq(index).trigger($.Event('change.jetslothlightbox')).trigger($.Event((dir===1?'next':'prev')+'.jetslothlightbox'));var newIndex=index+dir;if(animating||(newIndex<0||newIndex>=objects.length)&&options.loop===!1)return;index=(newIndex<0)?objects.length-1:(newIndex>
26objects.length-1)?0:newIndex;$('.jl-wrapper .jl-counter .jl-current').text(index+1);var css={'opacity':0};if(options.animationSlide){if(canTransisions)slide(options.animationSpeed/1000,(-100*dir)-swipeDiff+'px');else css.left=parseInt($('.jl-image').css('left'))+ -100*dir+'px'}
27$('.jl-image').animate(css,options.animationSpeed,function(){setTimeout(function(){var elem=objects.eq(index);curImg.attr('src',elem.attr(options.sourceAttr));if(loaded.indexOf(elem.attr(options.sourceAttr))==-1){spinner.show()}
28$('.jl-caption').remove();adjustImage(dir);if(options.preloading)preload();},100)})},close=function(){if(animating)return;var elem=objects.eq(index),triggered=!1;elem.trigger($.Event('close.jetslothlightbox'));if(options.history){resetHash()}
29$('.jl-image img, .jl-overlay, .jl-close, .jl-navigation, .jl-image .jl-caption, .jl-counter').fadeOut('fast',function(){if(options.disableScroll)handleScrollbar('show');$('.jl-wrapper, .jl-overlay').remove();removeEvents();if(!triggered)elem.trigger($.Event('closed.jetslothlightbox'));triggered=!0});curImg=$();opened=!1;animating=!1},handleScrollbar=function(type){var scrollbarWidth=0;if(type=='hide'){var fullWindowWidth=window.innerWidth;if(!fullWindowWidth){var documentElementRect=document.documentElement.getBoundingClientRect();fullWindowWidth=documentElementRect.right-Math.abs(documentElementRect.left)}
30if(document.body.clientWidth<fullWindowWidth){var scrollDiv=document.createElement('div'),padding=parseInt($('body').css('padding-right'),10);scrollDiv.className='jl-scrollbar-measure';$('body').append(scrollDiv);scrollbarWidth=scrollDiv.offsetWidth-scrollDiv.clientWidth;$(document.body)[0].removeChild(scrollDiv);$('body').data('padding',padding);if(scrollbarWidth>0){$('body').addClass('hidden-scroll').css({'padding-right':padding+scrollbarWidth})}}}else{$('body').removeClass('hidden-scroll').css({'padding-right':$('body').data('padding')})}
31return scrollbarWidth};setup();objects.on('click.'+prefix,function(e){if(isValidLink(this)){e.preventDefault();if(animating)return!1;var elem=$(this);startIndex=objects.index(elem);openImage(elem)}});$(document).on('click.'+prefix+' touchstart.'+prefix,function(e){if(opened){if((options.docClose&&$(e.target).closest('.jl-image').length===0&&$(e.target).closest('.jl-navigation').length===0)){close()}}});if(options.disableRightClick){$(document).on('contextmenu','.jl-image img',function(e){return!1})}
32if(options.enableKeyboard){$(document).on('keyup.'+prefix,throttle(function(e){swipeDiff=0;var key=e.keyCode;if(animating&&key==27){curImg.attr('src','');animating=!1;close()}
33if(opened){e.preventDefault();if(key==27){close()}
34if(key==37||e.keyCode==39){loadImage(e.keyCode==39?1:-1)}}},options.throttleInterval))}
35this.open=function(elem){elem=elem||$(this[0]);startIndex=objects.index(elem);openImage(elem)};this.next=function(){loadImage(1)};this.prev=function(){loadImage(-1)};this.close=function(){close()};this.destroy=function(){$(document).off('click.'+prefix).off('keyup.'+prefix);close();$('.jl-overlay, .jl-wrapper').remove();this.off('click')};this.refresh=function(){this.destroy();$(this).jetslothLightbox(options)};return this}})(jQuery,window,document);

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.