refactor: Expose testAllMetars globally and remove dedicated button

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-02-14 18:19:33 -07:00
parent 3015e43787
commit 1c884fea14
+1 -5
View File
@@ -63,13 +63,11 @@
<label style="margin-left: 1em;"><input type="checkbox" id="decode-all-checkbox"> Decode all</label>
<div id="decoding-display"></div>
<button id="next-btn" style="margin-top: 1em;">Next</button>
<button id="test-all-btn">Test All METARs</button>
</div>
<script>
const metarDisplay = document.getElementById('metar-display');
const decodingDisplay = document.getElementById('decoding-display');
const newMetarBtn = document.getElementById('new-metar-btn');
const testAllBtn = document.getElementById('test-all-btn');
const nextBtn = document.getElementById('next-btn');
const decodeAllCheckbox = document.getElementById('decode-all-checkbox');
const metars = [];
@@ -953,7 +951,7 @@
}
});
function testAllMetars() {
window.testAllMetars = function() {
console.log(`--- Starting test of ${metars.length} METARs ---`);
let failed = 0;
let withUnknowns = 0;
@@ -1027,8 +1025,6 @@
}
}
}
testAllBtn.addEventListener('click', testAllMetars);
</script>
</body>
</html>