Sky_Anomaly / templates /index.html
broadfield-dev's picture
Update templates/index.html
940c283 verified
raw
history blame contribute delete
947 Bytes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sky Anomaly Tracker</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
<div class="container">
<h1>Sky Anomaly Tracker</h1>
<h3>Light Pillar - May 17, 2025</h3>
<p>View reported sky anomalies on the map below. Click "Add Report" to submit a new observation.</p>
<button onclick="window.location.href='/add_report'">Add Report</button>
<div id="map"></div>
</div>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script src="{{ url_for('static', filename='js/map.js') }}"></script>
<script>
// Pass reports data to JavaScript
const reports = {{ reports | tojson }};
initializeMap(reports);
</script>
</body>
</html>