trAvis - MANAGER
Edit File: plus-scroll-navigation.min.js
/*Scroll Navigation*/!function(l){"use strict";function i(l,o){var i=l.find(".theplus-scroll-navigation");0<i.length&&("yes"==i.data("pagescroll")?(i.find(".theplus-scroll-navigation__item:eq(0)").addClass("highlight"),o(".theplus-scroll-navigation__item").on("click",function(l){if(l.preventDefault(),!o(this).hasClass("highlight")){var i=o(this).attr("href"),t=i.substring(1,i.length);if("fullpage"==o(this).closest(".theplus-scroll-navigation").data("pagescroll-type"))fullpage_api.moveTo(t);else if("pagepiling"==o(this).closest(".theplus-scroll-navigation").data("pagescroll-type")){if(0<o(".tp_page_pilling").length){var e=o(".tp_page_pilling").data("page-piling-opt"),n=o(window).innerWidth();n<=1024&&768<=n&&("no"==e.pp_tablet_off||null==e.pp_tablet_off)?o.fn.pagepiling.moveTo(t):n<=767&&("no"==e.pp_mobile_off||null==e.pp_tablet_off)?o.fn.pagepiling.moveTo(t):1025<=n?o.fn.pagepiling.moveTo(t):(o(".theplus-scroll-navigation__item").mPageScroll2id({highlightSelector:".theplus-scroll-navigation__item",highlightClass:"highlight",forceSingleHighlight:!0}),o(".theplus-scroll-navigation__item").on("click",function(l){l.preventDefault();var i=o(this).parent().parent("section").next().attr("id");o.mPageScroll2id("scrollTo",i)}))}}else"multiscroll"==o(this).closest(".theplus-scroll-navigation").data("pagescroll-type")&&o.fn.multiscroll.moveTo(t);o(this).parent().find(".highlight").removeClass("highlight"),o(this).addClass("highlight")}})):(o(".theplus-scroll-navigation__item").mPageScroll2id({highlightSelector:".theplus-scroll-navigation__item",highlightClass:"highlight",forceSingleHighlight:!0}),o(".theplus-scroll-navigation__item").on("click",function(l){l.preventDefault();var i=o(this).parent().parent("section").next().attr("id");o.mPageScroll2id("scrollTo",i)})));var t=l.find(".theplus-scroll-navigation.scroll-view"),e=l.find(".theplus-scroll-navigation__inner");0<t.length&&e&&o(window).on("scroll",function(){var e=o(this).scrollTop();t.each(function(){var l=o(this).data("scroll-view"),i=o(this).data("uid"),t=o("."+i);l<e?t.addClass("show"):t.removeClass("show")})})}l(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/tp-scroll-navigation.default",i)})}(jQuery);