; /* Start:"a:4:{s:4:"full";s:65:"/bitrix/templates/eshop_adapt_green_copy/script.js?14660690301122";s:6:"source";s:50:"/bitrix/templates/eshop_adapt_green_copy/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ function eshopOpenNativeMenu() { var native_menu = BX("bx_native_menu"), is_menu_active = BX.hasClass(native_menu, "active"), topHeight, easing; if (is_menu_active) { BX.removeClass(native_menu, "active"); BX.removeClass(BX('bx_menu_bg'), "active"); BX("bx_eshop_wrap").style.position = ""; BX("bx_eshop_wrap").style.top = ""; BX("bx_eshop_wrap").style.overflow = ""; } else { BX.addClass(native_menu, "active"); BX.addClass(BX('bx_menu_bg'), "active"); topHeight = document.body.scrollTop; BX("bx_eshop_wrap").style.position = "fixed"; BX("bx_eshop_wrap").style.top = -topHeight+"px"; BX("bx_eshop_wrap").style.overflow = "hidden"; } easing = new BX.easing({ duration : 300, start : { left : (is_menu_active ? 0 : -100) }, finish : { left : (is_menu_active ? -100 : 0) }, transition : BX.easing.transitions.quart, step : function(state){ native_menu.style.left = state.left + "%"; } }); easing.animate(); } BX.bind(window, 'resize', function() { if (window.innerWidth >= 640 && BX.hasClass(BX("bx_native_menu"), "active")) { eshopOpenNativeMenu(); } } ); /* End */ ;; /* /bitrix/templates/eshop_adapt_green_copy/script.js?14660690301122*/