/* * common.funcs.js */ $(function(){ $('.btn_menu').click(function() { $(this).toggleClass('is-open'); if($(this).hasClass('is-open')){ $('body').css({ 'position' : 'fixed', 'width' : '100%' }); }else{ $('body').removeAttr('style'); } if(ua.iPad){ gnavH = size.h-$('.header_in').outerHeight(); }else{ gnavH = size.h-$('.header_in').outerHeight()-30; } $('#gnav').stop().height(gnavH).css({'overflow-y' : 'scroll'}).fadeToggle(); }); });