$(document).ready(function () {
- $(window).scroll(function () {
- if ($(document).scrollTop() > 100) {
- $(".fixed-top").addClass("scrolled");
- $(".menu-text").addClass("hidden");
- } else {
- $(".fixed-top").removeClass("scrolled");
- $(".menu-text").removeClass("hidden");
- }
- });
+ $(document).scroll(function () {
+ var nav = $(".navbar");
+ nav.toggleClass("scrolled", $(this).scrollTop() >= 1);
+ });
+
//* Menu *//
$('.navbar-toggler-left').click(function() {
$('#navbarSupportedContent, #mask').addClass('open');
callback(eval("(" + response + ")"));
}
});
-};
\ No newline at end of file
+};