PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
themes
/
besa
/
js
"use strict";!function(t,n,i,e){var s=function(e,s){this.elem=e,this.$elem=t(e),this.options=s,this.metadata=this.$elem.data("plugin-options"),this.$win=t(n),this.sections={},this.didScroll=!1,this.$doc=t(i),this.docHeight=this.$doc.height()};s.prototype={defaults:{navItems:"a",currentClass:"current",changeHash:!1,easing:"swing",filter:"",scrollSpeed:750,scrollThreshold:.5,begin:!1,end:!1,scrollChange:!1},init:function(){return this.config=t.extend({},this.defaults,this.options,this.metadata),this.$nav=this.$elem.find(this.config.navItems),""!==this.config.filter&&(this.$nav=this.$nav.filter(this.config.filter)),this.$nav.on("click.onePageNav",t.proxy(this.handleClick,this)),this.getPositions(),this.bindInterval(),this.$win.on("resize.onePageNav",t.proxy(this.getPositions,this)),this},adjustNav:function(t,n){t.$elem.find("."+t.config.currentClass).removeClass(t.config.currentClass),n.addClass(t.config.currentClass)},bindInterval:function(){var t,n=this;n.$win.on("scroll.onePageNav",function(){n.didScroll=!0}),n.t=setInterval(function(){t=n.$doc.height(),n.didScroll&&(n.didScroll=!1,n.scrollChange()),t!==n.docHeight&&(n.docHeight=t,n.getPositions())},250)},getHash:function(t){return t.attr("href").split("#")[1]},getPositions:function(){var n,i,e,s=this;s.$nav.each(function(){n=s.getHash(t(this)),(e=t("#"+n)).length&&(i=e.offset().top,s.sections[n]=Math.round(i))})},getSection:function(t){var n=null,i=Math.round(this.$win.height()*this.config.scrollThreshold);for(var e in this.sections)this.sections[e]-i<t&&(n=e);return n},handleClick:function(i){var e=this,s=t(i.currentTarget),o=s.parent(),a="#"+e.getHash(s);o.hasClass(e.config.currentClass)||(e.config.begin&&e.config.begin(),e.adjustNav(e,o),e.unbindInterval(),e.scrollTo(a,function(){e.config.changeHash&&(n.location.hash=a),e.bindInterval(),e.config.end&&e.config.end()})),i.preventDefault()},scrollChange:function(){var t,n=this.$win.scrollTop(),i=this.getSection(n);null!==i&&((t=this.$elem.find('a[href$="#'+i+'"]').parent()).hasClass(this.config.currentClass)||(this.adjustNav(this,t),this.config.scrollChange&&this.config.scrollChange(t)))},scrollTo:function(n,i){var e=t(n).offset().top;t("html, body").animate({scrollTop:e-this.config.scrollOffset},this.config.scrollSpeed,this.config.easing,i)},unbindInterval:function(){clearInterval(this.t),this.$win.unbind("scroll.onePageNav")}},s.defaults=s.prototype.defaults,t.fn.onePageNav=function(t){return this.each(function(){new s(this,t).init()})}}(jQuery,window,document);class OnePageNav{constructor(){this._productSingleOnepagenav()}_productSingleOnepagenav(){if($("#sticky-menu-bar").length>0){let t=0;$("#wpadminbar").length>0&&(t=$("#wpadminbar").outerHeight());let n=$("#sticky-menu-bar").outerHeight()+t;$("#sticky-menu-bar").onePageNav({currentClass:"current",changeHash:!1,scrollSpeed:750,scrollThreshold:.5,scrollOffset:n,filter:"",easing:"swing",begin:function(){},end:function(){},scrollChange:function(){}})}var t=$("#sticky-menu-bar");if(t.length>0){var n=$(window).width();$(".tbay_header-template").removeClass("main-sticky-header");var i=$(".single_add_to_cart_button").length>0?$(".single_add_to_cart_button").offset().top:0,e=$("div.product .out-of-stock").length>0?$("div.product .out-of-stock").offset().top:0;$(".by-vendor-name-link").length>0&&(e=$(".by-vendor-name-link").offset().top);var s=$(".single_add_to_cart_button").length>0?i:e;this._checkScroll(n,s,t),$(window).scroll(()=>{this._checkScroll(n,s,t)})}t.hasClass("active")&&jQuery("#wpadminbar").length>0&&t.css("top",$("#wpadminbar").height())}_checkScroll(t,n,i){t>=768&&$(window).scrollTop()>n?(i.addClass("active"),jQuery("#wpadminbar").length>0&&i.css("top",$("#wpadminbar").height())):i.removeClass("active")}}jQuery(document).ready(function(t){new OnePageNav});
[+]
..
[-] woocommerce.js
[edit]
[-] jquery.magnific-popup.min.js
[edit]
[-] jquery.countdownTimer.js
[edit]
[-] custom-slick.js
[edit]
[-] jquery.time-to.min.js
[edit]
[-] jquery.timeago.js
[edit]
[-] bootstrap.min.js
[edit]
[-] ajax-auth-script.min.js
[edit]
[-] jquery.onepagenav.min.js
[edit]
[-] jquery.treeview.js
[edit]
[-] ajax-auth-script.js
[edit]
[-] jquery.mmenu.min.js
[edit]
[-] functions.min.js
[edit]
[-] detectmobilebrowser.min.js
[edit]
[-] customize-preview.js
[edit]
[-] slick.js
[edit]
[-] jquery.fastclick.min.js
[edit]
[-] jquery.validate.js
[edit]
[-] functions.js
[edit]
[-] jquery.sumoselect.js
[edit]
[-] jquery.treeview.min.js
[edit]
[-] jquery.countdownTimer.min.js
[edit]
[-] jquery.instagramfeed.min.js
[edit]
[-] jquery.autocomplete.js
[edit]
[-] jquery.fastclick.js
[edit]
[-] jquery.sumoselect.min.js
[edit]
[-] color-scheme-control.js
[edit]
[-] custom-slick.min.js
[edit]
[-] jquery.mmenu.js
[edit]
[-] html5.min.js
[edit]
[-] js.cookie.js
[edit]
[-] slick.min.js
[edit]
[-] bootstrap.js
[edit]
[-] jquery.instagramfeed.js
[edit]
[-] color-scheme-control.min.js
[edit]
[-] jquery.timeago.min.js
[edit]
[-] html5.js
[edit]
[+]
admin
[-] jquery.time-to.js
[edit]
[-] customize-preview.min.js
[edit]
[-] detectmobilebrowser.js
[edit]
[-] skip-link-fix.js
[edit]
[-] woocommerce.min.js
[edit]
[-] jquery.autocomplete.min.js
[edit]
[-] jquery.onepagenav.js
[edit]
[-] popper.min.js
[edit]
[-] popper.js
[edit]
[-] jquery.validate.min.js
[edit]
[-] skip-link-fix.min.js
[edit]
[-] js.cookie.min.js
[edit]