PageSourceSearch

https://hyundai.odessa.ua/sites/all/themes/responsive/js/jquery-scrolltofixed-min.js?tlwxa8

js hyundai.odessa.ua collected 2026-10-06 04:13:57 UTC 4,871 bytes, 1 lines download raw bytes

1!function(o){o.isScrollToFixed=function(i){return!!o(i).data("ScrollToFixed")},o.ScrollToFixed=function(i,e){var t=this;t.$el=o(i),t.el=i,t.$el.data("ScrollToFixed",t);var n,s,l,d,r=!1,c=t.$el,p=0,x=0,f=-1,a=-1,u=null;function F(){var o=t.options.limit;return o?"function"==typeof o?o.apply(c):o:0}function g(){return"fixed"===n}function T(){return"absolute"===n}function S(){return!(g()||T())}function b(){var o;g()||(o=c[0].getBoundingClientRect(),u.css({display:c.css("display"),width:o.width,height:o.height,float:c.css("float")}),cssOptions={"z-index":t.options.zIndex,position:"fixed",top:-1==t.options.bottom?v():"",bottom:-1==t.options.bottom?"":t.options.bottom,"margin-left":"0px"},t.options.dontSetWidth||(cssOptions.width=c.css("width")),c.css(cssOptions),c.addClass(t.options.baseClassName),t.options.className&&c.addClass(t.options.className),n="fixed")}function m(){var o=F(),i=x;t.options.removeOffsets&&(i="",o-=p),cssOptions={position:"absolute",top:o,left:i,"margin-left":"0px",bottom:""},t.options.dontSetWidth||(cssOptions.width=c.css("width")),c.css(cssOptions),n="absolute"}function w(){S()||(a=-1,u.css("display","none"),c.css({"z-index":d,width:"",position:s,left:"",top:l,"margin-left":""}),c.removeClass("scroll-to-fixed-fixed"),t.options.className&&c.removeClass(t.options.className),n=null)}function h(o){o!=a&&(c.css("left",x-o),a=o)}function v(){var o=t.options.marginTop;return o?"function"==typeof o?o.apply(c):o:0}function U(){var i,e,l,d,u;o.isScrollToFixed(c)&&!c.is(":hidden")&&(e=S(),(i=r)?S()&&(p=c.offset().top,x=c.offset().left):(c.trigger("preUnfixed.ScrollToFixed"),w(),c.trigger("unfixed.ScrollToFixed"),a=-1,p=c.offset().top,x=c.offset().left,t.options.offsets&&(x+=c.offset().left-c.position().left),-1==f&&(f=x),n=c.css("position"),r=!0,-1!=t.options.bottom&&(c.trigger("preFixed.ScrollToFixed"),b(),c.trigger("fixed.ScrollToFixed"))),l=o(window).scrollLeft(),d=o(window).scrollTop(),u=F(),t.options.minWidth&&o(window).width()<t.options.minWidth||t.options.maxWidth&&o(window).width()>t.options.maxWidth?S()&&i||(z(),c.trigger("preUnfixed.ScrollToFixed"),w(),c.trigger("unfixed.ScrollToFixed")):-1==t.options.bottom?0<u&&d>=u-v()?e||T()&&i||(z(),c.trigger("preAbsolute.ScrollToFixed"),m(),c.trigger("unfixed.ScrollToFixed")):d>=p-v()?(g()&&i||(z(),c.trigger("preFixed.ScrollToFixed"),b(),a=-1,c.trigger("fixed.ScrollToFixed")),h(l)):S()&&i||(z(),c.trigger("preUnfixed.ScrollToFixed"),w(),c.trigger("unfixed.ScrollToFixed")):0<u?d+o(window).height()-c.outerHeight(!0)>=u-(v()||-(t.options.bottom||0))?g()&&(z(),c.trigger("preUnfixed.ScrollToFixed"),("absolute"===s?m:w)(),c.trigger("unfixed.ScrollToFixed")):(g()||(z(),c.trigger("preFixed.ScrollToFixed"),b()),h(l),c.trigger("fixed.ScrollToFixed")):h(l))}function z(){var o=c.css("position");"absolute"==o?c.trigger("postAbsolute.ScrollToFixed"):"fixed"==o?c.trigger("postFixed.ScrollToFixed"):c.trigger("postUnfixed.ScrollToFixed")}function A(o){c.is(":visible")?(r=!1,U()):w()}function C(o){window.requestAnimationFrame?requestAnimationFrame(U):U()}t.init=function(){t.options=o.extend({},o.ScrollToFixed.defaultOptions,e),d=c.css("z-index"),t.$el.css("z-index",t.options.zIndex),u=o("<div />"),n=c.css("position"),s=c.css("position"),c.css("float"),l=c.css("top"),S()&&t.$el.after(u),o(window).bind("resize.ScrollToFixed",A),o(window).bind("scroll.ScrollToFixed",C),"ontouchmove"in window&&o(window).bind("touchmove.ScrollToFixed",U),t.options.preFixed&&c.bind("preFixed.ScrollToFixed",t.options.preFixed),t.options.postFixed&&c.bind("postFixed.ScrollToFixed",t.options.postFixed),t.options.preUnfixed&&c.bind("preUnfixed.ScrollToFixed",t.options.preUnfixed),t.options.postUnfixed&&c.bind("postUnfixed.ScrollToFixed",t.options.postUnfixed),t.options.preAbsolute&&c.bind("preAbsolute.ScrollToFixed",t.options.preAbsolute),t.options.postAbsolute&&c.bind("postAbsolute.ScrollToFixed",t.options.postAbsolute),t.options.fixed&&c.bind("fixed.ScrollToFixed",t.options.fixed),t.options.unfixed&&c.bind("unfixed.ScrollToFixed",t.options.unfixed),t.options.spacerClass&&u.addClass(t.options.spacerClass),c.bind("resize.ScrollToFixed",(function(){u.height(c.height())})),c.bind("scroll.ScrollToFixed",(function(){c.trigger("preUnfixed.ScrollToFixed"),w(),c.trigger("unfixed.ScrollToFixed"),U()})),c.bind("detach.ScrollToFixed",(function(i){(i=(i=i)||window.event).preventDefault&&i.preventDefault(),i.returnValue=!1,c.trigger("preUnfixed.ScrollToFixed"),w(),c.trigger("unfixed.ScrollToFixed"),o(window).unbind("resize.ScrollToFixed",A),o(window).unbind("scroll.ScrollToFixed",C),c.unbind(".ScrollToFixed"),u.remove(),t.$el.removeData("ScrollToFixed")})),A()},t.init()},o.ScrollToFixed.defaultOptions={marginTop:0,limit:0,bottom:-1,zIndex:1e3,baseClassName:"scroll-to-fixed-fixed"},o.fn.scrollToFixed=function(i){return this.each((function(){new o.ScrollToFixed(this,i)}))}}(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.