css
This commit is contained in:
parent
913689e2fc
commit
1c6b88f8dd
@ -380,22 +380,22 @@ $(document).ready(function(){
|
|||||||
if (settings.animation.effect == "fade") {
|
if (settings.animation.effect == "fade") {
|
||||||
menu.fadeIn(settings.animation.show);
|
menu.fadeIn(settings.animation.show);
|
||||||
$(".BG").fadeIn("fast");
|
$(".BG").fadeIn("fast");
|
||||||
$("body").addClass("scrollhidden");
|
$("html, body").addClass("scrollhidden");
|
||||||
$('body').addClass('scrollhidden').on('scroll touchmove mousewheel', function (e) {
|
$("html, body").addClass('scrollhidden').on('scroll touchmove mousewheel', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
} else if (settings.animation.effect == "slide") {
|
} else if (settings.animation.effect == "slide") {
|
||||||
menu.slideDown(settings.animation.show);
|
menu.slideDown(settings.animation.show);
|
||||||
$(".BG").fadeIn("fast");
|
$(".BG").fadeIn("fast");
|
||||||
$("body").addClass("scrollhidden");
|
$("html, body").addClass("scrollhidden");
|
||||||
$('body').addClass('scrollhidden').on('scroll touchmove mousewheel', function (e) {
|
$("html, body").addClass('scrollhidden').on('scroll touchmove mousewheel', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
menu.show();
|
menu.show();
|
||||||
menu.removeClass("hide");
|
menu.removeClass("hide");
|
||||||
$("body").removeClass("scrollhidden");
|
$("html, body").removeClass("scrollhidden");
|
||||||
$('body').removeClass('scrollhidden').off('scroll touchmove mousewheel');
|
$("html, body").removeClass('scrollhidden').off('scroll touchmove mousewheel');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -409,16 +409,16 @@ $(document).ready(function(){
|
|||||||
menu.removeAttr("style");
|
menu.removeAttr("style");
|
||||||
button.removeClass(settings.selected);
|
button.removeClass(settings.selected);
|
||||||
$(".BG").fadeOut("fast");
|
$(".BG").fadeOut("fast");
|
||||||
$("body").removeClass("scrollhidden");
|
$("html, body").removeClass("scrollhidden");
|
||||||
$('body').removeClass('scrollhidden').off('scroll touchmove mousewheel');
|
$("html, body").removeClass('scrollhidden').off('scroll touchmove mousewheel');
|
||||||
});
|
});
|
||||||
} else if (settings.animation.effect == "slide") {
|
} else if (settings.animation.effect == "slide") {
|
||||||
menu.slideUp(settings.animation.hide, function () {
|
menu.slideUp(settings.animation.hide, function () {
|
||||||
menu.removeAttr("style");
|
menu.removeAttr("style");
|
||||||
button.removeClass(settings.selected);
|
button.removeClass(settings.selected);
|
||||||
$(".BG").fadeOut("fast");
|
$(".BG").fadeOut("fast");
|
||||||
$("body").removeClass("scrollhidden");
|
$("html, body").removeClass("scrollhidden");
|
||||||
$('body').removeClass('scrollhidden').off('scroll touchmove mousewheel');
|
$("html, body").removeClass('scrollhidden').off('scroll touchmove mousewheel');
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
menu.hide();
|
menu.hide();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user