1$(function(){$('[data-toggle="tooltip"]').tooltip();});$(function(){$(window).scroll(function(){if($(this).scrollTop()!=0){$('#toTopBlock').fadeIn();}else{$('#toTopBlock').fadeOut();}});$('#toTop').click(function(){$('body,html').animate({scrollTop:0},800);});});$("body").on('click','[href*="#"]',function(e){var fixed_offset=100;$('html,body').stop().animate({scrollTop:$(this.hash).offset().top-fixed_offset},1000);e.preventDefault();});function wpguruLink(){var choose=window.getSelection();var istS='ÐÑÑоÑник:';var copyR='© Bar-1.ru';var body_element=document.getElementsByTagName('body')[0];var myLink=document.location.href;var authorLink="<br /><br />"+istS+' '+"<a href='"+myLink+"'>"+myLink+"</a><br />"+copyR;var copytext=choose+authorLink;var addDiv=document.createElement('div');addDiv.style.position='absolute';addDiv.style.left='-99999px';body_element.appendChild(addDiv);addDiv.innerHTML=copytext;choose.selectAllChildren(addDiv);window.setTimeout(function(){body_element.removeChild(addDiv);},0);}document.oncopy=wpguruLink;function getCookie(name){var matches=document.cookie.match(new RegExp("(?:^|; )"+name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,'\\$1')+"=([^;]*)"));return matches?decodeURIComponent(matches[1]):undefined;}function setCookie(name,value,options){options=options||{};var expires=options.expires;if(typeof expires=="number"&&expires){var d=new Date();d.setTime(d.getTime()+expires*1000);expires=options.expires=d;}if(expires&&expires.toUTCString){options.expires=expires.toUTCString();}value=encodeURIComponent(value);var updatedCookie=name+"="+value;for(var propName in options){updatedCookie+="; "+propName;var propValue=options[propName];if(propValue!==true){updatedCookie+="="+propValue;}}document.cookie=updatedCookie;}function deleteCookie(name){setCookie(name,"",{expires:-1})}$(document).ready(function(){$('input[name="cook"]').each(function(){if($(this).prop('checked')){$(this).parents('.cookBlock').addClass('active');}});$('input[name="f_DeliveryMethod"]').each(function(){if($(this).prop('checked')){$(this).parents('.deliveryMethodChoise').addClass('active');}});$('input[name="f_PaymentMethod"]').each(function(){if($(this).prop('checked')){$(this).parents('.paymentMethodChoise').addClass('active');}});});$('.cookBlock').on('click',function(){$('input[name="cook"]').prop('selected',false);$('.cookBlock').removeClass('active');$(this).find('input[name="cook"]').prop('selected',true);$(this).addClass('active');});$('.deliveryMethodChoise').on('click',function(){$('input[name="f_DeliveryMethod"]').prop('selected',false);$('.deliveryMethodChoise').removeClass('active');$(this).find('input[name="f_DeliveryMethod"]').prop('selected',true);$(this).addClass('active');});$('.paymentMethodChoise').on('click',function(){$('input[name="f_PaymentMethod"]').prop('selected',false);$('.paymentMethodChoise').removeClass('active');$(this).find('input[name="f_PaymentMethod"]').prop('selected',true);$(this).addClass('active');});$(function(){var cartBlock=document.getElementById('cartBlock');function processCartResponse(response){var totalItems=response.TotalItemCount;var cartHtml='';var mobileCartHtml='';var couponsHtml='<form class="form-inline" method="post" id="formCoupons"><fieldset style="width: 100%;"><h4 class="sectionHeader">ÐÑÐ¿Ð¾Ð½Ñ Ð½Ð° ÑкидкÑ</h4> <div><input class="form-control form-control-sm" type="text" size="15" name="coupon_add"> <button class="btn btn-info btn-sm" type="submit">ÐÑимениÑÑ</button> </div></fieldset></form>';var cartFooter='<p class="text-center" style="margin-top: 10px;"><a href="https://bar-1.ru/netcat/modules/netshop/actions/cart.php" class="clearMyCart">оÑиÑÑиÑÑ ÐºÐ¾ÑзинÑ</a><br/>ÐобавÑÑе в заказ блÑда из <a href="https://bar-1.ru/menu">менÑ</a></p>' 2if(totalItems){cartHtml='<div><form method="post" action="/netcat/modules/netshop/actions/cart.php">'+'<input type="hidden" name="redirect_url" value=""/>'+'<input type="hidden" name="cart_mode" value="">'+'<fieldset>'+'<table class="table table-sm topCartForm">'+'<thead>'+'<tr>'+'<th style="min-width: 10px;">#</th>'+'<th style="width: 100% !important;">Ðазвание</th>'+'<th class="text-xs-center" style="min-width: 50px;">ÐолиÑеÑÑво</th>'+'<th class="text-xs-center" style="min-width: 30px;">СÑоимоÑÑÑ</th>'+'<th style="min-width: 10px;"></th>
2'+'</tr>'+'</thead>'+'<tbody>'+'<tr>';var i=0;$.each(response.Items,function(k,v){i++;cartHtml+=''+'<!-- ÐÐ¾Ð¼ÐµÑ Ð² ÑаблиÑе--><th scope="row" class="align-middle" style="min-width: 10px;">'+i+'</th>'+'<!-- Ðазвание --><td class="align-middle" style="width: 100% !important;">'+v.Name+'</td>'+'<!-- ÐолиÑеÑÑво--><td class="align-xs-center align-middle" style="min-width: 50px;">'+'<input class="form-control form-control-sm" type="number" min="1" max="10" step="1" size="2"'+'name="cart['+v.Class_ID+']['+v.Message_ID+']"'+'value="'+v.Qty+'"/>'+'</td>'+'<!-- СÑоимоÑÑÑ --><td class="text-xs-center align-middle" style="min-width: 30px;">'+v.TotalPriceF+'</td>'+'<!-- УдалиÑÑ-->'+'<td class="align-middle" style="min-width: 10px;">'+'<button class="btn btn-link topCartFormDelItemBtn" title="УдалиÑÑ Ð¸Ð· коÑзинÑ"'+'type="submit" name="cart['+v.Class_ID+']['+v.Message_ID+']" value="0">'+'<i class="fa fa-times" aria-hidden="true"></i>'+'</button></td>'+'</tr>';});cartHtml+='</tbody></table>';if(response.TotalItemDiscountSum){cartHtml+='<!-- ÐалиÑие СÐÐÐÐÐ-->'+'<div style="padding: 2px 5px 5px 0; text-align: right; color: red;">'+'<strong>Скидка: <span style="font-size: 1.2rem;">'+response.TotalItemDiscountSumF+'</span></strong>'+'</div>';}cartHtml+='<!-- Ðлок ÐТÐÐÐ-->'+'<div style="padding-bottom: 15px; padding-right: 5px; text-align: right;">'+'<strong>ÐÑого к оплаÑе: <span style="font-size: 1.4rem;">'+response.TotalItemPriceF+'</span></strong> '+'</div>';cartHtml+='<!-- ÐеÑеÑÑиÑаÑÑ ÐºÐ¾ÑÐ·Ð¸Ð½Ñ -->'+'<div> '+'<!-- <button class="btn btn-secondary btn-sm" type="submit" style="margin-right: 4px;">ÐеÑеÑÑиÑаÑÑ</button> -->'+'<a class="btn btn-success btn-sm" href="https://bar-1.ru/orders/add_order.html">ÐÑоÑмиÑÑ</a>'+'</div>'+'</fieldset>'+'</form>'+'</div>';}else{cartHtml='<div><i class="fa fa-list-alt" aria-hidden="true"></i> СÑÑÑ Ð¿ÑÑÑ!<br/>\n<a href="https://bar-1.ru/menu">ÐÑпÑавиÑÑ ÑÑо!</a></div>';}$('#cartBlockMain').html(cartHtml);$('#cartBlockMEmpt').removeClass('badge-default').addClass('badge-success').prop("id","cartBlockMFull");$('#cartBlockMFull').html(response.TotalItemCount);$('#cartBlockMFull').toggleClass('flip');var formCoupons=$('#formCoupons').html();if(!formCoupons){$('#cartBlockCoupons').html(couponsHtml);$('#cartBlockCoupons').after(cartFooter);}changeCartPositionCSS();if(response.QuantityNotifications){}}function processCartError(){alert('Ðе ÑдалоÑÑ Ð´Ð¾Ð±Ð°Ð²Ð¸ÑÑ ÑÐ¾Ð²Ð°Ñ Ð² коÑзинÑ');}function pluralForm(itemQuantity,one,two,many){itemQuantity=Math.abs(itemQuantity)%100;var underHundred=itemQuantity%10,result=many;if(underHundred>1&&underHundred<5){result=two;}
2if(underHundred==1){result=one;}if(itemQuantity>10&&itemQuantity<20){result=many;}return result;}$('.addToCart').on('click',function(e){e.preventDefault();var form=$(e.target).closest('form');$.post(form.attr('action'),form.serialize()+"&json=1",function(response){processCartResponse(response);},'json');return false;});$('body').on('click','.clearMyCart',function(e){e.preventDefault();var url=$(this).prop('href');console.log(url);$.post(url,{"cart_clear":1},null,'json');location.reload();return false;});function changeCartPositionCSS(){var cartBlockHeight=$('#cartBlock').outerHeight();var windowHeight=$(window).height();var documentHeight=$(document).height();var footerHeight=$('footer').height();var activeHeight=documentHeight-footerHeight;var topCartPosition=$('#cartBlock').offset().top;var topCartPositionScroll=null;var delta=cartBlockHeight-windowHeight;var move=null;var direction='';var directionScroll='';console.log('cartBlockHeight = '+cartBlockHeight);console.log('window = '+windowHeight);console.log('document = '+documentHeight);console.log('footer = '+footerHeight);console.log('activeHeight = '+activeHeight);if(cartBlockHeight>windowHeight){topCartPosition=$('#cartBlock').offset().top;delta=cartBlockHeight-windowHeight;$(window).bind('mousewheel',function(event){if(event.originalEvent.wheelDelta>=0){direction='up';}else{direction='down';}});$(window).scroll(function(){if(direction!=directionScroll){directionScroll=direction;topCartPosition=$('#cartBlock').offset().top;}topCartPositionScroll=$(window).scrollTop();if(topCartPositionScroll==0){$('#cartBlockWrapper').css({'top':'15px'});}if(topCartPositionScroll==(documentHeight-windowHeight)){$('#cartBlockWrapper').css({'top':windowHeight-cartBlockHeight-15});}move=topCartPosition-topCartPositionScroll;if(topCartPosition>15||topCartPosition<10){if(topCartPosition-15<topCartPositionScroll){if(-move-15<delta){$('#cartBlockWrapper').css({'top':topCartPosition-topCartPositionScroll});}}}});}}changeCartPositionCSS();$(window).resize(function(){changeCartPositionCSS()});});
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.