1function sendMailWhenAvailable ($product){ 2 3 var $sizes_list = $product.parents('.options-wrapper').find('.sizes-btn-wrapper.quantity-select-wrapper .sizes-inner-wrapper .item'); 4 if($sizes_list.length === 1 ){ 5 6 $sizes_list.trigger('click'); 7 } 8} 9 10function productAlternativeParts(){ 11 tableId = 'sparePartsAlternative'; 12 13} 14function applyPricesWhenClicked(){ 15 $(document).on('click', '.product-listing-items .row .product-item-tab-sizes .sizes-selector-wrapper .item.btn-sizes', function() { 16 if ($(this).hasClass('active')) { 17 var price = $(this).attr('data-productsize-price'); 18 var priceElement = $(this).closest('.product-item-tab-sizes').find('.prices-wrapper .current-price span'); 19 20 if (priceElement.length > 0 && price) { 21 var helper = priceElement[0].nextSibling; 22 23 if (helper && helper.nodeType === Node.TEXT_NODE) { 24 helper.textContent = ' ' + price.trim() + ' '; 25 } else { 26 priceElement[0].parentNode.insertBefore(document.createTextNode(' ' + price.trim() + ' '), priceElement[0].nextSibling); 27 } 28 29 } else { 30 console.warn('Required elements or price data not found.'); 31 } 32 } 33 }); 34} 35//applyPricesWhenClicked();
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.