| Server IP : 103.191.208.88 / Your IP : 216.73.216.44 Web Server : Microsoft-IIS/10.0 System : Windows NT COSMIC 10.0 build 20348 (Windows Server 2022) AMD64 User : IWPD_1831(willswel_) ( 0) PHP Version : 8.2.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/Inetpub/vhosts/willswell.com/httpdocs/wp-content/themes/flex-multi-business/assets/js/ |
Upload File : |
(function ($) {
"use strict";
var $main_window = $(window);
/*====================================
preloader js
======================================*/
$main_window.on("load", function () {
$(".loader-header").delay(1000).fadeOut(500);
});
/*====================================
scroll to top js
======================================*/
$(window).on("scroll", function () {
if ($(this).scrollTop() > 250) {
$("#c-scroll").fadeIn(200);
} else {
$("#c-scroll").fadeOut(200);
}
});
$("#c-scroll").on("click", function () {
$("html, body").animate({
scrollTop: 0
},
"slow"
);
return false;
});
/*====================================
Navigation mobile menu
======================================*/
function mainmenu() {
$('.dropdown-menu a.dropdown-toggle').on('click', function (e) {
if (!$(this).next().hasClass('show')) {
$(this).parents('.dropdown-menu').first().find('.show').removeClass("show");
}
var $subMenu = $(this).next(".dropdown-menu");
$subMenu.toggleClass('show');
return false;
});
}
mainmenu();
})(jQuery);