1/* 2* Label variable 3*/ 4jQuery(document).ready(function ($) { 5 "use strict"; 6 jQuery(function ($) { 7 let button = $('.single_add_to_cart_button').eq(0), 8 add_to_cart_text = button.html() 9 $('form.variations_form') 10 .on('show_variation', function (event, variation) { 11 // Prevent show variation not correct 12 let current_variation = $('.variation_id').val(); 13 if ( variation.variation_id != current_variation ) { 14 return; 15 } 16 if (variation.hasOwnProperty('pre_order_label')) { 17 button.html(variation.pre_order_label); 18 } else { 19 button.html(add_to_cart_text); 20 } 21 }) 22 .on('hide_variation', function (event) { 23 event.preventDefault(); 24 button.html(add_to_cart_text); 25 }); 26 27 if($('body').hasClass('theme-uncode') && $('body').hasClass('archive')){ 28 let wpro_shop_text = $('.wpro-pre-order-shop-page'); 29 let product_item = wpro_shop_text.nextAll('.tmb').first(); 30 let produt_inside = product_item.find('.t-inside .t-entry-text'); 31 wpro_shop_text.css('margin-bottom', '0px'); 32 produt_inside.prepend(wpro_shop_text); 33 } 34 }); 35}); 36
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.