forked from viv2005ek/Temperature_weather
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (91 loc) · 3.67 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
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
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather</title>
<link rel="icon" href="./images/logoWeather.png">
<link rel="stylesheet" href="./CSS/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer"
/>
</head>
<body>
<header>
<div class="logo"></div>
<div class="search">
<input type="text" list="citiesList" placeholder="Search Location..." onkeydown="callWeatherApiByEnter(event)">
<datalist id="citiesList">
<option value="Current Location">Current Location</option>
</datalist>
<button onclick="callWeatherApiByButton()"> <i class="fa-solid fa-magnifying-glass"></i> </button>
</div>
</header>
<div class="content">
<div class="leftContent">
<div class="currentTemp">
<h1>--°C</h1>
</div>
<div class="placeAndFontAwesome">
<div class="placeDateTime">
<h1>------</h1>
<p>_____________</p>
</div>
<div class="weatherFontAwesome">
<i class="fa-solid fa-cloud-sun"></i>
</div>
</div>
</div>
<div class="rightContent">
<h1>Weather Details...</h1>
<div class="otherWeatherDetails">
<h3>--</h3>
<div class="rightContentItem">
<p>Temp in Fahrenheit</p>
<div class="rightContentItemValue">
<p class="tempInF">__°F</p>
<i class="fa-solid fa-temperature-three-quarters"></i>
</div>
</div>
<div class="rightContentItem">
<p>Wind</p>
<div class="rightContentItemValue">
<p class="windKmph">__Km/h</p>
<i class="fa-solid fa-wind"></i>
</div>
</div>
<div class="rightContentItem">
<p>Cloudy</p>
<div class="rightContentItemValue">
<p class="cloudy">__%</p>
<i class="fa-solid fa-cloud"></i>
</div>
</div>
<div class="rightContentItem">
<p>Humadity</p>
<div class="rightContentItemValue">
<p class="humadity">__%</p>
<i class="fa-solid fa-droplet"></i>
</div>
</div>
<div class="rightContentItem">
<p>Air-Quality Index</p>
<div class="rightContentItemValue">
<p class="airQuality">--</p>
<i class="fa-brands fa-airbnb"></i>
</div>
</div>
<div class="rightContentItem">
<p>Local-Time</p>
<div class="rightContentItemValue">
<p class="localTime">________</p>
<i class="fa-regular fa-clock"></i>
</div>
</div>
</div>
</div>
</div>
<script src="./JS/cities.js"></script>
<script src="./JS/time.js"></script>
<script src="./JS/weatherFind.js"></script>
</body>
</html>