Đang xem các bài viết theo từ khóa

Trung tâm Dự báo khí tượng thủy văn quốc gia

Tin bão gần Biển Đông

Lúc 17 giờ ngày hôm nay 24/9, Trung tâm Dự báo khí tượng thủy văn quốc gia đã phát thông báo về “tin bão gần Biển Đông”…
document.addEventListener("DOMContentLoaded", function () { const audio = document.getElementById("articleAudio"); const button = document.getElementById("mobileAudioButton"); if (!audio || !button) { return; } button.addEventListener("click", function () { if (audio.paused) { audio.play().then(function () { button.classList.add("playing"); button.querySelector("span").textContent = "⏸️"; button.setAttribute( "aria-label", "Tạm dừng audio" ); }).catch(function (error) { console.log("Không thể phát audio:", error); }); } else { audio.pause(); button.classList.remove("playing"); button.querySelector("span").textContent = "🔊"; button.setAttribute( "aria-label", "Phát audio" ); } }); /* Khi audio phát hết */ audio.addEventListener("ended", function () { button.classList.remove("playing"); button.querySelector("span").textContent = "🔊"; button.setAttribute( "aria-label", "Phát audio" ); }); });