at path:
ROOT
/
megamenu
/
js
/
modern-megamenu-single-page.js
run:
R
W
Run
js
DIR
2026-04-09 04:12:40
R
W
Run
bootsnav-click.js
12.52 KB
2019-10-06 19:21:32
R
W
Run
Delete
Rename
bootsnav.js
12.52 KB
2019-10-06 19:21:32
R
W
Run
Delete
Rename
bootstrap.min.js
56.71 KB
2019-02-13 10:47:50
R
W
Run
Delete
Rename
bootstrap.min.js.map
185.79 KB
2019-02-13 10:47:50
R
W
Run
Delete
Rename
index.php
360 By
2020-10-09 19:28:06
R
W
Run
Delete
Rename
jquery-3.4.1.min.js
86.08 KB
2019-05-14 17:18:56
R
W
Run
Delete
Rename
menu-show-hide-scroll.js
1.52 KB
2018-05-08 15:12:20
R
W
Run
Delete
Rename
modern-megamenu-single-page.js
2.54 KB
2019-10-06 19:21:32
R
W
Run
Delete
Rename
modern-megamenu.js
4.84 KB
2019-10-06 19:21:32
R
W
Run
Delete
Rename
modernizr.js
14.89 KB
2014-01-24 07:51:58
R
W
Run
Delete
Rename
popper.min.js
18.75 KB
2017-10-19 05:23:28
R
W
Run
Delete
Rename
error_log
up
📄
modern-megamenu-single-page.js
Save
/* |-------------------------------------------------------------------------- Modern Megamenu - Bootstrap 4 Responsive Mega Menu Main JS Author: MGScoder Author URL: https://codecanyon.net/user/mgscoder |-------------------------------------------------------------------------- */ document.addEventListener("touchstart", function() {},false); (function ($) { "use strict"; var windw = $(window); /* |-------------------------------------------------------------------------- ACTIVE STICKY HEADER |-------------------------------------------------------------------------- */ var navh = $('.nav-container'); var scrollp = windw.scrollTop(); if (scrollp > 160) { navh.addClass("fixed-nav"); } else { navh.removeClass("fixed-nav"); } windw.scroll(function () { if ($(this).scrollTop() > 160) { navh.addClass("fixed-nav"); } else { navh.removeClass("fixed-nav"); } }); /* |-------------------------------------------------------------------------- Smoth Scroll |-------------------------------------------------------------------------- */ $(document).on('click', 'a[href*="#"]:not([href="#"])', function(event){ if (location.pathname.replace(/^\//,'') === this.pathname.replace(/^\//,'') && location.hostname === this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); var topBar_height = $('.TopBar').outerHeight() - 3; if(!topBar_height) topBar_height = 0; var header_height = 50 + topBar_height; if (target.length) { $('html, body').animate({ scrollTop: target.offset().top - header_height }, 1000); return false; } } }); /* |-------------------------------------------------------------------------- Responsive Menu Icon |-------------------------------------------------------------------------- */ windw.resize(function() { if (windw.width() < 992) { $('#navbar-menu').removeClass("show"); } }); /* |-------------------------------------------------------------------------- Scrollup |-------------------------------------------------------------------------- */ var scrollup = $('.scrollup'); windw.scroll(function () { if ($(this).scrollTop() > 100) { scrollup.fadeIn(); } else { scrollup.fadeOut(); } }); scrollup.on('click', '', function(event){ $("html, body").animate({ scrollTop: 0 }, 600); return false; }); })(jQuery); /* |-------------------------------------------------------------------------- End |-------------------------------------------------------------------------- */