Diamond Fashion Ring In 14 Karat Yellow Gold Featuring A 0.20ct Emerald Cut Diamond GH In Colour SI2 In Clarity Accented By 0.14ctw Round Brilliant Cut Diamonds GH In Colour SI1 In Clarity
Size: 7
document.addEventListener("DOMContentLoaded", function() {
console.log("DOM fully loaded and parsed");
// Function to hide elements by ID and log the action
function hideElementById(id) {
var element = document.getElementById(id);
if (element) {
element.style.display = "none";
console.log(id + " found and hidden on DOM load");
} else {
console.log(id + " not found on DOM load");
}
}
// Hide elements on initial load
hideElementById("product_configure_form");
hideElementById("header-wishlist");
hideElementById("header-fancy-cart");
// Create a MutationObserver to hide elements if they are dynamically added
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if (mutation.type === "childList") {
hideElementById("product_configure_form");
hideElementById("header-wishlist");
hideElementById("header-fancy-cart");
}
});
});
observer.observe(document.body, { childList: true, subtree: true });
console.log("MutationObserver set up to monitor DOM changes");
});