-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (112 loc) · 3.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Weather app</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/axios.min.js"></script>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="src/style.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Great+Vibes&family=Oswald:wght@200;300;400;500;600;700&family=Roboto+Slab:wght@100&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div class="container">
<div class="weather-app " id="backgroundImg">
<div class="input-group">
<form
class="search-form"
id="search-form"
aria-label="Recipient's username with two button addons"
>
<div class="row">
<div class="col">
<input
type="search"
placeholder="Enter a city"
autofocus="on"
autocomplete="off"
id="city-input"
class="form-control shadow-sm"
/>
</div>
<div class="col col-lg-2">
<input type="submit" value="Search" class="btn btn-light" />
</div>
<div class="col-md-auto">
<button class="btn btn-light" id="currentlocation">
Current Location
</button>
</div>
</div>
</form>
<br />
<br />
<br />
<div class="row">
<div class="col">
<ul class="cityDaySitu">
<li class="cityName" > <span id="city"> Karaj</span> </li>
<li id="date"></li>
<li id="description"></li>
</ul>
</div>
<div class="col-5">
<ul class="tempPic">
<li>
<div class="clearfix weather-temperature">
<span class="float-left">
<span class="temp" id="temperature"> </span>
<span class="units"> <a href="#" id="cg" class="active">°C</a>|<a href="#" id="fh">°F</a> </span></span
>
<img
id="icon"
class="float-left"
src=""
alt=""
/>
</div>
</li>
<div class="row">
<div class="col-5"></div>
</div>
</ul>
</div>
<div class="col">
<ul class="HumWind">
<li>Humidity: <span id="humidity"></span>%</li>
<li>Wind: <span id="wind"> </span>km/h</li>
</ul>
</div>
<br />
<br />
<br />
<br />
<div class="weather-forcast" id="forecast"></div>
</div>
</div>
</div>
<div class="coder">
<span>
This project was coded by Saba Shiranirad and is
<a class="github" href="https://github.com/sbshgit/sbsh-weather-app"
>open-sourced on GitHub</a
>
and
<a class="github" href="https://sbsh-weather-app.netlify.app/"
>hosted on Netlify</a
>
</span>
</div>
<script src="src/app.js"></script>
</body>
</html>