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