document.addEventListener("DOMContentLoaded", function () { var menuElement = document.getElementById("menu_1434102754925"); var link = menuElement.querySelector("a"); link.href = "https://www.consalud.cl/beneficios-consalud-2023.html"; }); document.addEventListener('DOMContentLoaded', function () { var rows = document.querySelectorAll('.bg-planes .row'); var divFlotante = document.querySelector('.div-flotante-home'); if (divFlotante) { var enlace = divFlotante.querySelector('a.btn-flotante'); var parrafo = divFlotante.querySelector('.div-flotante-home p'); if (parrafo && parrafo.textContent.includes('Contacta a un ejecutivo y contrata un plan Consalud')) { parrafo.textContent = 'Contacta a un ejecutivo y cámbiate a Consalud '; var nuevoEnlace = document.createElement('a'); nuevoEnlace.setAttribute('class', 'btn-flotante'); nuevoEnlace.setAttribute('href', 'https://www.consalud.cl/planes/contacto-planes.html'); nuevoEnlace.textContent = 'AQUÍ'; parrafo.appendChild(nuevoEnlace); } // Verifica y actualiza el enlace si es necesario if (enlace && enlace.getAttribute('href') === 'https://www.consalud.cl/planes/contacto-ejecutivo.html') { enlace.setAttribute('href', 'https://www.consalud.cl/planes/contacto-planes.html'); } } }); document.addEventListener('DOMContentLoaded', function () { var links = document.querySelectorAll('a.btn.btn-light.icon-social img'); links.forEach(function(link) { if (link.src === "https://www.consalud.cl/recurso/iconmonstr-facebook-icon.svg") { link.src = "/cs/groups/public/documents/document/ym9v/ay0y/~edisp/~extract/ICO-FACEBOOK-2023~1~staticrendition/highresolution.png"; } else if (link.src === "https://www.consalud.cl/recurso/iconmonstr-twitter-icon.svg") { link.src = "/cs/groups/public/documents/document/dhrl/ci0y/~edisp/~extract/ICO-TWITTER-2023~1~staticrendition/highresolution.png"; } else if (link.src === "https://www.consalud.cl/recurso/iconmonstr-youtube-icon.svg") { link.src = "/cs/groups/public/documents/document/dhvi/zs0y/~edisp/~extract/ICO-YOUTUBE-2023~1~staticrendition/highresolution.png"; } else if (link.src === "https://www.consalud.cl/recurso/iconmonstr-instagram-icon.svg") { link.src = "/cs/groups/public/documents/document/z3jh/bs0y/~edisp/~extract/ICO-INSTAGRAM-2023~1~staticrendition/highresolution.png"; } }); }); document.addEventListener('DOMContentLoaded', function() { var footerHeader = document.getElementById('footer-header'); if (footerHeader) { footerHeader.parentNode.removeChild(footerHeader); } });