1function DialogTrigger(callback,options){var defaults={trigger:'timeout',target:'',timeout:0,percentDown:50,percentUp:10,scrollInterval:1000} 2this.complete=!1;this.callback=callback;this.timer=null;this.interval=null;this.options=jQuery.extend(defaults,options);this.init=function(){if(this.options.trigger=='exitIntent'||this.options.trigger=='exit_intent'){var parentThis=this;jQuery(document).on('mouseleave',function(e){if(!parentThis.complete&&e.clientY<0){parentThis.callback();parentThis.complete=!0;jQuery(document).off('mouseleave')}})}else if(this.options.trigger=='target'){if(this.options.target!==''){if(jQuery(this.options.target).length==0){this.complete=!0}else{var targetScroll=jQuery(this.options.target).offset().top;var parentThis=this;this.interval=setInterval(function(){if(jQuery(window).scrollTop()>=targetScroll){clearInterval(parentThis.interval);parentThis.interval=null;if(!parentThis.complete){parentThis.callback();parentThis.complete=!0}}},this.options.scrollInterval)}}}else if(this.options.trigger=='scrollDown'){var scrollStart=jQuery(window).scrollTop();var pageHeight=jQuery(document).height();var parentThis=this;if(pageHeight>0){this.interval=setInterval(function(){var scrollAmount=jQuery(window).scrollTop()-scrollStart;if(scrollAmount<0){scrollAmount=0;scrollStart=jQuery(window).scrollTop()} 3var downScrollPercent=parseFloat(scrollAmount)/parseFloat(pageHeight);if(downScrollPercent>parseFloat(parentThis.options.percentDown)/100){clearInterval(parentThis.interval);parentThis.interval=null;if(!parentThis.complete){parentThis.callback();parentThis.complete=!0}}},this.options.scrollInterval)}}else if(this.options.trigger=='scrollUp'){var scrollStart=jQuery(window).scrollTop();var pageHeight=jQuery(document).height();var parentThis=this;if(pageHeight>0){this.interval=setInterval(function(){var scrollAmount=scrollStart-jQuery(window).scrollTop();if(scrollAmount<0){scrollAmount=0;scrollStart=jQuery(window).scrollTop()} 4var upScrollPercent=parseFloat(scrollAmount)/parseFloat(pageHeight);if(upScrollPercent>parseFloat(parentThis.options.percentUp)/100){clearInterval(parentThis.interval);parentThis.interval=null;if(!parentThis.complete){parentThis.callback();parentThis.complete=!0}}},this.options.scrollInterval)}}else if(this.options.trigger=='timeout'){this.timer=setTimeout(this.callback,this.options.timeout)}};this.cancel=function(){if(this.timer!==null){clearTimeout(this.timer);this.timer=null} 5if(this.interval!==null){clearInterval(this.interval);this.interval=null} 6this.complete=!0} 7this.init()}
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.