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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user