1define('B1TeamOkraina_Custom_HeaderFixed',['jquery','main'],function($,B1TeamOkraina_Template){function B1TeamOkraina_Custom_HeaderFixed(arParams){this.container=null;this.arParams=arParams;this.loaded=!1;this.loading=!1;this.open=!1;var _this=this;this.Init=function(){_this.container=$("#"+_this.arParams.id);$(window).on("scroll resize orientationchange",function(){_this.RefreshPosition()});$("#bx-panel-hider,#bx-panel-expander,#bx-panel-pin").click(function(){_this.RefreshPosition()});_this.RefreshPosition();BX.addCustomEvent('B1T_OKRAINA_CUSTOM_HTML_HEADER_FIXED_E_FIX',function(){_this.Fix()});BX.addCustomEvent('B1T_OKRAINA_CUSTOM_HTML_HEADER_FIXED_E_UNFIX',function(){_this.UnFix()});BX.onCustomEvent("B1T_LAZY_LOAD_E_LOAD")};this.RefreshPosition=function(){var bxPanel=$("#bx-panel");var h=$(".b1t-o-ch-header-static");var hOffset=$(h).offset();var hHeight=$(h).outerHeight();var top=0;var show=!1;var scrollTop=$(window).scrollTop();if($(bxPanel).length>0&&$(bxPanel).css("position")==="fixed"){var bxHeight=$(bxPanel).outerHeight();top=bxHeight;if($(window).scrollTop()>hOffset.top+hHeight-bxHeight){show=!0}}else{if($(window).scrollTop()>hOffset.top+hHeight){show=!0}} 2if($(_this.container).hasClass("fix")){var aTop=parseInt($(_this.container).css("top"));if(aTop>scrollTop+top){top=scrollTop+top}else{top=aTop}} 3if($("input:focus",_this.container).length>0){if(B1TeamOkraina_Template.GetInstance().IsIPhoneIPad()){return}} 4if(show){$(_this.container).css("top",top);$(_this.container).addClass("show")}else{if($(_this.container).hasClass("show")){$(_this.container).css("top","-100px");$(_this.container).removeClass("show");BX.onCustomEvent('B1T_OKRAINA_CUSTOM_HTML_HEADER_FIXED_E_HIDE',[_this.container])}}};this.Fix=function(){var top=$(_this.container).offset().top;$(_this.container).addClass("fix").addClass("disable-transition").css("top",top);$(window).scrollTop(window.scrollY)};this.UnFix=function(){$(_this.container).removeClass("fix");_this.RefreshPosition();setTimeout(function(){$(_this.container).removeClass("disable-transition")},100)};$(function(){_this.Init()});return this} 5return B1TeamOkraina_Custom_HeaderFixed})
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.