Book Fitter Appointment

Close

Book Fitter Appointment


    Post Surgical Essentials
    document.addEventListener("DOMContentLoaded", function () { const colors = [ "#F0C3C3", "#D88A8A", "#C76E6E", "#A54545", "#823434", "#FFD700", "#FF5733", "#28A745", "#007BFF", "#6F42C1"]; const colorContainer = document.querySelector(".colors"); const selectedColorText = document.getElementById("selected-color"); if (colorContainer && selectedColorText) { colors.forEach(function(color) { const swatch = document.createElement("div"); swatch.classList.add("color-swatch"); swatch.style.backgroundColor = color; swatch.dataset.color = color; swatch.addEventListener("click", function () {        selectedColorText.textContent = color; selectedColorText.style.color = color; }); colorContainer.appendChild(swatch); }); } });