-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (69 loc) · 2.35 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
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Weather App</title>
<!-- adding the css file -->
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<!-- container for holding the weather card -->
<div class="container">
<h1>Weather Web App</h1>
<!-- section for searching the weather of a city -->
<form onsubmit="getData(event)" class="searchData">
<input id="inputBox" type="text" placeholder="Enter the city name" />
<button>Search</button>
</form>
<!-- section for displaying the city weather data -->
<section class="cityWeatherData">
<!-- displaying the country details -->
<div class="countryDetails details">
<!-- displaying the country name -->
<div class="card">
<p>Country Name</p>
<p id="countryName">__</p>
</div>
<!-- displaying the state name -->
<div class="card">
<p>State Name</p>
<p id="stateName">__</p>
</div>
<!-- displaying the city name -->
<div class="card">
<p>City Name</p>
<p id="cityName">__</p>
</div>
</div>
<!-- displaying the weather status -->
<div class="weatherDetails details">
<!-- displaying the humidity -->
<div class="card">
<p>Humidity</p>
<p id="humidity">__</p>
</div>
<!-- displaying the wind speed -->
<div class="card">
<p>Wind Speed</p>
<p><span id="windSpeed">__</span> KMPH</p>
</div>
<!-- displaying the current temprature in celcius -->
<div class="card">
<p>Temprature</p>
<!-- unicode for degree celcius symbol -->
<p><span id="temprature">__</span>℃</p>
</div>
<!-- displaying the weather condition -->
<div class="card">
<img width="20px" id="logoImage" src="" alt="icon" />
<p id="weatherStatus">__</p>
</div>
</div>
</section>
</div>
</body>
<!-- adding the javascript file -->
<script src="./script.js"></script>
</html>