-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
108 lines (103 loc) · 3.78 KB
/
Copy pathindex.html
File metadata and controls
108 lines (103 loc) · 3.78 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
/>
<title>AngKio Weather App</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="main-content">
<header>
<div class="header-content">
<i class="fas fa-map-marked-alt logo"></i>
<h1>AngKio Weather App</h1>
<div class="location-info">
<i class="fas fa-map-marker-alt"></i>
<span id="currentLocation">Philippines</span>
</div>
</div>
</header>
<div class="search-container">
<div class="perfect-search">
<div class="search-input-wrapper">
<i class="fas fa-search search-icon"></i>
<input
type="text"
id="searchInput"
list="philippines-locations"
placeholder="Search location"
autocomplete="off"
/>
<datalist id="philippines-locations"></datalist>
</div>
<button id="searchBtn" class="perfect-search-btn">
<i class="fas fa-arrow-right"></i>
</button>
</div>
<button id="geoBtn" class="geo-btn">
<i class="fas fa-location-arrow"></i> My Location
</button>
<div class="location-badge" id="suggestionHint"></div>
</div>
<div class="weather-container">
<div class="loading" id="loading" style="display: none">
<i class="fas fa-sun"></i> Fetching weather...
</div>
<div class="current-weather" id="currentWeather">
<div class="weather-main">
<div class="temp-container">
<span class="temp" id="temp">--</span><span class="unit">°C</span>
</div>
<div class="weather-icon" id="weatherIcon">
<i class="fas fa-cloud-sun"></i>
</div>
<h2 id="cityName">Metro Manila</h2>
<p class="description" id="description">--</p>
</div>
<div class="weather-details">
<div class="detail-item">
<i class="fas fa-tint"></i> <span>Humidity</span>
<span id="humidity" class="value">--%</span>
</div>
<div class="detail-item">
<i class="fas fa-wind"></i> <span>Wind</span>
<span id="wind" class="value">-- m/s</span>
</div>
<div class="detail-item">
<i class="fas fa-eye"></i> <span>Visibility</span>
<span id="visibility" class="value">-- km</span>
</div>
<div class="detail-item">
<i class="fas fa-thermometer-half"></i> <span>Feels Like</span>
<span id="feelsLike" class="value">--°</span>
</div>
</div>
</div>
<div class="alert-banner" id="typhoonAlert" style="display: none">
<i class="fas fa-exclamation-triangle"></i>
<span id="alertText">Weather advisory</span>
</div>
</div>
<div class="forecast-section">
<h3><i class="fas fa-clock"></i> Next 12 hours</h3>
<div class="hourly-scroll" id="hourlyForecast"></div>
</div>
<div class="forecast-section">
<h3><i class="fas fa-calendar-alt"></i> 5‑Day Forecast</h3>
<div class="daily-forecast" id="dailyForecast"></div>
</div>
<footer>
<p>All credits to Badger</p>
</footer>
</div>
<script src="script.js"></script>
</body>
</html>