Edit File: themify.scroll-highlight.min.js
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,e,h){b instanceof String&&(b=String(b));for(var g=b.length,a=0;a<g;a++){var c=b[a];if(e.call(h,c,a,b))return{i:a,v:c}}return{i:-1,v:void 0}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(b,e,h){b!=Array.prototype&&b!=Object.prototype&&(b[e]=h.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b}; $jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(b,e,h,g){if(e){h=$jscomp.global;b=b.split(".");for(g=0;g<b.length-1;g++){var a=b[g];a in h||(h[a]={});h=h[a]}b=b[b.length-1];g=h[b];e=e(g);e!=g&&null!=e&&$jscomp.defineProperty(h,b,{configurable:!0,writable:!0,value:e})}};$jscomp.polyfill("Array.prototype.find",function(b){return b?b:function(b,h){return $jscomp.findInternal(this,b,h).v}},"es6-impl","es3"); themifyScrollHighlight=function(b,e,h){b.fn.themifyScrollHighlight=function(a){};var g=!1;return{defaults:{speed:parseInt(tbScrollHighlight.speed),prefix:".tb_section-",navigation:tbScrollHighlight.navigation,context:"body",element:".module_row",scrollRate:250,considerHeader:!1,fixedHeaderHeight:0,updateHash:!0,scroll:"internal"},_opt:{$window:b(e),$body:b("body"),$headerWrap:b("#headerwrap"),$pageWrap:b("#pagewrap"),hederDiff:0,isReplaceState:"replaceState"in history,isScrolling:!1,activeSection:null}, cleanupURL:function(a){return a.replace(/#.*$/,"").replace(/\/$/,"")},requestInterval:function(a,b){var c=(new Date).getTime(),f=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(a){setInterval(a,1E3/60)};f(function l(){var d=(new Date).getTime();d-c>=b&&(a.call(),c=d);f(l)})},cleanHash:function(a){return decodeURIComponent(a instanceof b?a.prop("hash"):a)},scrolling:!1,updateOffset:function(a){return Math.ceil(a- this.options.fixedHeaderHeight+this._opt.hederDiff)},setHeaderHeight:function(){if(this._opt.$body.hasClass("fixed-header")&&this._opt.$headerWrap.length){var a=b("#headerwrap").clone();a.find("*").add(a).css("cssText","transition: all 0s ease 0s !important;");a.removeClass("fixed-header").css({visibility:"hidden",left:"-10000px",marginTop:this._opt.$body.offset().top}).appendTo("body");this.options.fixedHeaderHeight=a.outerHeight(!0);a.addClass("fixed-header");var c=a.css("background-image"),d=a.css("background-color"); d&&-1<d.indexOf("rgba")&&(d=d.replace(/^.*,(.+)\)/,"$1").trim(),d=0===parseFloat(d)?"transparent":1);if(c=(!c||"none"===c)&&"transparent"===d)this.options.fixedHeaderHeight=0;this._opt.hederDiff=c?0:this.options.fixedHeaderHeight-a.outerHeight(!0);a.remove()}},highlightLink:function(a){var c=this;this.dehighlightLinks();if(""!=a){var d=b(this.options.navigation).find('a[href*="'+a+'"]');d.length&&d.each(function(){var f=b(this);c.cleanHash(f)===a&&(f.parent().addClass("current_page_item"),c._opt.$body.trigger("scrollhighlight.themify", [a]))})}},dehighlightLinks:function(){b(this.options.navigation).find('a[href*="#"]').each(function(){b(this).parent().removeClass("current_page_item current-menu-item")})},isInViewport:function(a){if(!(a instanceof b&&"offset"in a))return!1;var c=this._opt.$window.scrollTop(),d=c+this._opt.$window.height()/4,f=this.updateOffset(a.offset().top);a=f+a.height();return f<=d&&a>=c},isHash:function(a){return a&&"#"!==a},removeHash:function(){this.isCorrectHash()&&this.isHash(e.top.location.hash)&&(this._opt.isReplaceState&& e.top.history.replaceState("",h.title,e.top.location.pathname+e.top.location.search),this.dehighlightLinks())},changeHash:function(a){if(!this._opt.activeSection||"#"!==a&&a!==this.cleanHash(e.location.hash)){this.highlightLink(a);if(this.options.updateHash)if(this._opt.isReplaceState)e.top.history.replaceState(null,null,a);else if(a=a.replace(/^.*#/,"")){var c=b(this.options.prefix+a);if(c.length){var d=c.prop("id");c.prop("id",d+"tmpobjxyz5783a");e.top.location.hash=a;c.prop("id",d)}}g=!1}},isCorrectHash:function(){var a= location.hash.slice(1);return!(""==a||-1!==a.indexOf("!"))},linkScroll:function(a,c){var d=this,f=a.replace(d.options.prefix,"#");a=b(a);if(1<a.length&&(a=a.filter(":visible").first(),0===a.length&&(a=a.first(),0===a.length))){g=!1;return}var e=a.get(0);this._opt.$body.trigger("scrollhighlightstart.themify",[f]);f=e.offsetTop+b(e.offsetParent).offset().top;d.scrolling=!1;this._opt.isScrolling=!0;"internal"===d.options.scroll?(f=this._opt.$body.hasClass("fixed-header")&&!this._opt.$body.hasClass("header-bottom")? this.updateOffset(f):f-b(e.offsetParent).offset().top,b("html, body").stop().animate({scrollTop:f},{duration:+d.options.speed,complete:function(){g=!1;d._opt.isScrolling=!1;d.changeHash(c)}})):(g=!1,d.changeHash(c))},manualScroll:function(a){this.scrolling=!1;if(this._opt.$window.scrollTop()<this.options.fixedHeaderHeight)this.removeHash();else{for(var b=0,d=a.length;b<d;++b){var f=a[b];if(f.data("anchor")&&this.isInViewport(f)){this.changeHash("#"+f.data("anchor"));this._opt.activeSection=f;break}}this._opt.activeSection? this.isInViewport(this._opt.activeSection)||(this.removeHash(),this._opt.activeSection=null):g=!1}},init:function(a){var c=this,d=[];this.options=b.extend({},c.defaults,a);if(!Themify.is_builder_active&&(b("div[class*="+c.options.prefix.replace(".","")+"]:visible").not(c.options.exclude).each(function(){d.push(b(this))}),!d.length))return;c.setHeaderHeight();b(this.options.context).on("click.themifyScroll touchstart.themifyScroll",'a[href*="#"], area[href*="#"]',function(a){if(!1===g&&!this.classList.contains("ab-item")){var d= c.cleanHash(b(this));if("#"!==d){var d=-1!=d.indexOf("/")?d.substring(0,d.indexOf("/")):d,f=d.replace(/#/,c.options.prefix);0<b(f).length&&(a.preventDefault(),a.stopPropagation(),g=!0,c.linkScroll(f,d),Themify.is_builder_active&&(c._opt.activeSection=!0,c.changeHash("#"+b(f).data("anchor"))))}}}).find('a[href*="#"]').each(function(){if(!this.classList.contains("ab-item")&&"#"!==b(this).prop("href")){var a=b(this).parent();if(a[0].classList.contains("current_page_item")&&a[0].classList.contains("current-menu-item")){var c= a.siblings(".current_page_item, .current-menu-item");0<c.length&&c.add(a).removeClass("current_page_item current-menu-item")}}});Themify.is_builder_active||(this._opt.$window.scroll(function(a){c.scrolling=!0}),this.requestInterval(function(){!c._opt.isScrolling&&c.scrolling&&c.manualScroll(d)},c.options.scrollRate),this._opt.$window.on("load hashchange",function(a){if(!1===g)if(g=!0,c.isHash(e.location.hash)){var f=c.cleanHash(e.location.hash),h=!1;a=c.cleanupURL(e.location.href);a=b(c.options.context).find('a[href="'+ f+'"], a[href="'+a+f+'"], a[href="'+a+"/"+f+'"]');if(a.length)a.each(function(){var a=b(this);c.cleanHash(a)===f&&(h=!0,setTimeout(function(){g=!1;a.trigger("click.themifyScroll")},600))}),!1===h&&(g=!1);else{var k=f.replace(/#/,c.options.prefix);-1===k.search("/")&&b(k).length?setTimeout(function(){c.linkScroll(k,f)},600):g=!1}}else g=!1,c.manualScroll(d)}))}}}(jQuery,window,document);
Back to File Manager