-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
78 lines (71 loc) · 3.38 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
<title>Snowmaking Weather Dashboard</title>
<meta name="description" content="Get accurate and up-to-date snowmaking weather forecasts with our Snowmaking Weather Dashboard. Perfect for backyard snow enthusiasts and professionals.">
<meta name="keywords" content="snowmaking, weather forecast, snow, backyard snow, snowmaking weather, snow quality">
<meta name="author" content="Chandler Mayo">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="app">
<header>
<a href="https://backyardsnowstorm.com/" target="_blank">
<img src="https://backyardsnowstorm.com/wp-content/uploads/2022/03/BYSS-Logo-V5-e1687370884510.png"
alt="BYSS Logo" style="max-width: 100%;">
</a>
<h1>Snowmaking Weather Dashboard</h1>
<div class="location-input">
<input type="text" id="locationInput" placeholder="Enter location or use GPS">
<ul id="suggestions"></ul>
</div>
<div class="unit-switch">
<label>
<input type="checkbox" id="unitSwitch">
<span>°F / °C</span>
</label>
</div>
</header>
<main>
<section id="loadingData" class="card">
<h3>Waiting for weather data...</h3>
</section>
<section id="currentConditions" class="card" hidden>
<h2>Current Conditions</h2>
<p>Temperature: <span id="temp"></span></p>
<p>Wet Bulb: <span id="wetBulb"></span></p>
<p>Humidity: <span id="humidity"></span></p>
<p id="snowQuality">Snow Quality: <span id="quality"></span></p>
</section>
<div class="view-switch" id="viewSwitch" hidden>
<div class="tabs">
<button id="dayForecastBtn" class="tab active">7-Day Forecast</button>
<button id="hourForecastBtn" class="tab">12-Hour Forecast</button>
</div>
</div>
<section id="hourforecast" class="card" hidden>
<h2>12-Hour Snowmaking Forecast</h2>
<div id="12forecastContainer">
<!-- Forecast hours will be injected here by JavaScript -->
</div>
</section>
<section id="forecast" class="card" hidden>
<h2>7-Day Snowmaking Forecast</h2>
<div id="forecastContainer">
<!-- Forecast days will be injected here by JavaScript -->
</div>
</section>
<footer id="footer" hidden>
<p>V1.0 for the 2024/25 season | Made with ❤️ by <a href="http://chandlermayo.com" target="_blank">Chandler Mayo</a></p>
</footer>
</main>
</div>
<div id="snowflakeContainer"></div> <!-- Container for snowflakes -->
<script src="script.js"></script>
</body>
</html>