1var $scrolltotop=null;scrollToTop=function(){if("undefined"!=typeof arAsproOptions&&"NONE"!==arAsproOptions.THEME.SCROLLTOTOP_TYPE){scrollToTopAnimateClassIn=-1!==arAsproOptions.THEME.SCROLLTOTOP_TYPE.indexOf("ROUND")?"rotateIn":"rubberBand",scrollToTopAnimateClassOut=-1!==arAsproOptions.THEME.SCROLLTOTOP_TYPE.indexOf("ROUND")?"rotateOut":"flipOutX",BX.browser.IsMac()&&(scrollToTopAnimateClassIn=scrollToTopAnimateClassOut="");var _isScrolling=!1;$("body").append($("<a />").addClass("scroll-to-top "+arAsproOptions.THEME.SCROLLTOTOP_TYPE+" "+arAsproOptions.THEME.SCROLLTOTOP_POSITION).attr({href:"#",id:"scrollToTop"})),$scrolltotop=$("#scrollToTop"),"TOUCH"!==arAsproOptions.THEME.SCROLLTOTOP_POSITION&&arAsproOptions.THEME.SCROLLTOTOP_POSITION_RIGHT&&$scrolltotop.css({right:arAsproOptions.THEME.SCROLLTOTOP_POSITION_RIGHT+"px",left:"auto"}),$scrolltotop.click((function(e){return e.preventDefault(),$("body, html").animate({scrollTop:0},500),!1})),$(window).scroll((function(){_isScrolling||(_isScrolling=!0,$(window).scrollTop()>150?($scrolltotop.stop(!0,!0).addClass("visible"),_isScrolling=!1):($scrolltotop.stop(!0,!0).removeClass("visible"),_isScrolling=!1),CheckScrollToTop())})),$(window).resize((function(){CheckScrollToTop()}))}},CheckScrollToTop=function(){if("undefined"!=typeof arAsproOptions){"NONE"!==arAsproOptions.THEME.SCROLLTOTOP_TYPE&&$scrolltotop&&(documentScrollTop>150?($scrolltotop.stop(!0,!0).addClass("visible").addClass("animated"),scrollToTopAnimateClassOut&&$scrolltotop.removeClass(scrollToTopAnimateClassOut),scrollToTopAnimateClassIn&&$scrolltotop.addClass(scrollToTopAnimateClassIn)):($scrolltotop.stop(!0,!0).removeClass("visible"),scrollToTopAnimateClassIn&&$scrolltotop.removeClass(scrollToTopAnimateClassIn),scrollToTopAnimateClassOut&&$scrolltotop.addClass(scrollToTopAnimateClassOut)));var bottom=23,scrollVal=$(window).scrollTop(),windowHeight=$(window).height();if(arAsproOptions.THEME.SCROLLTOTOP_POSITION_BOTTOM&&(bottom=parseFloat(arAsproOptions.THEME.SCROLLTOTOP_POSITION_BOTTOM)),parseInt($scrolltotop.css("bottom"))>bottom&&(bottom=Math.round(bottom)),$("footer").length){var footerOffset=$("footer").offset().top;scrollVal+windowHeight>footerOffset&&(bottom=Math.round(bottom+scrollVal+windowHeight-Math.round(footerOffset)))}$scrolltotop.css("bottom",bottom+"px")}}; 2//# sourceMappingURL=scroll_to_top.min.js.map
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.