| Linux server27.hostingraja.org 2.6.32-954.3.5.lve1.4.93.el6.x86_64 #1 SMP Wed Oct 4 17:04:29 UTC 2023 x86_64 Path : /home/udaipurk/public_html/websites/rishhh/wp-content/themes/xstore/js/modules/ |
| Current File : //home/udaipurk/public_html/websites/rishhh/wp-content/themes/xstore/js/modules/onePageMenu.min.js |
!function(i){etTheme.autoinit.onePageMenu=etTheme.onePageMenu=function(){i(document).on("click",".one-page-menu a",function(e){var t=i(this);t.attr("href").split("#")[0]==window.location.href.split("#")[0]&&(e.preventDefault(),o(e=t.attr("href").split("#")[1]),n(e)),etTheme.et_global.mob_menu_opened&&(i("body").removeClass("mobile-menu-opened").addClass("mobile-menu-closed"),etTheme.et_global.mob_menu_opened=!1),i(".et-popup-wrapper.mobile-menu-popup").length&&(i(".et-popup-wrapper").remove(),i("html").removeClass("et-overflow-hidden")),i(".et_b_header-mobile-menu .et-mini-content.active").length&&(i(".et_b_header-mobile-menu .et-mini-content.active").removeClass("active"),i(".et_b_header-mobile-menu.et-content-shown").removeClass("et-content-shown"),i(document).trigger("et_ajax_content_loaded"),setTimeout(function(){i("html").removeClass("et-overflow-hidden et-mini-content-opened")},700))}),i("[data-scroll-to]").on("click",function(){var e=i(this).attr("data-scroll-to");o(e),n(e)});var e=window.location.hash.split("#")[1];function n(e){var t=0;if("top"!=e){if("&"===e.charAt(0))return;if(i("#"+e).length<1)return;t=+i("#"+e).offset().top}etTheme.et_global.w_width<992&&i("body").removeClass("show-nav"),i("html, body").stop().animate({scrollTop:t},1e3,function(){o(e)})}function o(e){var t,n=i(".menu");n.parent().hasClass("one-page-menu")&&(n.find(".current-menu-item").removeClass("current-menu-item"),"top"==e?n.first().each(function(){i(this).find("li").first().addClass("current-menu-item")}):(n.find("li").each(function(){i(this).find(">a").attr("href")&&i(this).find(">a").attr("href").split("#")[1]==e&&(t=i(this).attr("id"))}),i("."+t).addClass("current-menu-item")))}1<window.location.hash.length&&setTimeout(function(){n(e)},600),i(window).on("scroll",function(){i(window).scrollTop()<200&&o("top")}),o("top")}}(jQuery);