-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (50 loc) · 2.45 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
<!DOCTYPE html>
<html ng-app="weatherApp">
<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 Card</title>
<link rel="stylesheet" href="style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
</head>
<body ng-controller="weatherAppController">
<main>
<div class="row mb-4 fixed-top topBar" >
<div class="col-8">
<h1 class="text"><strong>My Weather</strong> <small>App</small> </h1>
</div>
<div class="col-4">
<input type="text" class="input" name="City" placeholder="ENTER CITY NAME" ng-model="filterText" value=""/>
<div class="line-box"></div>
<div class="clear"></div>
</div>
</div>
<div>
<h1>{{message}}</h1>
</div>
<div class="container-flow">
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 ">
<div class="col" ng-repeat="weather in weathers | searchFilter:filterText">
<div class="widget">
<div class="details">
<div class="temperature">{{weather.main.temp}}° <sup>c</sup></div>
<div class="summary">
<p class="summaryText"> {{weather.name}} : {{weather.weather[0].description}} </p>
</div>
<div class="wind">Wind : {{weather.wind.speed}} mph | Direction : {{weather.wind.deg}}°</div>
<div class="wind">Feels Like : {{weather.main.feels_like}}°</div>
<div class="wind">Min / Max Temp : {{weather.main.temp_min}}°/{{weather.main.temp_max}}°</div>
</div>
</div>
</div>
</div>
</div>
</main>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.2/angular.min.js"></script>
<script src="app.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/bubbly-bg@1.0.0/dist/bubbly-bg.js"></script>
<script>bubbly();</script> -->
</body>
</html>