1var tmpl_path = "";var site_id = "";var cur_pos = 0;var cart_page = "N";function getChar(evt){evt = (evt) ? evt :window.event;var charCode = (evt.which) ? evt.which :evt.keyCode;if (charCode > 31 && (charCode < 46 || charCode > 57)){return null}return true}function menuOffset(li){var mainPosition = $(li).parents('.main-menu-inner').width() + $(li).parents('.main-menu-inner').offset().left;var liPosition = $(li).children('ul').offset().left + $(li).children('ul').width();if (liPosition >= mainPosition) $(li).addClass('reverse')}function mobileMenuPositionFooter(){if ($('.open-menu-mobile').height() > ($('div.open-menu-mobile div.menu-mobile-inner').outerHeight() + $('div.open-menu-mobile div.foot-wrap').outerHeight(true))) $('div.open-menu-mobile div.foot-wrap').addClass('absolute');else{$('div.open-menu-mobile div.foot-wrap').removeClass('absolute')}}function openMenuFooterPos(){var totalHeight = $('.open-menu .head-menu-wrap').outerHeight(true) + $('.open-menu .body-menu').outerHeight(true) + $('.open-menu .footer-menu-wrap').outerHeight(true);var needHeight = $('.open-menu').height() - totalHeight + $('.open-menu .body-menu').outerHeight();if ($(window).height() > totalHeight) $('.open-menu .body-menu').css('min-height',needHeight + 'px')}function krakenResizeVideo(){var win_height = $('div.video-modal').height();var modal = 590;if ($(window).width() > 767){if (win_height > modal) $("div.video-modal div.kraken-modal-dialog").addClass('pos-absolute');else{$("div.video-modal div.kraken-modal-dialog").removeClass('pos-absolute')}}else{$("div.video-modal div.kraken-modal-dialog").addClass('pos-absolute')}}function scrollToBlock(dist,elem){var moreDist = 0;if ($('header').hasClass("fixed")) moreDist = 70;if ($('div').is(".catalog-card-wrap") || $('div').is(".catalog-list-wrap")){moreDist = 40;if ($('header').hasClass("fixed")) moreDist = 110;if (elem){if (elem.hasClass('review')) moreDist = 130}}var destinationhref = parseInt($(dist).offset().top - moreDist);$("html:not(:animated),body:not(:animated)").animate({scrollTop:destinationhref},700,"linear",function(){if( 100 < Math.abs(parseInt($(dist).offset().top - moreDist) - destinationhref) ){$("html:not(:animated),body:not(:animated)").animate({scrollTop:parseInt($(dist).offset().top - moreDist)},300,"linear")}})}function timerCookie(form){var timeout = true;var timer = form.find('input.timerVal').val();var forCookieTime = form.find('input.forCookieTime').val();var totalTime = 0;var mainTime = new Date().getTime();var idElem = form.find("input[name='element']").val();var idSect = form.find('input.idSect').val();var firstEnter = BX.getCookie('_krakenFirstEnter' + idSect + idElem);var firstEnterVal = BX.getCookie('_krakenFirstEnterVal' + idSect + idElem);setTimeout(function(){form.css('min-height',form.outerHeight())},100);form.find('.krakentimer').addClass('active');if (typeof(firstEnter) == "undefined" || firstEnterVal != timer){BX.setCookie('_krakenFirstEnter' + idSect + idElem,mainTime,{expires:forCookieTime * 60 * 60});BX.setCookie('_krakenFirstEnterVal' + idSect + idElem,timer,{expires:forCookieTime * 60 * 60});firstEnter = BX.getCookie('_krakenFirstEnter' + idSect + idElem);firstEnterVal = BX.getCookie('_krakenFirstEnterVal' + idSect + idElem)}totalTime = ((mainTime - firstEnter) / 1000).toFixed();if (totalTime < timer * 60) timer = timer * 60 - totalTime;else{timeout = false}if (timeout) form.find('.krakentimer').countdown({until:timer,format:'HMS',onExpiry:liftOff,layout:form.find('.krakentimer').html()},$.countdown.regionalOptions['ru']);else{form.find('.questions').removeClass('active');form.find('.timeout_text').addClass('active')}function liftOff(){form.find('.questions').removeClass('active');form.find('.timeout_text').addClass('active')}}function parseCount(newVal,step,minVal){var ost = newVal % step;var step_ = step - ost;newVal = newVal - minVal;newVal -= (newVal % step);if(step_ >= ost){newVal += minVal}else{newVal += minVal + step}if (newVal <= minVal || isNaN(newVal))newVal = minVal;return newVal}function formatNum(val){val = String(val).replace(/(\d)(?=(\d{3})+([^\d]|$))/g,'$1 ');return val}function callToCart(templ,action,button){tmpl_path = $("input.tmpl_path").val();site_id = $("input.site_id").val();cart_page = $("input.cart_page").val();preload = false;if (typeof(button) != "undefined" && typeof(action) != "undefined" && (action =="update" || action == "delete")){$(".total-parent-preload-circleG").addClass('active');preload = true;if (action == "update") button.parents(".parent-preload-circleG-wrap").find(".parent-preload-circleG").addClass('active')}path = '';if (templ == "widget" || templ == "mini-widget" || templ == "widget-in-menu")path = 'component_count_cart.php';if (templ == "list" || templ == "total") path = 'component_cart.php';$.post(tmpl_path + '/ajax/cart/' + path,{templ:templ,site_id:site_id,cart_page:cart_page},function(html){if (preload){var ctbOut = setTimeout(function(){$(".area_for_" + templ).html(html);$('.lazyload').Lazy();clearTimeout(ctbOut)},800)}else{$(".area_for_" + templ).html(html);$('.lazyload').Lazy()}})}function updateCart(button,countCart,idcartEl,action,other_complect,redirect){tmpl_path = $("input.tmpl_path").val();site_id = $("input.site_id").val();$.ajax({url:tmpl_path + "/ajax/cart/cart.php",dataType:'json',data:{idcartEl:idcartEl,countCart:countCart,site_id:site_id,action:action,other_complect:other_complect},success:function(json){callToCart("list",action,button);callToCart("total",action,button);callToCart("widget",action,button);callToCart("mini-widget",action,button);if ($(".mini-cart-js").hasClass('active')) callToCart("widget-in-menu",action,button);if (action == "add"){if (button.hasClass('added') || button.parents(".catalog-block").hasClass('first-click-cart')){var addOut = setTimeout(function(){openCart();if (button.parents(".catalog-block").hasClass('first-click-cart')) $(".catalog-block").removeClass('first-click-cart');clearTimeout(addOut)},350)}$(".click_cart[data-cart-id=" + idcartEl + "]").addClass('added')}if (action == "delete") $(".click_cart.added[data-cart-id='" + button.attr("data-cart-id") + "']").removeClass('added');if (action == "clear"){$(".click_cart.added").removeClass('added');if (device.ios()){$("body").removeClass("modal-ios");window.scrollTo(0,cur_pos)}}if (json.EMPTY == "Y"){$('body').removeClass('modal-open');$('.wrapper').removeClass('blur');$('div.cart-parent').removeClass('on');$('.no-click-block').removeClass('on');$('.first-click-cart-on').addClass('first-click-cart');var addOut2 = setTimeout(function(){$('div.cart-parent').removeClass('open');clearTimeout(addOut2)},700);
1if ($('div').is(".cart-first-block")){$(".cart-page-inner-js").addClass('cart-empty');$(".fast-order-btn-cart-page-js").addClass('cart-empty')}}if(redirect.length > 0){location.href = redirect}}})}function openCart(){$('.no-click-block').addClass('on');$('div.cart-parent').addClass('open');$('.wrapper').addClass('blur');$('body').addClass('modal-open');var cartOut = setTimeout(function(){$('div.cart-parent').addClass('on');clearTimeout(cartOut)},200);$('.lazyload','div.cart-parent').each(function(index,element){$(element).attr("src",$(element).attr("data-src"));$(element).removeAttr('data-src')})}function formAttentionScroll(dist,parent){$(parent).animate({scrollTop:dist},700)}$(document).ready(function(){$("input[type='text'],input[type='email']","form.form").focus(function(){$(this).parent().removeClass("has-error")});$("textarea[name='text']","form.form").focus(function(){$(this).parent().removeClass("has-error")})});$(document).on('change',".form.send input[type='file']",function(){var inp = $(this);var file_list_name = "";$(inp[0].files).each(function(key){file_list_name += "<span>"+inp[0].files[key].name+"</span><br/>"});if(!file_list_name.length)return;inp.parents('form.send').addClass('file-download');inp.parents('label').find('.area-files-name').html(file_list_name);inp.parents('label').removeClass("area-file");inp.closest('.load-file').removeClass("has-error")});$(document).on("click","form.form input[type='checkbox']",function(){$(this).parents("div.wrap-agree").removeClass("has-error")});$(document).on("click","button.btn-submit",function(){var form = $(this).parents("form.send");var path = $("input.tmpl_path").val() + "/ajax/forms.php";if (form.hasClass('form-cart') || form.hasClass('form-page-cart')) path = "/bitrix/components/concept/kraken.cart/order.php";var form_id = $("input[name='form-id']",form).val();var button = $("button[name='form-submit']",form);var link = button.attr("data-link");var header = $("input[name='header']",form);var agreecheck = $("input.agreecheck",form);var questions = $("div.questions",form);var load = $("div.load",form);var thank = $("div.thank",form);var error = 0;form.find("input[name='url']").val(decodeURIComponent(location.href));var formSendAll = new FormData();formSendAll.append("send","Y");formSendAll.append("tmpl_path",$("input.tmpl_path").val());if (typeof(agreecheck.val()) != "undefined"){if (!agreecheck.prop("checked")){agreecheck.parents("div.wrap-agree").addClass("has-error");error = 1}}$("input[type='email'],input[type='text'],input[type='password'],textarea",form).each(function(key,value){if ($(this).hasClass("email") && $(this).val().length > 0){if (!(/^([a-z0-9_\-]+\.)*[a-z0-9_\-]+@([a-z0-9][a-z0-9\-]*[a-z0-9]\.)+[a-z]{2,4}$/i).test($(this).val())){$(this).parent("div.input").addClass("has-error");error = 1}}if ($(this).hasClass("require")){if ($(this).val().trim().length <= 0){$(this).val("");$(this).parent("div.input").addClass("has-error");error = 1}}});$("input[type='file']",form).each(function(key,value){if ($(this).hasClass("require")){if ($(this).closest('.load-file').find('span.area-file').hasClass('area-file')){$(this).closest('.load-file').addClass("has-error");error = 1}}});if (!$('.kraken-modal').hasClass('form-modal')){var otherHeight = 0;if ($('header').hasClass('fixed')) otherHeight = $('header .header-top').outerHeight(true)}if (error == 1){if ($('.kraken-modal').hasClass('form-modal')){formAttentionScroll(form.find('.has-error:first').offset().top - form.parents('.kraken-modal-dialog').offset().top,".kraken-modal")}else if (form.hasClass('form-cart')){formAttentionScroll(form.find('.has-error:first').offset().top - form.find(".body").offset().top,".cart-parent")}else{formAttentionScroll(form.find('.has-error:first').offset().top -otherHeight,"html:not(:animated),body:not(:animated)")}}if (error == 0){form.css({"height":form.outerHeight() + "px"});form_arr = $(form).find(':input,select,textarea').serializeArray();for (var i = 0;i < form_arr.length;i++){formSendAll.append(form_arr[i].name,form_arr[i].value)};if (form.hasClass('file-download')){form.find('input[type=file]').each(function(key){var inp = $(this);var file_list_name = "";$(inp[0].files).each(function(k){formSendAll.append(inp.attr('name'),inp[0].files[k],inp[0].files[k].name)})})}button.removeClass("active");load.addClass("active");setTimeout(function(){$.ajax({url:path,type:"post",contentType:false,processData:false,data:formSendAll,dataType:'json',success:function(json){if (json.OK == "N"){button.addClass("active");load.removeClass("active")}if (json.OK == "Y"){if (!form.hasClass('form-page-cart')){questions.removeClass("active");thank.addClass("active")}$.ajax({url:"/",type:"post",success:function(json){}});setTimeout(function(){if ($('.kraken-modal').hasClass('form-modal'))formAttentionScroll(form.find('.thank').offset().top - form.parents('.kraken-modal-dialog').offset().top,".kraken-modal");else if (form.hasClass('form-cart')){formAttentionScroll(form.find('.thank').offset().top - form.find(".body").offset().top,".cart-parent")}else{formAttentionScroll(form.find('.thank').offset().top -otherHeight,"html:not(:animated),body:not(:animated)")}},300);if (form.hasClass('form-cart')){setTimeout(function(){updateCart("","","","clear","","");form.find(".areacart-form").children().remove();form.find(".cart-back").removeClass('active');form.find(".areacart-form").removeClass('active');
1form.find(".info-table").addClass('active')},3000)}if (form.hasClass('form-page-cart')){$('div.google-spin-wrapper').addClass('active');$(".cart-first-block").find(".part-wrap").hide();$(".cart-first-block").find(".form-cart-wrap").hide();updateCart("","","","clear","",json.CART_LINK)}if (typeof(link) != "undefined"){setTimeout(function(){window.location.href = link},3000)}if (json.SCRIPTS.length > 0){$('body').append("<script>"+json.SCRIPTS+"</script>")}}}})},1000)}});$(document).on("focus","form input[type='text'],form textarea",function(){$(this).parent("div.input").removeClass("has-error");if ($(this).val().length <= 0 && !$(this).hasClass("phone")){$(this).attr("data-placeholder",$(this).attr("placeholder"));$(this).attr("placeholder","")}});$(document).on("blur","form input[type='text'],form textarea",function(){if ($(this).val().length <= 0 && !$(this).hasClass("phone")) $(this).attr("placeholder",$(this).attr("data-placeholder"))});$(document).on("keypress","form.form div.count input",function(e){e = e || event;if (e.ctrlKey || e.altKey || e.metaKey) return;var chr = getChar(e);if (chr == null) return false});$(document).on("keyup","form.form div.count input",function(e){var value = $(this).val().toString();var newVal = "";for (var i = 0;i < value.length;i++){if (value[i] == "0" || value[i] == "1" || value[i] == "2" || value[i] =="3" || value[i] == "4" || value[i] == "5" || value[i] == "6" || value[i] =="7" || value[i] == "8" || value[i] == "9") newVal += value[i]}if (newVal == 0) newVal = 1;$(this).val(newVal);if ($(this).val() == "") $(this).parent().addClass('in-focus')});$(document).on("click","form.form div.count span.plus",function(e){var input = $(this).parent("div.count").find("input");var value = parseFloat(input.val());if (isNaN(value)) value = 0;value += 1;input.val(value);if ($(this).val() == "") $(this).parent().addClass('in-focus')});$(document).on("click","form.form div.count span.minus",function(e){var input = $(this).parent("div.count").find("input");var value = parseFloat(input.val());if (isNaN(value)) value = 0;value -= 1;if (value < 0) value = '';if (value == 0) value = 1;input.val(value)});$(document).on("keypress",".only-num",function(e){e = e || event;if (e.ctrlKey || e.altKey || e.metaKey) return;var chr = getChar(e);if (chr == null) return false});$(document).on("focus","input.focus-anim,textarea.focus-anim",function(){if ($(this).val() == "") $(this).parent().addClass('in-focus')});$(document).on("blur","input.focus-anim,textarea.focus-anim",function(){element = $(this);setTimeout(function(){if (element.val() == "") element.parent().removeClass('in-focus')},200)});$(document).on('click','.inp-show-js-padding',function(){var str = $(this).find(".inp-show-js-length").text().length;if(str >= 48)$(this).find("textarea").addClass('two-rows');if(str >= 78)$(this).find("textarea").addClass('three-rows')});
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.