-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (54 loc) · 3.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
59
60
61
<!DOCTYPE html>
<html lang="pt-br" ng-app="WeatherApp">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather | Luca Gouveia</title>
<link href="css/owfont-regular.css" rel="stylesheet" type="text/css">
<link href="css/index.css" rel="stylesheet" type="text/css">
<link rel="icon" type="image/png" href="https://cdn.iconscout.com/icon/free/png-512/weather-192-461761.png" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" />
<script src="js/angular.min.js" type="text/javascript"></script>
<script src="js/app.js" type="text/javascript"></script>
<script src="https://www.gstatic.com/dialogflow-console/fast/messenger/bootstrap.js?v=1"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</head>
<body ng-controller='ctrl' ng-init='init()'>
<div class="container">
<div class="input-group mb-3">
<input type="search" class="form-control rounded" placeholder="Cidade..." aria-label="Search" ng-model='localidade'
ng-keydown="$event.keyCode === 13 && carregarClima()">
<div class="input-group-append">
<button type="button" class="btn btn-primary" ng-click="carregarClima()"><i class="fas fa-search"></i></button>
</div>
</div>
<h1>Clima em {{dados.name}}, {{dados.sys.country}}</h1>
<div class="info">
<div class="row">
<div class="col" ng-show="carregarDados">
<i class="owf owf-{{dados.weather[0].id}} owf-5x owf-pull-left"></i>
<strong>{{dados.name}}, {{dados.sys.country}}</strong><br>
{{dados.main.temp.toFixed(0)}}°C ({{dados.weather[0].description.toUpperCase()}})<br>
Min {{dados.main.temp_min.toFixed(0)}}°C
Max {{dados.main.temp_max.toFixed(0)}}°C
<p class="text-muted" style="font-style: italic;">{{sync}}</p>
</div>
<div class="col hora">
<p>
{{horaAtual}}
</p>
</div>
</div>
</div>
</div>
<footer class="text-center" >Luca Gouveia</footer>
<div class="dialog-flow" ng-show="carregarDados">
<df-messenger intent="WELCOME" chat-title="Uni" agent-id="cf9ac5e6-c155-4764-a7ca-9279ced3955e"
language-code="pt-br" chat-icon="https://cdn.iconscout.com/icon/free/png-512/weather-192-461761.png">
</df-messenger>
</div>
</body>
</html>