1jQuery(document).ready(function(){ 2 3 console.log(albdesignwcdonationsfrontend); 4 5 if (albdesignwcdonationsfrontend.woocommerce_uses_blocks == 'yes' && albdesignwcdonationsfrontend.donation_product_id > 0 && albdesignwcdonationsfrontend.donation_product_permalink && albdesignwcdonationsfrontend.donation_in_cart !='yes') { 6 7 setTimeout(function(){ 8 if ( document.querySelector('.wc-block-cart-items') ){ 9 var add_donation_link_on_checkout = document.createElement('a'); 10 add_donation_link_on_checkout.href= albdesignwcdonationsfrontend.donation_product_permalink ; 11 add_donation_link_on_checkout.text =albdesignwcdonationsfrontend.link_text; 12 document.querySelector('.wc-block-cart-items').parentElement.appendChild(add_donation_link_on_checkout); 13 14 } 15 16 if ( document.querySelector('.wc-block-components-totals-wrapper') ) { 17 var add_donation_link_on_checkout = document.createElement('a'); 18 add_donation_link_on_checkout.href= albdesignwcdonationsfrontend.donation_product_permalink ; 19 add_donation_link_on_checkout.text =albdesignwcdonationsfrontend.link_text; 20 21 22 document.querySelector('.wc-block-components-totals-wrapper').parentElement.appendChild(add_donation_link_on_checkout); 23 } 24 25 } , 300 ); 26 27 } 28 29 30});
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.