通知ボタンの動作改造

This commit is contained in:
harukin 2018-11-16 20:43:55 +09:00
parent 53f3586643
commit ac46fefaa3

View File

@ -126,4 +126,21 @@ function toggleAside() {
spacer: '#left_aside_spacer' spacer: '#left_aside_spacer'
}); });
} }
$('#notifications-btn-1');
if ($('main').hasClass('region_3-on')) {
$('html, body').css('overflow-x', '');
$('main').removeClass('region_3-on')
$('#overlay').remove();
$('#right_aside_wrapper').trigger("sticky_kit:detach");
}
else {
$('html, body').css('overflow-x', 'hidden');
$('main').addClass('region_3-on')
$('<div id="overlay"></div>').appendTo('section');
$('#left_aside_wrapper').stick_in_parent({
offset_top: $('nav').outerHeight(true) + 10,
parent: '#region_3',
spacer: '#right_aside_spacer'
});
}
} }