skyview/static
Ole-Morten Duesund d73ecc2b20 Fix JavaScript error when switching between view tabs
Problem: Clicking on tabs other than Map caused JavaScript errors due to
incorrect DOM element ID resolution in switchView() method.

Root cause: The viewId extraction from button IDs didn't match the expected
view element IDs, causing null reference errors when trying to add classes.

Solution:
- Fixed switchView() to correctly handle view IDs (e.g., "map-view")
- Added null checks for DOM elements to prevent crashes
- Updated this.currentView initialization and comparisons to match full IDs
- Ensured view-specific initialization works with correct baseName extraction

Now all tabs (Map, Table, Statistics, Coverage, 3D Radar) work without errors.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-24 00:09:25 +02:00
..
css Enhance aircraft details display to match dump1090 format 2025-08-23 23:20:31 +02:00
js Fix JavaScript error when switching between view tabs 2025-08-24 00:09:25 +02:00
aircraft-icon.svg Initial implementation of SkyView - ADS-B aircraft tracker 2025-08-23 22:09:37 +02:00
favicon.ico Fix Chart.js loading and add favicon support 2025-08-23 22:43:25 +02:00
index.html Fix JavaScript errors and implement Three.js 3D radar 2025-08-24 00:03:26 +02:00