1function eshopOpenNativeMenu() 2{ 3 var native_menu = BX("bx_native_menu"), 4 is_menu_active = BX.hasClass(native_menu, "active"), 5 topHeight, 6 easing; 7 8 if (is_menu_active) 9 { 10 BX.removeClass(native_menu, "active"); 11 BX.removeClass(BX('bx_menu_bg'), "active"); 12 BX("bx_eshop_wrap").style.position = ""; 13 BX("bx_eshop_wrap").style.top = ""; 14 BX("bx_eshop_wrap").style.overflow = ""; 15 } 16 else 17 { 18 BX.addClass(native_menu, "active"); 19 BX.addClass(BX('bx_menu_bg'), "active"); 20 topHeight = document.body.scrollTop; 21 BX("bx_eshop_wrap").style.position = "fixed"; 22 BX("bx_eshop_wrap").style.top = -topHeight+"px"; 23 BX("bx_eshop_wrap").style.overflow = "hidden"; 24 } 25 26 easing = new BX.easing({ 27 duration : 300, 28 start : { left : (is_menu_active ? 0 : -100) }, 29 finish : { left : (is_menu_active ? -100 : 0) }, 30 transition : BX.easing.transitions.quart, 31 step : function(state){ 32 native_menu.style.left = state.left + "%"; 33 } 34 }); 35 easing.animate(); 36} 37 38BX.bind(window, 'resize', 39 function() { 40 if (window.innerWidth >= 640 && BX.hasClass(BX("bx_native_menu"), "active")) 41 { 42 eshopOpenNativeMenu(); 43 } 44 } 45);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.