1$(document).ready(function(){ 2 3 $(document).on("click",".kd-lvi-td-to_top-image-acs",function(){ 4 var id=$(this).closest("tr[data-tp_id]").attr("data-tp_id"); 5 var pr=$(this).closest(".kd-lvi-td-to_top"); 6 $.ajax({ 7 type: "POST", 8 url: "/ajax/favorite.php", 9 data: ({"id":id}), 10 success: function(data){ 11 switch(data.trim()){ 12 case 'done' : 13 pr.addClass("kd-lvi-td-to_top-active"); 14 pr.children('.kd-lvi-td-to_top-image-wrap').attr('title', BX.message('O2K_IN_FAVORITE')); 15 targetFavoriteAddCustom = new Event("targetFavoriteAddCustom", {bubbles: true}); 16 document.dispatchEvent(targetFavoriteAddCustom); 17 break; 18 case 'deleted' : 19 pr.removeClass("kd-lvi-td-to_top-active"); 20 pr.children('.kd-lvi-td-to_top-image-wrap').attr('title', BX.message('O2K_OUT_FAVORITE')); 21 break; 22 case 'fail' : 23 alert("error"); 24 break; 25 } 26 } 27 }) 28 }); 29 $('.js-viewed-products-slider').on('mouseenter', '.kd-help-block.labels', function () { 30 $('.js-viewed-products-slider').addClass('label-hover'); 31 }).on('mouseleave', '.kd-help-block.labels', function () { 32 $('.js-viewed-products-slider').removeClass('label-hover'); 33 }); 34});
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.