Commit 80f46f80 by o.kimura

微妙にブレるのでロジック変更

parent 853c248e
Showing with 3 additions and 2 deletions
...@@ -22,13 +22,14 @@ $(function () { ...@@ -22,13 +22,14 @@ $(function () {
$(this).removeClass('active'); $(this).removeClass('active');
toggle_menu.slideUp('fast'); toggle_menu.slideUp('fast');
overlay.slideUp('fast'); overlay.slideUp('fast');
$("html").css("overflow-y", "auto"); $("html").css("position", "");
$("body").removeClass('active'); $("body").removeClass('active');
} else { } else {
$(this).addClass('active'); $(this).addClass('active');
toggle_menu.slideDown('fast'); toggle_menu.slideDown('fast');
overlay.slideDown('fast'); overlay.slideDown('fast');
$("html").css("overflow-y", "hidden"); $("html").css("position", "fixed");
$("html").css("width", "100%");
setTimeout(function () { setTimeout(function () {
$("body").addClass('active'); $("body").addClass('active');
}, 100); }, 100);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment