trAvis - MANAGER
Edit File: plus-page-scroll.min.js
/*page scroll*/(function(d){"use strict";function i(a,e){return this.init(a,e)}i.defaults={licenseKey:"845A4AB1-B87A4168-BA7C13F1-54120148",navigationTooltips:!0,navigation:!0,navigationPosition:"right",showActiveTooltip:!0,slidesNavigation:!0,controlArrows:!0,easingcss3:"cubic-bezier(.32,.18,.22,1)",scrollingSpeed:850,keyboardScrolling:!1,responsiveWidth:900},i.prototype={init:function(a,e){return a.data("tponePage")||(this.el=a,this.setOptions(e).build()),this},setOptions:function(a){return this.el.data("__tsonePage",this),this.options=d.extend(!0,{},i.defaults,a),this},build:function(){var a=d(this.el),s=(this.options,a.data("id"));a.fullpage(d.extend(!0,{},this.options,{onLeave:function(a,e){d(this);d(".fullpage-nav-paginate .slide-nav").removeClass("active animated"),d(".fullpage-nav-paginate .slide-nav[data-slide="+parseInt(e.index)+"]").addClass("active animated");a=a.item,a=d(a).closest(".tp-page-scroll-wrapper").data("scroll-nav-id");""!=a&&null!=a&&(d("#"+a).find(".highlight").removeClass("highlight"),d("#"+a).find("a:eq("+parseInt(e.index)+")").addClass("highlight"))},afterLoad:function(a,e,n){var t=d("#"+s).find(".fp-section:not(.active)");t.find(".animate-general").removeClass("animation-done"),t.find(".animate-general").css("opacity","0"),t.find(".pt_plus_animated_image.bg-img-animated").removeClass("creative-animated");var i=d("#"+s).find(".fp-section.active");d(i).find(".animate-general:not(.animation-done)").each(function(){var a=d(this),e=a.data("animate-delay"),n=a.data("animate-type");a.hasClass("animation-done")?a.hasClass("animation-done"):a.addClass("animation-done").velocity(n,{delay:e,display:"auto"})}),0<d(i).find(".pt_plus_animated_svg").length&&d(".pt_plus_animated_svg",i).pt_plus_animated_svg(),0<d(i).find(".pt_plus_animated_image.bg-img-animated").length&&d(i).find(".pt_plus_animated_image.bg-img-animated").each(function(){var a=d(this);a.hasClass("creative-animated")?a.hasClass("creative-animated"):a.addClass("creative-animated")}),0<d("#"+s).find(".fp-section .elementor-widget[data-settings]").length&&(t.find(".elementor-widget.animated").each(function(){var a=d(this),e=d(this).data("settings");null!=e&&e._animation&&a.addClass("elementor-invisible").removeClass(e._animation+" animated")}),t.find(".elementor-column.animated").each(function(){var a=d(this),e=d(this).data("settings");null!=e&&e.animation&&a.addClass("elementor-invisible").removeClass(e.animation+" animated")}),i.find(".elementor-widget:not(.animated)").each(function(){var a=d(this),e=d(this).data("settings");null!=e&&e._animation&&e._animation_delay?setTimeout(function(){a.removeClass("elementor-invisible").addClass(e._animation+" animated")},e._animation_delay):null!=e&&a.removeClass("elementor-invisible").addClass(e._animation+" animated")}),i.find(".elementor-column:not(.animated)").each(function(){var a=d(this),e=d(this).data("settings");null!=e&&e.animation&&e.animation_delay?setTimeout(function(){a.removeClass("elementor-invisible").addClass(e.animation+" animated")},e.animation_delay):null!=e&&a.removeClass("elementor-invisible").addClass(e.animation+" animated")}))}})),d(".fp-nav-btn.fp-nav-next").on("click",function(a){a.preventDefault(),d.fn.fullpage.moveSectionDown()}),d(".fp-nav-btn.fp-nav-prev").on("click",function(a){a.preventDefault(),d.fn.fullpage.moveSectionUp()});var s=a.data("id"),e=a.data("show_paginate"),n=a.data("paginate_style"),t=a.data("paginate_position");if("on"==e){var i=d(".tp-page-scroll-wrapper.tp_full_page .section.fp-section").length,l="";l+='<div class="fullpage-nav-paginate '+t+'">';for(var o=0;o<i;o++)l+=0==o?'<span class="slide-nav '+n+' active animated" data-slide="'+parseInt(o)+'">'+(o<9?"0"+parseInt(o+1):""+parseInt(o+1))+"</span>":'<span class="slide-nav '+n+' " data-slide="'+o+'">'+(o<9?"0"+parseInt(o+1):""+parseInt(o+1))+"</span>";l+=o<10?'<span class="total-page-nav">0'+o+"</span>":'<span class="total-page-nav">'+o+"</span>",l+="</div>";t=d("#"+s).parent();d(t).append(l)}a=a.data("show_footer");"yes"==a&&"undefined"!=a&&d(".tp-page-scroll-wrapper .section.fp-section").last().addClass("fp-auto-height")}},d.fn.PlusFullPage=function(t){return this.map(function(){var a,e=d(this),n=e.data("full-page-opt");return n&&(a=d.extend(!0,{},t,n)),new i(e,a)})}}).apply(this,[jQuery]),function(){function a(a,i){var e,n=(s=a.find(".tp-page-scroll-wrapper")).data("id");if(0<a.find(".tp-page-scroll-wrapper.tp_full_page").length&&(i("#fp-nav").remove(),i("html").hasClass("fp-enabled")&&i.fn.fullpage.destroy("all"),i(".tp-page-scroll-wrapper.tp_full_page").PlusFullPage()),0<a.find(".tp-page-scroll-wrapper.tp_page_pilling").length){i("#pp-nav").remove();var s=a.find(".tp_page_pilling"),t={};1==(v=s.data("page-piling-opt")).navigation.display?(t.navigation={},t.navigation.position=v.navigation.position,t.navigation.tooltips=v.navigation.tooltips):t.navigation=!1;var l=i(window).innerWidth(),o="enable";l<=1024&&768<=l&&"yes"==v.pp_tablet_off&&(o="disable",i(".fp-nxt-prev").addClass("tab-hidden")),l<=767&&"yes"==v.pp_mobile_off&&(o="disable",i(".fp-nxt-prev").addClass("mob-hidden")),"enable"==o&&(i("#pagepiling").pagepiling({menu:null,direction:v.direction,verticalCentered:!0,sectionsColor:[],anchors:v.anchors,scrollingSpeed:v.scrollingSpeed,easing:"swing",loopBottom:v.loopBottom,loopTop:v.loopTop,css3:!0,navigation:t.navigation,normalScrollElements:null,normalScrollElementTouchThreshold:5,touchSensitivity:5,keyboardScrolling:v.keyboardScrolling,sectionSelector:".section",animateAnchor:!1,onLeave:function(a,e,n){i(".fullpage-nav-paginate .slide-nav").removeClass("active animated"),i(".fullpage-nav-paginate .slide-nav[data-slide="+parseInt(e-1)+"]").addClass("active animated");a=s.find(".pp-section:eq("+parseInt(a-1)+")"),a=i(a).closest(".tp-page-scroll-wrapper").data("scroll-nav-id");""!=a&&null!=a&&(i("#"+a).find(".highlight").removeClass("highlight"),i("#"+a).find("a:eq("+parseInt(e-1)+")").addClass("highlight"));e=s.find(".pp-section:not(.active)");0<s.find(".pp-section .elementor-widget[data-settings]").length&&i(e).find(".elementor-widget[data-settings].animated").each(function(){var a=i(this),e=i(this).data("settings");e._animation&&a.addClass("elementor-invisible").removeClass(e._animation+" animated")});e=s.find(".pp-section:not(.active)");0<s.find(".pp-section .elementor-column[data-settings]").length&&i(e).find(".elementor-column[data-settings].animated").each(function(){var a=i(this),e=i(this).data("settings");e.animation&&a.addClass("elementor-invisible").removeClass(e.animation+" animated")})},afterLoad:function(a,e){var n=s.find(".pp-section:not(.active)");n.find(".animate-general").removeClass("animation-done"),n.find(".animate-general").css("opacity","0");n=s.find(".pp-section.active");i(n).find(".animate-general:not(.animation-done)").each(function(){var a=i(this),e=a.data("animate-delay"),n=a.data("animate-type");a.hasClass("animation-done")?a.hasClass("animation-done"):a.addClass("animation-done").velocity(n,{delay:e,display:"auto"})}),0<s.find(".pt_plus_animated_svg").length&&i(".pt_plus_animated_svg",n).pt_plus_animated_svg(),0<s.find(".pp-section .elementor-widget[data-settings]").length&&i(n).find(".elementor-widget[data-settings]:not(.animated)").each(function(){var a=i(this),e=i(this).data("settings");e._animation&&e._animation_delay?setTimeout(function(){a.removeClass("elementor-invisible").addClass(e._animation+" animated")},e._animation_delay):a.removeClass("elementor-invisible").addClass(e._animation+" animated")}),0<s.find(".pp-section .elementor-column[data-settings]").length&&i(n).find(".elementor-column[data-settings]:not(.animated)").each(function(){var a=i(this),e=i(this).data("settings");e.animation&&e.animation_delay?setTimeout(function(){a.removeClass("elementor-invisible").addClass(e.animation+" animated")},e.animation_delay):a.removeClass("elementor-invisible").addClass(e.animation+" animated")})}}),i(".fp-nav-btn.fp-nav-next").on("click",function(a){a.preventDefault(),i.fn.pagepiling.moveSectionDown()}),i(".fp-nav-btn.fp-nav-prev").on("click",function(a){a.preventDefault(),i.fn.pagepiling.moveSectionUp()}));var d=a.find(".tp-page-scroll-wrapper.tp_page_pilling"),l=d.data("postion"),t=d.data("show_paginate"),p=d.data("paginate_style"),d=d.data("paginate_position");if(i("body").find("#fp-nav").addClass(l),"on"==t&&"enable"==o){var r=i(".tp-page-scroll-wrapper.tp_page_pilling .section.pp_section").length,m="";m+='<div class="fullpage-nav-paginate '+d+'">';for(var c=0;c<r;c++)m+=0==c?'<span class="slide-nav '+p+' active animated" data-slide="'+parseInt(c)+'">'+(c<9?"0"+parseInt(c+1):""+parseInt(c+1))+"</span>":'<span class="slide-nav '+p+' " data-slide="'+c+'">'+(c<9?"0"+parseInt(c+1):""+parseInt(c+1))+"</span>";m+=c<10?'<span class="total-page-nav">0'+c+"</span>":'<span class="total-page-nav">'+c+"</span>",m+="</div>";var g=i("#"+n).parent();i(g).append(m)}}if(0<a.find(".tp-page-scroll-wrapper.tp_multi_scroll").length){i("#pp-nav").remove();var v=(s=a.find(".tp_multi_scroll")).data("multi-scroll-opt"),f=a.find(".theplus-multiscroll-wrap"),u=f.data("settings"),h=u.multi_id;function _(){i("#theplus-multiscroll-"+h).multiscroll({verticalCentered:!0,scrollingSpeed:u.scrollingSpeed,easing:"easeInQuart",menu:"#theplus-scroll-nav-menu-"+h,sectionsColor:[],navigation:u.dots,navigationPosition:u.dotsPosition+" "+u.dotsVertical,navigationColor:"#000",navigationTooltips:u.dotsTooltips,loopBottom:u.loopBottom,loopTop:u.loopTop,css3:!0,paddingTop:0,paddingBottom:0,normalScrollElements:null,keyboardScrolling:u.keyboardScrolling,touchSensitivity:5,responsiveWidth:0,responsiveHeight:0,responsiveExpand:!1,anchors:v.anchors,sectionSelector:".theplus-multiscroll-temp-"+h,leftSelector:".theplus-multiscroll-left-"+h,rightSelector:".theplus-multiscroll-right-"+h,leftSide:u.leftSide,rightSide:u.rightSide,onLeave:function(a,e,n){i(".fullpage-nav-paginate .slide-nav").removeClass("active animated"),i(".fullpage-nav-paginate .slide-nav[data-slide="+parseInt(e-1)+"]").addClass("active animated");var t=s.find(".theplus-multiscroll-inner"),t=i(t).closest(".tp-page-scroll-wrapper").data("scroll-nav-id");""!=t&&null!=t&&(i("#"+t).find(".highlight").removeClass("highlight"),i("#"+t).find("a:eq("+parseInt(e-1)+")").addClass("highlight"))},afterLoad:function(a,e){var n=s.find(".theplus-multiscroll-temp:not(.active)");n.find(".animate-general").removeClass("animation-done"),n.find(".animate-general").css("opacity","0");var t=s.find(".theplus-multiscroll-temp.active");i(t).find(".animate-general:not(.animation-done)").each(function(){var a=i(this),e=a.data("animate-delay"),n=a.data("animate-type");a.hasClass("animation-done")?a.hasClass("animation-done"):a.addClass("animation-done").velocity(n,{delay:e,display:"auto"})}),0<s.find(".pt_plus_animated_svg").length&&i(".pt_plus_animated_svg",t).pt_plus_animated_svg(),0<s.find(".theplus-multiscroll-temp .elementor-widget[data-settings]").length&&(i(n).find(".elementor-widget[data-settings].animated").each(function(){var a=i(this),e=i(this).data("settings");e._animation&&a.addClass("elementor-invisible").removeClass(e._animation+" animated")}),i(n).find(".elementor-column[data-settings].animated").each(function(){var a=i(this),e=i(this).data("settings");e.animation&&a.addClass("elementor-invisible").removeClass(e.animation+" animated")}),i(t).find(".elementor-widget[data-settings]:not(.animated)").each(function(){var a=i(this),e=i(this).data("settings");e._animation&&e._animation_delay?setTimeout(function(){a.removeClass("elementor-invisible").addClass(e._animation+" animated")},e._animation_delay):a.removeClass("elementor-invisible").addClass(e._animation+" animated")}),i(t).find(".elementor-column[data-settings]:not(.animated)").each(function(){var a=i(this),e=i(this).data("settings");e.animation&&e.animation_delay?setTimeout(function(){a.removeClass("elementor-invisible").addClass(e.animation+" animated")},e.animation_delay):a.removeClass("elementor-invisible").addClass(e.animation+" animated")}))}})}i("#theplus-scroll-nav-menu-"+h).removeClass("theplus-scroll-responsive");o=i("body").data("elementor-device-mode");"yes"===u.disable_tablet&&"yes"===u.disable_mobile&&"desktop"===o||"yes"===u.disable_tablet&&"no"===u.disable_mobile&&("mobile"===o||"desktop"===o)||"yes"===u.disable_mobile&&"no"===u.disable_tablet&&("tablet"===o||"desktop"===o)||"no"===u.disable_tablet&&"no"===u.disable_mobile?_():(e=i(f).find(".theplus-multiscroll-left-temp"),i(f).find(".theplus-multiscroll-right-temp").each(function(a){i(this).insertAfter(e[a])}),i(f).parents(".elementor-top-section").removeClass("elementor-section-height-full")),i(".fp-nav-btn.fp-nav-next").on("click",function(a){a.preventDefault(),i.fn.multiscroll.moveSectionDown()}),i(".fp-nav-btn.fp-nav-prev").on("click",function(a){a.preventDefault(),i.fn.multiscroll.moveSectionUp()});o=a.find(".tp-page-scroll-wrapper.tp_multi_scroll"),t=o.data("show_paginate"),p=o.data("paginate_style"),d=o.data("paginate_position");if(i("body").find("#fp-nav").addClass(l),"on"==t){r=i(".tp-page-scroll-wrapper.tp_multi_scroll .theplus-multiscroll-left-temp.ms-section").length,m="";m+='<div class="fullpage-nav-paginate '+d+'">';for(c=0;c<r;c++)m+=0==c?'<span class="slide-nav '+p+' active animated" data-slide="'+parseInt(c)+'">'+(c<9?"0"+parseInt(c+1):""+parseInt(c+1))+"</span>":'<span class="slide-nav '+p+' " data-slide="'+c+'">'+(c<9?"0"+parseInt(c+1):""+parseInt(c+1))+"</span>";m+=c<10?'<span class="total-page-nav">0'+c+"</span>":'<span class="total-page-nav">'+c+"</span>",m+="</div>";g=i("#"+n).parent();i(g).append(m)}}s.closest("section.elementor-element"),0<i(".plus-scroll-sections-bg").length&&(a.closest(".elementor").find("> .plus-scroll-sections-bg").remove(),0<a.find(".tp_hscroll_root .plus-scroll-sections-bg").length&&(a=(g=a.find(".plus-scroll-sections-bg")).data("position"),s.closest(".elementor").prepend(g),s.closest(".elementor").css("position",a)))}jQuery(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/tp-page-scroll.default",a)})}();