PageSourceSearch

https://egitimajansi.com/themes/egitimajansi/js/stickUp.js

js egitimajansi.com collected 2026-10-02 06:32:03 UTC 3,152 bytes, 1 lines download raw bytes

1!function(t){"use strict";var e=t(window),i=function(t,e,i){var o=0;return function(){var s;if(s=new Date,i-(s-o)<=0)return o=s,t.apply(e,arguments)}},o=0,s=function(t){var e=(o++).toString();return function(){return this.cache[e]||(this.cache[e]=t.apply(this)),this.cache[e]}},r=function(){function o(o,s){this.$el=o,this.$el.css({width:this.$el.width()}),this.$wrapper=s.wrapper,"static"===this.$wrapper.css("position")&&this.$wrapper.css("position","relative"),this.sentinel=t("<div></div>").css({position:s.ignore?"absolute":"relative",top:0,height:0}),this.$el.before(this.sentinel),this.offsetTop=s.offsetTop||0,this.offsetBottom=s.offsetBottom||0,this.position=s.position||"top",this.ignore=s.ignore,this.ignore&&this.$el.css({position:"absolute",top:0}),this.handler=i("bottom"==this.position?this.onScrollBottom:this.onScrollTop,this,s.throttle||10),e.on("scroll",this.handler),e.on("resize",this.handler),this.handler()}return t.extend(o.prototype,{state:"top",same:!1,onScrollTop:function(){if(this.cache={},this.ignore||!(this.same||"top"===this.state&&this.isSameHeight())){var t,e=this.getScrollTop()+this.offsetTop;t=e<this.getSentinelTop()?"top":e+this.getOuterHeight()>this.getSentinelBottom()?"bottom":"fixed",this.state===t&&"fixed"===t||this.transferTo(t)}else this.same=!0},onScrollBottom:function(){var t,i;(this.cache={},this.ignore||!(this.same||"top"===this.state&&this.isSameHeight()))?(t=(i=this.getScrollTop()+e.height())>this.getSentinelBottom()?"bottom":i-this.getOuterHeight()<this.getSentinelTop()?"top":"fixed",this.state===t&&"fixed"===t||this.transferTo(t)):this.same=!0},transferTo:function(t){var e;this.state=t,e="top"===this.state?{position:this.ignore?"absolute":"relative",top:0,bottom:""}:"bottom"===this.state?{position:"absolute",top:this.getWrapperHeight()-this.getOuterHeight(),bottom:""}:"bottom"===this.position?{position:"fixed",top:"",bottom:this.offsetBottom}:{position:"fixed",top:this.offsetTop,bottom:""},this.$el.css(e)},isSameHeight:function(){return this.getSentinelBottom()-this.getBottom()-this.offsetBottom<50},getScrollTop:s(function(){return e.scrollTop()}),getWrapperHeight:s(function(){return this.$wrapper.outerHeight()}),getOuterHeight:s(function(){return this.$el.outerHeight(!0)+this.offsetBottom}),getSentinelTop:s(function(){return this.sentinel.offset().top}),getSentinelBottom:s(function(){return this.$wrapper.offset().top+this.getWrapperHeight()+parseInt(this.$wrapper.css("margin-top"),10)}),getBottom:s(function(){return this.$el.offset().top+this.getOuterHeight()}),destroy:function(){this.$el&&(this.transferTo("top"),this.$el=this.$wrapper=null,e.off("scroll",this.handler),e.off("resize",this.handler))}}),o}();t.fn.scrollChaser=function(e){e||(e={}),e.wrapper?e.wrapper instanceof t||(e.wrapper=t(e.wrapper)):e.wrapper=t(document.body),this.scrollChaser=new r(this,e);var i=this,o=this.remove;return this.remove=function(){i.scrollChaser.destroy(),o.apply(i,arguments)},this},t.fn.outerHeight||(t.fn.outerHeight=function(t){var e=this.height();return t||(e-=parseInt(this.css("margin-bottom"),10),e-=parseInt(this.css("margin-top"),10)),e})}(window.jQuery||window.Zepto);

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.