-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (86 loc) · 4.33 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
<!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">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>Weather App Asıl</title>
</head>
<body onload="DefaultScreen()">
<div class="search">
<p id="inputContainer">City: <input type="text" id="cityInput"></p>
<button type="button" onclick="GetInfo()"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 1024 1024" height="1.5em"
width="1.5em" xmlns="http://www.w3.org/2000/svg"> <path
d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z">
</path>
</svg>Click Me</button>
<h2 id="cityName">---London---</h2>
</div>
<div class="container">
<div class="current-info">
<div class="date-container">
<div class="time" id="time">
12:30 <span id="am-pm">PM</span>
</div>
<div class="date" id="date">
Monday, 25 May
</div>
<div class="others" id="current-weather-items">
</div>
</div>
<div class="place-container">
<div class="time-zone" id="time-zone">Asia/Kolkata</div>
<div id="country" class="country">IN</div>
</div>
</div>
</div>
<div id = "weatherContainer">
<div id="iconsContainer">
<div class = "icons">
<p class="weather" id="day1"></p>
<div class="image"><img src="dots.png" class="imgClass" id="img1"></div>
<div class="valuesContainer">
<p class="minValues" id="day1Min">Loading...</p>
<p class="maxValues" id="day1Max">Loading...</p>
</div>
</div>
<div class = "icons">
<p class="weather" id="day2"></p>
<div class="image"><img src="dots.png" class="imgClass" id="img2"></div>
<div class="valuesContainer">
<p class="minValues" id="day2Min">Loading...</p>
<p class="maxValues" id="day2Max">Loading...</p>
</div>
</div>
<div class = "icons">
<p class="weather" id="day3"></p>
<div class="image"><img src="dots.png" class="imgClass" id="img3"></div>
<div class="valuesContainer">
<p class="minValues" id="day3Min">Loading...</p>
<p class="maxValues" id="day3Max">Loading...</p>
</div>
</div>
<div class = "icons">
<p class="weather" id="day4"></p>
<div class="image"><img src="dots.png" class="imgClass" id="img4"></div>
<div class="valuesContainer">
<p class="minValues" id="day4Min">Loading...</p>
<p class="maxValues" id="day4Max">Loading...</p>
</div>
</div>
<div class = "icons">
<p class="weather" id="day5"></p>
<div class="image"><img src="dots.png" class="imgClass" id="img5"></div>
<div class="valuesContainer">
<p class="minValues" id="day5Min">Loading...</p>
<p class="maxValues" id="day5Max">Loading...</p>
</div>
</div>
</div>
</div>
<script src="main2.js"></script>
</body>
</html>