Manda-Shop

UNSERE KOLLEKTION

document.getElementById("whichcollection").innerHTML = document.title.replace('| Maala Fashion', '') if (document.getElementById("whichcollection").innerHTML.includes('Fashion Made Better')){ document.getElementById("whichcollection").innerHTML = "New In"; }

Basics

setTimeout(function(){ let all_categories = document.getElementById("categorydescid").textContent console.log(all_categories ) if (!(all_categories == "")){ let array = JSON.parse(all_categories )[0] console.log(array) for (variable in array ) { let newDiv = document.createElement("a"); newDiv.textContent = variable; newDiv.href=array[variable]; newDiv.style = "padding: 7px 12px;border-radius: 5px;border: 1px solid #666;margin: 10px;display: inline-block;" console.log(document.getElementById("subcategoriesdiv")) document.getElementById("subcategoriesdiv").appendChild(newDiv ); } } }, 1000)
window.onload = function(e){ let elements = document.getElementsByClassName("cmp-product-thumb") $(".category-item-placeholder").css("min-height", elements[0].offsetHeight) }