1$('[data-fancybox]').fancybox(); 2function changeCardQuantity(id, count) { 3 $.getJSON('/ajax/ChangeQuantity.php?id=' + id + "&quantity=" + count+"&mode=0", function (data) { 4 if(data.error=="0"){ 5 var priceElememnt = $("#price_"+id); 6 priceElememnt.html(data.price); 7 reCalculateItogo(); 8 } 9 else{ 10 alert("Error connect, please contact administrator"); 11 } 12 13 }); 14} 15 16function reCalculateItogo(){ 17 var itogoPrice = 0; 18 $( ".itemPrice" ).each(function( index ) { 19 itogoPrice = itogoPrice+parseInt($(this).html()); 20 }); 21 $("#itogoPrice").html(itogoPrice); 22 if (itogoPrice < 700) { 23 $('#basketOrderButton2').hide(); 24 $(".total-price-info").show(); 25 } else { 26 $('#basketOrderButton2').show(); 27 $(".total-price-info").hide(); 28 } 29 30} 31 32function reAllPrice(val){ 33 $("#product-data").attr('data-price', val); 34 productPrice = $("#product-data").data('price'); 35 $('#cardProductPrice').html(productPrice); 36} 37function rePrice(val){ 38 $(".quantity").html("1"); 39 $("#allPrice").html(val); 40 reAllPrice(val); 41} 42$(document).ready(function(){ 43 44 $(".fancybox-gall").fancybox(); 45 $('.rightmenumobiletoggle').click(function() { 46 $('#right_menu').slideToggle(); 47 }); 48 49 $('.mobilemenutoggle').click(function() { 50 $('#top_menu').slideToggle(); 51 }); 52 $('#top_menu li:has(ul)').doubleTapToGo(); 53 54 jQuery("input[name='offer']").click(function () { 55 var newPrice = parseInt($(this).parent().next().html()); 56 57 if(parseInt($("input[name='dop']:checked").attr("price"))>0){ 58 var dopPrice=0; 59 $("input[name='dop']:checked").each(function() { 60 dopPrice+=parseInt($(this).attr("price")); 61 }); 62 newPrice=newPrice+dopPrice; 63 } 64 65 rePrice(newPrice); 66 67 68 }); 69 70 71 jQuery("input[name='dop']").click(function () { 72 var priceCount = parseInt($("input[name='offer']:checked").attr("price")); 73 var quantityElememnt = $(".quantity"); 74 priceCount = parseInt(priceCount)*parseInt(quantityElememnt.html()); 75 var dopPrice=0; 76 $("input[name='dop']:checked").each(function() { 77 dopPrice+=parseInt($(this).attr("price")); 78 }); 79 priceCount=priceCount+dopPrice; 80 81 $("#allPrice").html(priceCount); 82 reAllPrice(priceCount); 83 }); 84 85 // card recalculate 86 jQuery(".basket .plus").click(function () { 87 var idElement = $(this).attr("id"); 88 idElement=idElement.substr(idElement.indexOf("_")+1,idElement.length); 89 var quantityElememnt = $("#quantity_"+idElement); 90 quantityElememnt.html(parseInt(quantityElememnt.html())+1); 91 changeCardQuantity(idElement,parseInt(1)); 92 }); 93 94 jQuery(".basket .minus").click(function () { 95 var idElement = $(this).attr("id"); 96 idElement=idElement.substr(idElement.indexOf("_")+1,idElement.length); 97 var quantityElememnt = $("#quantity_"+idElement); 98 var quantityElememntInt = parseInt(quantityElememnt.html()); 99 if (quantityElememntInt != 1){ 100 quantityElememnt.html(parseInt(quantityElememnt.html())-1); 101 changeCardQuantity(idElement,parseInt(-1)); 102 } 103 }); 104 105 106 jQuery(".count .plus").click(function () { 107 console.log('that'); 108 var idElement = $(this).attr("id"); 109 idElement=idElement.substr(idElement.indexOf("_")+1,idElement.length); 110 var quantityElememnt = $("#quantity_"+idElement); 111 quantityElememnt.html(parseInt(quantityElememnt.html())+1); 112 var priceCount = parseInt($("input[name='offer']:checked").attr("price")); 113 priceCount = parseInt(priceCount)*parseInt(quantityElememnt.html()); 114 console.log(priceCount); 115 var dopPrice=parseInt($("input[name='dop']:checked").attr("price")); 116 if (dopPrice) priceCount = priceCount + dopPrice; 117 $("#allPrice").html(priceCount); 118 reAllPrice(priceCount); 119 }); 120 121 jQuery(".count .minus").click(function () { 122 var idElement = $(this).attr("id"); 123 idElement=idElement.substr(idElement.indexOf("_")+1,idElement.length); 124 var quantityElememnt = $("#quantity_"+idElement); 125 var quantityElememntInt = parseInt(quantityElememnt.html()); 126 if (quantityElememntInt != 1){ 127 quantityElememnt.html(parseInt(quantityElememnt.html())-1); 128 var priceCount = parseInt($("input[name='offer']:checked").attr("price")); 129 priceCount = parseInt(priceCount)*parseInt(quantityElememnt.html()); 130 var dopPrice=parseInt($("input[name='dop']:checked").attr("price")); 131 if (dopPrice) priceCount = priceCount + dopPrice; 132 $("#allPrice").html(priceCount); 133 reAllPrice(priceCount); 134 } 135 }); 136 137}); 138 139 140function map_resize(){ 141 var list_map = document.querySelectorAll("ymaps"); 142 143 var css_main = "display: block;"; 144 if(list_map != null){ 145 Array.prototype.forEach.call(list_map, function(li){ 146 console.log(li.classList.length); 147 if(li.classList.length == 0){ 148 li.style.cssText= css_main; 149 li.classList.add("Glav_map"); 150 } 151 }); 152 } 153} 154$(window).on("load", function(){ 155 map_resize(); 156}); 157 158 159 160 161 162function retail_basket(){ 163 console.log("start_retail"); 164 var url = document.location.href; 165 166 $.post(url, {}, function(result){ 167 try { 168 var $parsed = $($.parseHTML(result)); 169 var component_resultation = $parsed.find(".top-user-basket"); 170 171 if (component_resultation.length) { 172 $(".top-user-basket").html(component_resultation.html()); 173
174 // ÐбновлÑем ÑÐµÐ½Ñ ÐºÐ¾ÑзинÑ, еÑли еÑÑÑ 175 var $price = $parsed.find(".basket-price"); 176 if ($price.length) { 177 $(".basket-price").text($price.text()); 178 } 179 180 // ÐбновлÑем мобилÑнÑÑ ÐºÐ¾ÑзинÑ, еÑли еÑÑÑ 181 var $cartValue = $parsed.find(".new-cart__content-value").first(); 182 if ($cartValue.length) { 183 $(".new-cart__content-value").text($cartValue.text()); 184 } 185 } 186 } catch(e) { 187 console.error('ÐÑибка Ð¾Ð±Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ ÐºÐ¾ÑзинÑ:', e); 188 // ФолбÑк: пеÑезагÑÑзка ÑÑÑаниÑÑ Ð´Ð»Ñ Ð¾ÑобÑÐ°Ð¶ÐµÐ½Ð¸Ñ Ð°ÐºÑÑалÑной коÑÐ·Ð¸Ð½Ñ 189 location.reload(); 190 } 191 }, 'html'); 192 193 console.log("find_retail"); 194} 195//function retail_basket(){ 196// console.log("start_retail"); 197// var url = document.location.href; 198// $.post(url, {}, function(result){ 199// var component_resultation = $(result).find(".top-user-basket"); 200// $(".top-user-basket").html($(component_resultation).html()); 201 202// }); 203// console.log("find_retail"); 204//} 205 206 207$(document).ready(function(){ 208$('.owl-analog').owlCarousel({ 209 loop:true, 210 margin:10, 211 nav:true, 212 responsive:{ 213 0:{ 214 items:1.5, 215 margin:20, 216 217 }, 218 575: { 219 items:2 220 }, 221 756:{ 222 items:3 223 }, 224 1000:{ 225 items:3 226 } 227 } 228}) 229$('.owl-flowers1').owlCarousel({ 230 loop:true, 231 margin:10, 232 nav:true, 233 responsive:{ 234 0:{ 235 items:1 236 }, 237 575: { 238 items:2 239 }, 240 756:{ 241 items:3 242 }, 243 1000:{ 244 items:3 245 } 246 } 247}) 248$('.owl-flowers2').owlCarousel({ 249 loop:true, 250 margin:10, 251 nav:true, 252 responsive:{ 253 0:{ 254 items:1 255 }, 256 575: { 257 items:2 258 }, 259 756:{ 260 items:3 261 }, 262 1000:{ 263 items:3 264 } 265 } 266})
267$('.mainpage-slider').owlCarousel({ 268 items:1, 269loop:true, 270margin:10, 271 dots: true, 272 autoplay: true, 273 autoplayHoverPause:true 274}) 275 $('.cart-new__gifts-tab').on('click', function(){ 276 $('.cart-new__gifts-tab').removeClass('active') 277 $('.cart-new__gifts-block').removeClass('active') 278 $(this).addClass('active') 279 $('.cart-new__gifts-block[data-id="'+ $(this).data('id') +'"]').addClass('active') 280 }) 281 282 var gifts = new Swiper(".gifts-slider", { 283 slidesPerView: 1.8, 284 spaceBetween: 30, 285 navigation: { 286 nextEl: ".gifts-slider .swiper-button-next", 287 prevEl: ".gifts-slider .swiper-button-prev", 288 }, 289 breakpoints: { 290 640: { 291 slidesPerView: 2.5, 292 spaceBetween: 20, 293 }, 294 768: { 295 slidesPerView: 3.8, 296 spaceBetween: 40, 297 }, 298 1024: { 299 slidesPerView: 5, 300 spaceBetween: 50, 301 }, 302 }, 303 }); 304 305 $(".gifts-slider__item-add").click(function(){ 306 setTimeout(function(){ 307 window.location.reload(); 308 }, 500); 309 }); 310})
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.