PageSourceSearch

https://thedancinghorses.com/wp-content/themes/ninezeroseven/assets/js/jquery.sticky.js?ver=5.3.16

js thedancinghorses.com collected 2026-09-29 22:05:17 UTC 2,649 bytes, 12 lines download raw bytes

1// Sticky Plugin v1.0.0 for jQuery
2// =============
3// Author: Anthony Garand
4// Improvements by German M. Bravo (Kronuz) and Ruud Kamphuis (ruudk)
5// Improvements by Leonardo C. Daronco (daronco)
6// Created: 2/14/2011
7// Date: 2/12/2012
8// Website: http://labs.anthonygarand.com/sticky
9// Description: Makes an element on the page stick on the screen as you scroll
10//       It will only set the 'top' and 'position' of your element, you
11//       might need to adjust the width in some cases.
12!function(t){"use strict";var e={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:""},i=t(window),n=t(document),s=[],a=i.height(),r=function(){for(var e=i.scrollTop(),r=n.height(),o=r-a,c=e>o?o-e:0,p=0;p<s.length;p++){var l=s[p];if(e<=l.stickyWrapper.offset().top-l.topSpacing-c)null!==l.currentTop&&(l.stickyElement.css("position","").css("top",""),l.stickyElement.parent().removeClass(l.className),l.stickyElement.removeClass(l.className),l.currentTop=null);else{var d=r-l.stickyElement.outerHeight()-l.topSpacing-l.bottomSpacing-e-c;d<0?d+=l.topSpacing:d=l.topSpacing,l.currentTop!=d&&(l.stickyElement.css("position","fixed").css("top",d),void 0!==l.getWidthFrom&&l.stickyElement.css("width",t(l.getWidthFrom).width()),l.stickyElement.parent().addClass(l.className),l.stickyElement.addClass(l.className),l.currentTop=d)}}},o=function(){a=i.height()},c={init:function(i){var n=t.extend(e,i);return this.each(function(){var e=t(this),i=e.attr("id"),a=t("<div></div>").attr("id",i+"-sticky-wrapper").addClass(n.wrapperClassName);e.wrapAll(a),n.center&&e.parent().css({width:e.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"==e.css("float")&&e.css({float:"none"}).parent().css({float:"right"});var r=e.parent();r.css("min-height",e.outerHeight()),s.push({topSpacing:n.topSpacing,bottomSpacing:n.bottomSpacing,stickyElement:e,currentTop:null,stickyWrapper:r,className:n.className,getWidthFrom:n.getWidthFrom})})},unstick:function(){return this.each(function(){var e=t(this);e.unwrap(),e.attr("style",""),s=s.filter(function(t){return t.stickyElement[0]!=e[0]})})},restick:function(){c.unstick.apply(this),c.init.apply(this,arguments),r()},update:r};window.addEventListener?(window.addEventListener("scroll",r,!1),window.addEventListener("resize",o,!1)):window.attachEvent&&(window.attachEvent("onscroll",r),window.attachEvent("onresize",o)),t.fn.sticky=function(e){return c[e]?c[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.sticky"):c.init.apply(this,arguments)},t(function(){setTimeout(r,0)})}(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.