PageSourceSearch

https://www.business-spotlight.de/sites/business-spotlight.spotlig…x1KasMFTK4-rhAg8G5HKsnaxKTt-o77og.js?tj6ryx

js business-spotlight.de collected 2026-09-26 03:52:03 UTC 2,772 bytes, 3 lines download raw bytes

1/* Source and licensing information for the line(s) below can be found at https://www.business-spotlight.de/themes/custom/spotlight/bootstrap/js/scrollspy.js. */
2+function(t){'use strict';function s(e,i){this.$body=t(document.body);this.$scrollElement=t(e).is(document.body)?t(window):t(e);this.options=t.extend({},s.DEFAULTS,i);this.selector=(this.options.target||'')+' .nav li > a';this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on('scroll.bs.scrollspy',t.proxy(this.process,this));this.refresh();this.process()};s.VERSION='3.3.7';s.DEFAULTS={offset:10};s.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};s.prototype.refresh=function(){var s=this,e='offset',i=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();if(!t.isWindow(this.$scrollElement[0])){e='position';i=this.$scrollElement.scrollTop()};this.$body.find(this.selector).map(function(){var r=t(this),o=r.data('target')||r.attr('href'),s=/^#./.test(o)&&t(o);return(s&&s.length&&s.is(':visible')&&[[s[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])})};s.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,r=this.getScrollHeight(),l=this.options.offset+r-this.$scrollElement.height(),s=this.offsets,i=this.targets,o=this.activeTarget,t;if(this.scrollHeight!=r){this.refresh()};if(e>=l){return o!=(t=i[i.length-1])&&this.activate(t)};if(o&&e<s[0]){this.activeTarget=null;return this.clear()};for(t=s.length;t--;){o!=i[t]&&e>=s[t]&&(s[t+1]===undefined||e<s[t+1])&&this.activate(i[t])}};s.prototype.activate=function(s){this.activeTarget=s;this.clear();var i=this.selector+'[data-target="'+s+'"],'+this.selector+'[href="'+s+'"]',e=t(i).parents('li').addClass('active');if(e.parent('.dropdown-menu').length){e=e.closest('li.dropdown').addClass('active')};e.trigger('activate.bs.scrollspy')};s.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,'.active').removeClass('active')};function e(e){return this.each(function(){var o=t(this),i=o.data('bs.scrollspy'),r=typeof e=='object'&&e;if(!i)o.data('bs.scrollspy',(i=new s(this,r)));if(typeof e=='string')i[e]()})};var i=t.fn.scrollspy;t.fn.scrollspy=e;t.fn.scrollspy.Constructor=s;t.fn.scrollspy.noConflict=function(){t.fn.scrollspy=i;return this};t(window).on('load.bs.scrollspy.data-api',function(){t('[data-spy="scroll"]').each(function(){var s=t(this);e.call(s,s.data())})})}(jQuery);
3/* Source and licensing information for the above line(s) can be found at https://www.business-spotlight.de/themes/custom/spotlight/bootstrap/js/scrollspy.js. */

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.