FCAD.amNewsroom

The Center of Armenian Diaspora Foundation (FCAD) is an international public platform created to strengthen cooperation between Armenia, the Armenian diaspora, and foreign partners.

FCAD

ㅤCharitable Contribution

Support our projects by making a charitable contribution to build a strong foundation needed for the accelerated implementation of economic, social, and humanitarian initiatives. Together, we shape global changes for a bright future for our homeland.

.hidden { display: none; } .activeButton { filter: drop-shadow(5px 5px 5px #c9ffcf); } table { border-collapse: collapse; width: 100%; } th, td { border: 1px solid black; padding: 8px; text-align: center; } th { width: 50%; } document.addEventListener(“DOMContentLoaded”, function() { // Получаем элементы DOM var amdButton = document.getElementById(“amdButton”); var rubButton = document.getElementById(“rubButton”); var usdButton = document.getElementById(“usdButton”); var eurButton = document.getElementById(“eurButton”); var amdText = document.getElementById(“amdText”); var rubText = document.getElementById(“rubText”); var usdText = document.getElementById(“usdText”); var eurText = document.getElementById(“eurText”); var thanksText = document.getElementById(“thanksText”); // Общая функция для скрытия текстовых блоков function hideAllText() { amdText.style.display = “none”; rubText.style.display = “none”; usdText.style.display = “none”; eurText.style.display = “none”; } // Общая функция для удаления активного стиля у всех кнопок function removeActiveStyle() { amdButton.classList.remove(“activeButton”); rubButton.classList.remove(“activeButton”); usdButton.classList.remove(“activeButton”); eurButton.classList.remove(“activeButton”); } // Добавляем обработчик события для кнопки AMD amdButton.addEventListener(“click”, function() { hideAllText(); removeActiveStyle(); amdText.style.display = “block”; amdButton.classList.add(“activeButton”); thanksText.style.display = “block”; }); // Добавляем обработчик события для кнопки RUB rubButton.addEventListener(“click”, function() { hideAllText(); removeActiveStyle(); rubText.style.display = “block”; rubButton.classList.add(“activeButton”); thanksText.style.display = “block”; }); // Добавляем обработчик события для кнопки USD usdButton.addEventListener(“click”, function() { hideAllText(); removeActiveStyle(); usdText.style.display = “block”; usdButton.classList.add(“activeButton”); thanksText.style.display = “block”; }); // Добавляем обработчик события для кнопки EUR eurButton.addEventListener(“click”, function() { hideAllText(); removeActiveStyle(); eurText.style.display = “block”; eurButton.classList.add(“activeButton”); thanksText.style.display = “block”; }); });