Spaces:
Build error
Build error
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Ground Elevation Calculator - GeoTools Hub</title> | |
| <!-- Leaflet CSS --> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/leaflet.min.css" /> | |
| <!-- Font Awesome --> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" /> | |
| <!-- Google Fonts --> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@700;800;900&display=swap" rel="stylesheet"> | |
| <!-- Custom CSS --> | |
| <link rel="stylesheet" href="/frontend/styles.css"> | |
| </head> | |
| <body> | |
| <div class="app-container"> | |
| <!-- Header --> | |
| <header> | |
| <div class="header-content"> | |
| <div class="title-section"> | |
| <h1 class="main-title">Ground Elevation Calculator</h1> | |
| <p class="subtitle">Powered by GeoTools Hub</p> | |
| </div> | |
| <a href="index.html" class="nav-link home-btn"><i class="fas fa-home"></i> Home</a> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main> | |
| <div class="content-wrapper"> | |
| <!-- Map Panel --> | |
| <div class="map-panel"> | |
| <h2 class="section-title">Interactive Map</h2> | |
| <div id="map"></div> | |
| </div> | |
| <!-- Input Panel --> | |
| <div class="input-panel"> | |
| <div class="coordinates-section"> | |
| <div class="section-header"> | |
| <h2 class="section-title">Coordinates</h2> | |
| <button id="add-coords" class="btn-action"> | |
| <i class="fas fa-plus"></i> Add Coordinate | |
| </button> | |
| </div> | |
| <div id="coordinates-container"> | |
| <!-- Initial coordinate input --> | |
| <div class="coordinate-group" data-index="0"> | |
| <div class="coord-header"> | |
| <h3>Point 1</h3> | |
| <button class="remove-coord" title="Remove" disabled> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="form-row"> | |
| <div class="form-group"> | |
| <label for="latitude-0">Latitude</label> | |
| <input type="number" id="latitude-0" class="latitude-input" step="any" placeholder="e.g. 37.7749"> | |
| </div> | |
| <div class="form-group"> | |
| <label for="longitude-0">Longitude</label> | |
| <input type="number" id="longitude-0" class="longitude-input" step="any" placeholder="e.g. -122.4194"> | |
| </div> | |
| </div> | |
| <div class="form-group"> | |
| <label for="crs-0">Coordinate Reference System</label> | |
| <select id="crs-0" class="crs-select"> | |
| <!-- Will be populated by JavaScript --> | |
| </select> | |
| </div> | |
| <div class="elevation-result hidden"> | |
| <div class="result-badge"> | |
| <div class="elevation-metrics"> | |
| <div class="metric"> | |
| <span class="value meters">0</span> | |
| <span class="unit">meters</span> | |
| </div> | |
| <div class="metric"> | |
| <span class="value feet">0</span> | |
| <span class="unit">feet</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="coord-detail"> | |
| <small>WGS84: <span class="wgs84-coords">--</span></small> | |
| <small>Original: <span class="original-coords">--</span></small> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <button id="calculate-all" class="btn-primary"> | |
| <i class="fas fa-calculator"></i> Calculate All Elevations | |
| </button> | |
| </div> | |
| <!-- Results Section --> | |
| <div id="results-container" class="hidden"> | |
| <h2 class="section-title">Results</h2> | |
| <div id="elevation-results"> | |
| <!-- Results will be populated here by JavaScript --> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <!-- Footer --> | |
| <footer> | |
| <p>© 2025 GeoTools Hub | <a href="index.html">Back to Tools</a></p> | |
| </footer> | |
| </div> | |
| <!-- Loading Overlay --> | |
| <div id="loading-overlay" class="hidden"> | |
| <div class="loader"></div> | |
| </div> | |
| <!-- Leaflet JS --> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/leaflet.min.js"></script> | |
| <!-- ESRI Leaflet plugins --> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/esri-leaflet/3.0.10/esri-leaflet.js"></script> | |
| <!-- Custom JS --> | |
| <script src="/frontend/script.js"></script> | |
| </body> | |
| </html> |