(theme)
| 541 | } |
| 542 | |
| 543 | function applyTheme(theme) { |
| 544 | document.documentElement.setAttribute("data-theme", theme) |
| 545 | const themeIcon = document.querySelector("#themeToggle i") |
| 546 | if (themeIcon) { |
| 547 | themeIcon.className = theme === "light" ? "fas fa-moon" : "fas fa-sun" |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | function handleLanguageChange(e) { |
| 552 | currentLanguage = e.target.value |
no outgoing calls
no test coverage detected