-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (57 loc) · 2.08 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
<!--This is a weather app that shows weather of main cities
Description: This is a weather app that shows weather of pre-defined some cities-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<script type="text/javascript" src="weather.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
<title>Weather App</title>
</head>
<body onload="day(), setTimeout(updateClock, 1000);">
<div id="leftHalf">
<div id="leftContent">
<h1 id="firstWord">Weather App</h1>
</div>
</div>
<div id="rightHalf">
<div id="rightContent">
<div id="cityState"></div>
<div id="dayTime"></div>
<div id="climate"></div>
<div>
<span id="temperature"></span>
<span id="cel" onclick="cal('C')">°C</span>
<span id="fah" onclick="cal('F')">°F</span>
</div>
<div id="search">
<h5>
Enter city name <br />
<input
id="city"
list="cities"
placeholder="City, State"
onchange="return returnCity()"
/>
<datalist id="cities">
<option value="Ahmedabad, Gujarat"></option>
<option value="Bangalore, Karnataka"></option>
<option value="Chennai, Tamil Nadu"></option>
<option value="Hosur, Tamil Nadu"></option>
<option value="Hyderabad, Telangana"></option>
<option value="Jaipur, Rajastan"></option>
<option value="Kolkata, West Bengal"></option>
<option value="Mumbai, Maharashtra"></option>
<option value="New Delhi, Delhi"></option>
<option value="Pune, Maharashtra"></option>
<option value="Surat, Gujarat"></option>
<option value="Tirunelveli, Tamil Nadu"></option>
</datalist>
</h5>
</div>
</div>
</div>
</body>
</html>