Ir directamente al contenido
Carrito
€0,00
(0)
Quienes somos
Michelangelo
Leonardo
Cosméticos
Productos dentales
Tutoriales
algajoy
Mi cuenta
Carrito
€0,00
(0)
Mi cuenta
Quienes somos
Michelangelo
Leonardo
Cosméticos
Productos dentales
Tutoriales
algajoy
Su carrito actualmente está vacío.
Seguir comprando
Carrito de compra
Seguir comprando
Precio
Cantidad
Total
Buscar
document.addEventListener("DOMContentLoaded", () => { // Controlla se l'utente sta visitando la pagina specificata if (window.location.pathname.includes("/collections/dental-materials")) { // Crea un modal personalizzato let modal = document.createElement("div"); modal.style.position = "fixed"; modal.style.top = "0"; modal.style.left = "0"; modal.style.width = "100%"; modal.style.height = "100%"; modal.style.backgroundColor = "rgba(0,0,0,0.5)"; modal.style.display = "flex"; modal.style.alignItems = "center"; modal.style.justifyContent = "center"; let modalContent = document.createElement("div"); modalContent.style.background = "white"; modalContent.style.padding = "20px"; modalContent.style.borderRadius = "8px"; modalContent.style.textAlign = "center"; let message = document.createElement("p"); message.textContent = "This section is reserved for dental professionals. Do you confirm that you are a dental professional?"; let confirmButton = document.createElement("button"); confirmButton.textContent = "Confirm"; confirmButton.style.marginRight = "10px"; confirmButton.onclick = () => document.body.removeChild(modal); let cancelButton = document.createElement("button"); cancelButton.textContent = "Cancel"; cancelButton.onclick = () => { window.location.replace("https://algaplay.com"); }; modalContent.appendChild(message); modalContent.appendChild(confirmButton); modalContent.appendChild(cancelButton); modal.appendChild(modalContent); document.body.appendChild(modal); } });