1var recaptcha1; 2var recaptcha2; 3var recaptcha3; 4var recaptcha4; 5var CaptchaCallback = function () { 6 recaptcha1 = grecaptcha.render('recaptcha1', { 7 'sitekey': '6LctrDQUAAAAAB8L5Nho2RRzo1MSfgphTDZaQ-mc', 8 }); 9 10 recaptcha2 = grecaptcha.render('recaptcha2', { 11 'sitekey': '6LctrDQUAAAAAB8L5Nho2RRzo1MSfgphTDZaQ-mc', 12 }); 13 if(document.querySelector("#recaptcha3")) 14 recaptcha3 = grecaptcha.render('recaptcha3', { 15 'sitekey': '6LctrDQUAAAAAB8L5Nho2RRzo1MSfgphTDZaQ-mc', 16 }); 17 18 if(document.querySelector("#recaptcha4")) 19 recaptcha4 = grecaptcha.render('recaptcha4', { 20 'sitekey': '6LctrDQUAAAAAB8L5Nho2RRzo1MSfgphTDZaQ-mc', 21 }); 22}; 23 24BX.ready(function () { 25 26 var selector1 = document.getElementById("phone1"); 27 var selector = document.getElementById("phone"); 28 var im = new Inputmask("+7(999)-999-99-99"); 29 im.mask(selector); 30 im.mask(selector1); 31}); 32 33$(document).ready(function () { 34 35 if (window.location.pathname == '/order/'){ 36 $('.b-title').css({'display':'none'}); 37 } 38 39 40 $('.js-see_also__slider').slick({ 41 slidesToShow: 3, 42 arrows: false, 43 dots: false, 44 variableWidth: false, 45 infinite: false, 46 swipe: false, 47 responsive: [ 48 { 49 breakpoint: 1020, 50 settings: { 51 slidesToShow: 1, 52 variableWidth: false, 53 dots: true, 54 swipe: true 55 } 56 }, 57 { 58 breakpoint: 767, 59 settings: { 60 swipe: true, 61 slidesToShow: 1, 62 variableWidth: false, 63 dots: true 64 } 65 } 66 ] 67 }); 68 69 70 71 $(".form-buy").submit(function(e){ 72 e.preventDefault(); 73 $(this).find(".js-click-btn").click(); 74 }); 75 $(".b-cookie__title").text('Cookie-ÑайлÑ'); 76 77 /*if ($(window).width() > 668){ 78 $(".b-cookie__desc").text('Ðа ÑайÑе иÑполÑзÑÑÑÑÑ cookie-ÑÐ°Ð¹Ð»Ñ Ð¸ дÑÑгие аналогиÑнÑе ÑÐµÑ Ð½Ð¾Ð»Ð¾Ð³Ð¸Ð¸. ÐÑли, пÑоÑиÑав ÑÑо ÑообÑение, Ð²Ñ Ð¾ÑÑаеÑеÑÑ Ð½Ð° наÑем ÑайÑе, ÑÑо ознаÑаеÑ, ÑÑо Ð²Ñ Ð½Ðµ возÑажаеÑе пÑоÑив иÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ ÑÑÐ¸Ñ ÑÐµÑ Ð½Ð¾Ð»Ð¾Ð³Ð¸Ð¹ и обÑабоÑки пеÑÑоналÑнÑÑ Ð´Ð°Ð½Ð½ÑÑ .'); 79 }else{ 80 $(".b-cookie__desc").text('Ðа ÑайÑе иÑполÑзÑÑÑÑÑ cookie-ÑÐ°Ð¹Ð»Ñ Ð¸ дÑÑгие аналогиÑнÑе ÑÐµÑ Ð½Ð¾Ð»Ð¾Ð³Ð¸Ð¸.'); 81 }*/ 82 83 let cookieTextDescription = 'ÐÑÐ¾Ð´Ð¾Ð»Ð¶Ð°Ñ Ð¸ÑполÑзование наÑÑоÑÑего ÑайÑа, ' + 84 'Ð²Ñ Ð²ÑÑажаеÑе ÑÐ²Ð¾Ñ ÑоглаÑие на обÑабоÑÐºÑ Ñайлов cookie в ÑооÑвеÑÑÑвии Ñ ' + 85 '<a href="/include/policy/cookies_bionord.pdf" target="_blank">ÐолиÑикой в оÑноÑении Ñайлов cookie.</a>' + ' ' + 86 'Ð ÑлÑÑае неÑоглаÑÐ¸Ñ Ñ Ð¾Ð±ÑабоÑкой ваÑÐ¸Ñ Ð¿ÐµÑÑоналÑнÑÑ Ð´Ð°Ð½Ð½ÑÑ Ð²Ñ Ð¼Ð¾Ð¶ÐµÑе ' + 87 'оÑклÑÑиÑÑ ÑÐ¾Ñ Ñанение cookie в паÑамеÑÑÐ°Ñ Ð½Ð°ÑÑÑойки ваÑего бÑаÑзеÑа' 88 89 $(".b-cookie__desc").html(cookieTextDescription); 90 91 92 if ($(".bt-js-buy").length) { 93 $(".bt-js-buy").on("click", function () { 94 var offer_id = $(this).data("offer-id"); 95 $('.priceTable.active').removeClass('active'); 96 if ($('.priceTable[data-offer="' + offer_id + '"]').length) { 97 $('.priceTable[data-offer="' + offer_id + '"]').addClass('active'); 98 } 99 }); 100 } 101 102 /*catalog.section calculator*/ 103 calculateAllRows(); 104 $(document).on('click', '.ct-quantity .js-increment', function () { 105 var input = $(this).parent().find('input'), 106 max = input.attr('data-max'), 107 value = parseInt(input.val()) + 1; 108 109 input.val(parseInt(input.val()) + 1); 110 input.trigger('change'); 111 }); 112 $(document).on('click', '.ct-quantity .js-decrement', function () { 113 var input = $(this).parent().find('input'), 114 max = input.attr('data-max'), 115 count = parseInt(input.val()) - 1; 116 console.log(count); 117 count = count < 0 ? 0 : count; 118 input.val(count); 119 input.trigger('change'); 120 }); 121 $(document).on('change', '.ct-quantity .js-input-number', function () { 122 if (isNaN(parseInt($(this).val()))) 123 $(this).val(0); 124 if (parseInt($(this).val()) < 0) 125 $(this).val(0); 126 var itemId = $(this).data('item'); 127 var inputEl = this; 128 var fullPrice = price = 0; 129 $('#item' + itemId + " .item-price-step").each(function (i, e) { 130 if (parseInt($(inputEl).val()) >= parseInt($(e).data('from'))) { 131 price = parseInt($(e).html()); 132 } 133 }); 134 fullPrice = price * $(inputEl).val(); 135 $('#fullPrice' + itemId).html(fullPrice); 136 calculateAllRows(); 137 }); 138 $(document).on('click', '.calculator-show-more', function () { 139 var result = $('.calculator-result'); 140 if (result.hasClass('expanded')) { 141 result.removeClass('expanded'); 142 $(this).removeClass('calculator-show-less'); 143 $('.ct-item').slice(4, 99).css('display', 'none'); 144 } else { 145 result.addClass('expanded'); 146 $(this).addClass('calculator-show-less'); 147 if ($(window).width() <= '767') { 148 $('.ct-item').slice(4, 99).css('display', 'flex'); 149 } else { 150 151 $('.ct-item').slice(4, 99).css('display', 'table-row'); 152 } 153 } 154 }); 155 156 157 158 $(document).on('click', '.ct-to-cart', function () { 159 var offerId = $(this).find('input[name="id"]').val(); 160 var quantity = $('.ct-quantity input[data-item="' + offerId + '"]').val(); 161 var data = { 162 'id': offerId, 163 'quantity': quantity, 164 'offer-id': $(this).find('input[name="offer-id"]').val(), 165 'iblock-id': $(this).find('input[name="iblock-id"]').val(), 166 } 167 $.ajax({ 168 method: 'POST', 169 url: '/ajax/buy.php', 170 data: data, 171 success: function (ret) {
172 if (IsJsonString(ret)) { 173 var ar_data = JSON.parse(ret); 174 if (ar_data.error) { 175 return false; 176 } 177 } else { 178 $(".bx-ajax-basket").html(ret); 179 $.post( // ÐапÑÐ¾Ñ Ð½Ð° обновление ÑÑÐ¼Ð¼Ñ Ð² Ñапке 180 "/ajax/top-sum.php", data, function (data) { 181 $(".bx-ajax-sum").children("span").html("<span>" + number_format(data, 0, ',', ' ') + " â½</span>"); 182 }); 183 } 184 185 } 186 }); 187 }); 188 189 $('.calc-result-btn').click( function(){ 190 var batton_result = $(this); 191 $(this).addClass('js-anim-btn'); 192 $('.ct-to-cart').each( function(){ 193 var offerIdall = $(this).find('input[name="id"]').val(); 194 var quantityall = $('.ct-quantity input[data-item="' + offerIdall + '"]').val(); 195 if(quantityall != '0') { 196 $(this).trigger('click'); 197 } 198 }); 199 setTimeout(function () { 200 batton_result.removeClass('js-anim-btn'); 201 }, 1500); 202 203 }); 204 $('.search-botton').click( function(){ 205 $('.search-form').toggleClass('search-visibal'); 206 }); 207 $('#ORDER_PROP_CITY').change( function(){ 208 $('#ORDER_PROP_STREET, #ORDER_PROP_HOUSE, #ORDER_PROP_PORCH, #ORDER_PROP_FLAT').val(""); 209 }); 210 $('#item175 .ct-btn_plus').trigger( "click" ); 211 $('.ct-item').slice(4, 99).css('display', 'none'); 212 213 214}) 215 216 217function calculateAllRows() { 218 var fullPrice = 0; 219 $('.fullPriceRow').each(function (i, e) { 220 fullPrice += parseInt($(e).html()); 221 }); 222 $('#rowsFullPrice').html(fullPrice + " â½"); 223} 224 225function deleteItemTop (elem) { 226 var elemId = $(elem); 227 var $data = {}; 228 $data["offer-id"]= elemId.data("offer-id"); 229 $data["delete"]= "Y"; 230 $.post( 231 "/ajax/basket-change-ajax.php", 232 $data, 233 function (data) { 234 $(".bx-ajax-basket-page").html(data); 235 $.post( // ÐапÑÐ¾Ñ Ð½Ð° обновление коÑÐ·Ð¸Ð½Ñ Ð² Ñапке 236 "/ajax/top-sum.php", 237 $data, 238 function (data) { 239 $(".bx-ajax-sum").children("span").html( "<span>" + number_format(data, 0, ',', ' ') +" â½</span>"); 240 } 241 ); 242 var $data = {}; 243 $data["top-basket"] = "Y"; 244 $.post( // ÐапÑÐ¾Ñ Ð½Ð° обновление коÑÐ·Ð¸Ð½Ñ Ð² Ñапке 245 "/ajax/top-basket.php", 246 $data, 247 function (data) { 248 $(".bx-ajax-basket").html(data); 249 } 250 ); 251 } 252 ); 253} 254 255 256function updatePrice() { 257 res = $('.select-count [name="quantity"]').val(); 258 d = 0; 259 260 $.each( offers, function( key, value ) { 261 262 console.log(value); 263 if (Number(res) >= Number(value.quant)) { 264 d = key; 265 } 266 }); 267 268 $('.b-single__price:not(.b-single__price-old) .like_h2').html(offers[d].price + ' â½'); 269} 270 271 272$(function() { 273 274 $('.select-count [name="quantity"]').change(function() { 275 276 if (offers != undefined) { 277 setTimeout(function () { 278 updatePrice(); 279 },400); 280 } 281 282 }); 283 284 $('.select-count .js-decrement,.select-count .js-increment').click(function() { 285 286 if (offers != undefined) { 287 setTimeout(function () { 288 updatePrice(); 289 },400); 290 } 291 }); 292 293}); 294 295 296function drawShelves() { 297 email = document.querySelector('#email').value 298 firstName = document.querySelector('#name').value 299 phone = document.querySelector('#phone').value 300 policy = document.querySelector('#policy').value 301 smartToken = document.querySelector('#captcha-container-dist input[name="smart-token"]').value 302 $.post('/ajax/request-dist.php', {mail: email, name:firstName, number:phone, "smart-token":smartToken, policy:policy}, function(data) { 303 success = document.querySelector('.b-form__wrap'); 304 if(JSON.parse(data).result==1) { 305 success.innerHTML = "<div class='b_form__wrap'><h3>СпаÑибо за заÑвкÑ, ÑкоÑо Ñ Ð²Ð°Ð¼Ð¸ ÑвÑжÑÑÑÑ!</h3></div>"; 306 } 307 }); 308 309}
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.