* Updates the visual state of font mode toggle based on current HTML class. * Syncs aria-checked attributes with actual font-mode state.
()
| 1718 | hint.classList.remove('faded', 'hint-hidden'); |
| 1719 | input.classList.add('hint-visible'); |
| 1720 | } else if (len < 50) { |
| 1721 | // Some text - fade hint |
| 1722 | hint.classList.add('faded'); |
| 1723 | hint.classList.remove('hint-hidden'); |
| 1724 | input.classList.add('hint-visible'); |
| 1725 | } else { |
| 1726 | // Long text - hide hint completely |
| 1727 | hint.classList.add('hint-hidden'); |
| 1728 | hint.classList.remove('faded'); |
| 1729 | input.classList.remove('hint-visible'); |
| 1730 | } |
| 1731 | } |
| 1732 | |
| 1733 | /** |
no outgoing calls
no test coverage detected