1(function($,undefined){window.toHistory=function(url){if(history.pushState!==undefined){history.pushState(null,document.title,url);}};window.loadWishlinks=function(){return;$('[data-wishlist-id]:not(.loaded)').each(function(){var that=this;$.ajax({url:'/ajax.php?type=wItem3&id='+$(that).attr('data-wishlist-id'),success:function(data){$(that).html(data).addClass('loaded');}});});};$(function(){window.loadWishlinks();});window.loadWishLink=function(id){return;$.ajax({url:'/ajax.php?type=wItem3&id='+id,success:function(data){$('[data-wishlist-id='+id+']').html(data);}});};window.clickWishLink=function(id,url){$.ajax({url:url,success:function(){loadWishLink(id);}});return false;};window.clickWishLinkAuth=function(id){window.subscribedWish=id;if($('#loginForm').parents('.navbar-nav').is(':visible')){$('#loginForm').parents('ul').show();}else{var button=$('#sticky2 .navbar-toggle');if(!button.parent().hasClass('canvas-slid')){button.click();}} 2return false;} 3window.JsHttpRequest||document.write('<script type="text/javascript" src="/system/jshttprequest/jshttprequest.js"><\/script>');window.wishListEdit=function(id,sectionId,link,wishlistSection,block_code){function setMindboxWishlist(){$.ajax({url:'/request.php?mode=front&item='+wishlistSection+'&action=getMindboxWishlist',type:'POST',success:function(data){data=JSON.parse(data);if(data&&data.productList&&mindbox){mindbox('async',{operation:'SetWishlistPCItemList',data:data});}}});} 4let item_list_name='catalog';if(typeof(block_code)!='undefined'){item_list_name=block_code;}else if($(link).closest('.digi-product').length>0){item_list_name='search_results';}else if($(link).closest('.tovcat').length>0&&String(location.href).indexOf('/eshop/ucenka/')>=0){item_list_name='ucenka';}else if($(link).closest('.tovcat').length>0&&String(location.href).indexOf('/eshop/plus-podarok/podarki-dlya-sebya/')>=0){item_list_name='plus_podarok';} 5var req=new JsHttpRequest();if(link.getAttribute('data-wishlist')>0){req.onreadystatechange=function(){if(req.readyState==4&&req.status==200){link.setAttribute('data-wishlist',0);link.innerHTML='<span class="glyphicon glyphicon-heart-empty"></span>';setMindboxWishlist();if(req.responseJS.product_info){window.dataLayer=window.dataLayer||[];dataLayer.push({ecommerce:null});dataLayer.push({event:'remove_from_wishlist',ecommerce:{currency:'RUB',value:req.responseJS.product_info.price,items:[{'item_name':req.responseJS.product_info.name,'item_id':req.responseJS.product_info.codenumeric,'price':req.responseJS.product_info.price,'item_brand':req.responseJS.product_info.brand,'item_category':req.responseJS.product_info.category,'item_list_name':item_list_name,'index':1,'quantity':1}]}});}} 6if(req.responseText) 7$('debugbox').innerHTML=req.responseText;};req.caching=false;req.open('POST','/request.php?mode=front&item='+wishlistSection+'&action=delwishlist',true);req.send({id:link.getAttribute('data-wishlist')});}else{req.onreadystatechange=function(){if(req.readyState==4&&req.responseJS.result>0){link.setAttribute('data-wishlist',req.responseJS.result);link.innerHTML='<span class="glyphicon glyphicon-heart"></span>';setMindboxWishlist();products_in_wishlist[id]=req.responseJS.result;if(req.responseJS.product_info){window.dataLayer=window.dataLayer||[];dataLayer.push({ecommerce:null});dataLayer.push({event:'add_to_wishlist',ecommerce:{currency:'RUB',value:req.responseJS.product_info.price,items:[{'item_name':req.responseJS.product_info.name,'item_id':req.responseJS.product_info.codenumeric,'price':req.responseJS.product_info.price,'item_brand':req.responseJS.product_info.brand,'item_category':req.responseJS.product_info.category,'item_list_name':item_list_name,'index':1,'quantity':1}]}});}} 8if(req.responseText) 9$('debugbox').innerHTML=req.responseText;};req.caching=false;req.open('POST','/request.php?mode=front&item='+wishlistSection+'&action=addwishlist',true);req.send({id:id,section_id:sectionId});} 10return false;};window.wishListEditPage=function(id,sectionId,link,wishlistSection,newp){function setMindboxWishlist(){$.ajax({url:'/request.php?mode=front&item='+wishlistSection+'&action=getMindboxWishlist',type:'POST',success:function(data){data=JSON.parse(data);if(data&&data.productList&&mindbox){mindbox('async',{operation:'SetWishlistPCItemList',data:data});}}});} 11var req=new JsHttpRequest();if(link.getAttribute('data-wishlist')>0){req.onreadystatechange=function(){if(req.readyState==4&&req.status==200){
11if(newp){link.setAttribute('data-wishlist',0);link.innerHTML='<img src="/templates/pharmacosmetica/img/wish.png" alt="wish"><span>ХоÑÑ</span>';}else{$(link).parent().find('.parent-text').html('ÐобавиÑÑ Ð²');link.setAttribute('data-wishlist',0);link.innerHTML='<span class="glyphicon glyphicon-heart"></span> СÐÐСÐÐ ÐÐÐÐÐÐÐ';} 12setMindboxWishlist();if(req.responseJS.product_info){window.dataLayer=window.dataLayer||[];dataLayer.push({ecommerce:null});dataLayer.push({event:'remove_from_wishlist',ecommerce:{currency:'RUB',value:req.responseJS.product_info.price,items:[{'item_name':req.responseJS.product_info.name,'item_id':req.responseJS.product_info.codenumeric,'price':req.responseJS.product_info.price,'item_brand':req.responseJS.product_info.brand,'item_category':req.responseJS.product_info.category,'item_list_name':'catalog','index':1,'quantity':1}]}});}} 13if(req.responseText) 14$('debugbox').innerHTML=req.responseText;};req.caching=false;req.open('POST','/request.php?mode=front&item='+wishlistSection+'&action=delwishlist',true);req.send({id:link.getAttribute('data-wishlist')});}else{req.onreadystatechange=function(){if(req.readyState==4&&req.responseJS.result>0){if(newp){link.setAttribute('data-wishlist',req.responseJS.result);link.innerHTML='<img src="/templates/pharmacosmetica/img/wishadd.png"><span>УдалиÑÑ</span>';}else{$(link).parent().find('.parent-text').html('УдалиÑÑ Ð¸Ð·');link.setAttribute('data-wishlist',req.responseJS.result);link.innerHTML='<span class="glyphicon glyphicon-heart"></span> СÐÐСÐÐ ÐÐÐÐÐÐÐ';} 15setMindboxWishlist();if(req.responseJS.product_info){window.dataLayer=window.dataLayer||[];dataLayer.push({ecommerce:null});dataLayer.push({event:'add_to_wishlist',ecommerce:{currency:'RUB',value:req.responseJS.product_info.price,items:[{'item_name':req.responseJS.product_info.name,'item_id':req.responseJS.product_info.codenumeric,'price':req.responseJS.product_info.price,'item_brand':req.responseJS.product_info.brand,'item_category':req.responseJS.product_info.category,'item_list_name':'catalog','index':1,'quantity':1}]}});}} 16if(req.responseText) 17$('debugbox').innerHTML=req.responseText;};req.caching=false;req.open('POST','/request.php?mode=front&item='+wishlistSection+'&action=addwishlist',true);req.send({id:id,section_id:sectionId});} 18return false;}})(jQuery);
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.