PageSourceSearch

https://claremont.edu/wp-content/themes/Avada/assets/min/js/library/awb-scrollspy.js?ver=7.16.1

js claremont.edu collected 2026-09-24 08:28:22 UTC 2,940 bytes, 1 lines download raw bytes

1!function(t){"use strict";function s(t){return String(t).replace(/["\\]/g,"\\$&")}function e(s,i){this.processWithBind=t.proxy(this.process,this),this.$body=t("body"),this.$scrollElement=t(s).is("body")?t(window):t(s),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",this.processWithBind),this.refresh(),this.process()}e.DEFAULTS={offset:10,currentItemClass:"current-menu-item"},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var s=this,e="offset",i=0;"undefined"==typeof fusion||fusion.isWindow(this.$scrollElement[0])||(e="position",i=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),this.$body.find(this.selector).map((function(){var s=t(this),o=s.data("target")||s.attr("href"),r=/^#./.test(o)&&t(o);return r&&r.length&&r.is(":visible")&&[[r[e]().top+i,o]]||null})).sort((function(t,s){return t[0]-s[0]})).each((function(){s.offsets.push(this[0]),s.targets.push(this[1])}))},e.prototype.process=function(){var t,s,e,i=this.$scrollElement.scrollTop()+this.options.offset,o=this.getScrollHeight(),r=this.options.offset+o-this.$scrollElement.height(),l=this.activeTarget;if(this.scrollHeight!==o&&this.refresh(),t=this.offsets,(s=this.targets).length)if(i>=r)l!==(e=s[s.length-1])&&this.activate(e);else{if(l&&i<t[0])return this.activeTarget=null,void this.clear();for(e=t.length;e--;)l!==s[e]&&i>=t[e]&&(void 0===t[e+1]||i<=t[e+1])&&this.activate(s[e])}},e.prototype.activate=function(e){var i,o,r=this.options.currentItemClass,l=window.location.href.split("#")[0],n="/"===l.charAt(l.length-1)?l:l+"/",h=s(e);e&&(this.activeTarget=e,this.clear(),i=this.selector+'[data-target="'+h+'"],'+this.selector+'[href="'+h+'"],'+this.selector+'[href="'+s(n+e)+'"]',(o=t(i).parents("li").addClass(r)).parent(".sub-menu").length&&(o=o.closest("li.fusion-dropdown-menu").addClass(r)),o.trigger("activate.bs.scrollspy"),o&&t(this.selector).blur())},e.prototype.clear=function(){var s=this.options.currentItemClass;t(this.selector).parentsUntil(this.options.target,"."+s).removeClass(s),t(this.selector).parentsUntil(this.options.target,".current-menu-parent").removeClass("current-menu-parent")},e.prototype.stopListening=function(){this.$scrollElement.off("scroll.bs.scrollspy",this.processWithBind)},window.awbScrollSpy=e,t.fn.scrollspy=function(s){return this.each((function(){var i=t(this),o=i.data("bs.scrollspy");o||(o=new e(this,"object"==typeof s&&s),i.data("bs.scrollspy",o)),"string"==typeof s&&o[s]()}))},t.fn.scrollspy.Constructor=e,t(window).on("load.bs.scrollspy.data-api",(function(){t('[data-spy="scroll"]').each((function(){var s=t(this);s.scrollspy(s.data())}))}))}(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.