feat: Underline next METAR section to be decoded

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-02-14 17:13:37 -07:00
parent b0ee5e4708
commit 78a9f3df31
+5
View File
@@ -36,6 +36,9 @@
.highlight { .highlight {
background-color: yellow; background-color: yellow;
} }
.next-to-decode {
text-decoration: underline;
}
#decoding-display { #decoding-display {
margin-top: 1em; margin-top: 1em;
padding: 1em; padding: 1em;
@@ -876,6 +879,8 @@
currentMetarSections.forEach((section, index) => { currentMetarSections.forEach((section, index) => {
if (index === currentSectionIndex) { if (index === currentSectionIndex) {
parts.push(`<span class="highlight">${section.raw}</span>`); parts.push(`<span class="highlight">${section.raw}</span>`);
} else if (index === currentSectionIndex + 1) {
parts.push(`<span class="next-to-decode">${section.raw}</span>`);
} else { } else {
parts.push(section.raw); parts.push(section.raw);
} }