1jQuery(document).ready(function ($) { 2 var get_tax_value = document.getElementById("tax-rate-for-calculation").innerHTML; 3 // console.log(get_tax_value) 4 var get_real_price = document.getElementById("wp-real-price").innerHTML; 5 // console.log(get_real_price) 6 var get_price_with_percent = (parseFloat(get_real_price) + parseFloat(get_real_price * (get_tax_value / 100))).toFixed(2); 7 // console.log(get_price_with_percent) 8 9 const currencySymbol = document.getElementsByClassName("woocommerce-Price-currencySymbol")[0].innerHTML; 10 // console.log(currencySymbol) 11 var total_content = currencySymbol + get_price_with_percent + ' Inc VAT ' + currencySymbol + get_real_price + ' Exc VAT'; 12 // console.log(total_content) 13 var inc_vat = currencySymbol + get_price_with_percent + ' Inc VAT '; 14 var exc_vat = currencySymbol + get_real_price + ' Exc VAT'; 15 16 // $('.entry-summary .price').append('<span style="font: 600 1.5rem/1 var(--porto-add-to-cart-ff), var(--porto-body-ff), sans-serif; color: #482683; font-weight : bold" >' + total_content + '</span>') 17 $('.entry-summary .price').append('<span class="price-with-inc-vat" >' + inc_vat + '</span>' + '<span class="price-with-exc-vat" >' + exc_vat + '</span>') 18 19})
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.