Manda-Shop

let li_elements = document.getElementsByTagName("li") for (let i = 0; i < li_elements.length; i++){ if (li_elements[i].textContent.includes("SALE")){ console.log(li_elements[i].childNodes[0]) li_elements[i].childNodes[0].style.color = "red"; } } window.onload = function(e){ let elements = document.getElementsByClassName("cmp-product-thumb") $(".category-item-placeholder").css("min-height", elements[0].offsetHeight) }