1var productTabs = { 2 url: '', 3 started: {}, 4 5 init: function () { 6 7 var first = $('.product_tabs__tabs a').get(0); 8 $(first).addClass('active'); 9 productTabs.get($(first).attr('href').substr(1), false); 10 11 $('.product_tabs__tabs a').on('click', function () { 12 $('.product_tabs__tabs a.active').removeClass('active'); 13 $(this).addClass('active'); 14 15 productTabs.get($(this).attr('href').substr(1), true); 16 return false; 17 }); 18 19 }, 20 21 get: function (id, need_loading) { 22 if (productTabs.started[id] === undefined) { 23 if (need_loading) 24 loading(); 25 26 $.ajax({ 27 url: productTabs.url, 28 dataType: "html", 29 type: "POST", 30 data: { 31 id: id 32 }, 33 success: function(data){ 34 35 $('.product_tabs__products_container.active').removeClass('active'); 36 37 var html = '<div id="tab_'+ id +'" class="product_tabs__products_container active">'+ data +'</div>'; 38 $('.product_tabs__products').append(html); 39 40 setTimeout(function (){ 41 initProductHeight('.product_tabs__products_container.active', 0, '.catalog_item_wrapp.item'); 42 initProductHeight('.product_tabs__products_container.active', 0, '.item-title'); 43 initProductHeight('.product_tabs__products_container.active', 0, '.catalog_item'); 44 }, 200); 45 46 /*site. 47 site.initProductLink();*/ 48 49 /*productTabs.started[id] = new Swiper('#slider_tab'+ id, { 50 slidesPerView: 2, 51 slideClass: 'product_list__item', 52 pagination: { 53 el: '.swiper-pagination', 54 }, 55 });*/ 56 57 if (need_loading) 58 loading(false); 59 }, 60 }); 61 } 62 63 $('#tab_'+ id).addClass('active'); 64 } 65};
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.