-
Notifications
You must be signed in to change notification settings - Fork 258
/
Copy pathindex.html
116 lines (112 loc) · 4.06 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
116
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>TP 3</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<!-- bootstrap -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"
></script>
<!-- Axios -->
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<div
class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom shadow-sm"
>
<h5 class="my-0 mr-md-auto font-weight-normal">METEO PREDICTION TP3</h5>
</div>
<div class="px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
<h2 class="display-4">Méteo App</h2>
<p class="lead">
Application de prédiction méteo
</p>
</div>
<div class="container">
<div class="input-group mb-5 offset-4 col-4">
<input id="city-input" type="text" class="form-control" placeholder="Rentrer le nom d'une ville">
<div class="input-group-append">
<button id="city-input-button" class="btn btn-success" type="submit">Actualiser</button>
</div>
</div>
</div>
<div class="container">
<div class="card-deck mb-3 text-center">
<div class="card mb-4 shadow-sm offset-sm-1">
<div class="card-header">
<h4 class="my-0 font-weight-normal">Aujourd'hui</h4>
</div>
<div class="card-body">
<h2 id="today-forecast-main" class="card-title">
</h2>
<div>
<p id="today-forecast-more-info"></p>
<div id="icon-weather-container" ></div>
<h3 id="today-forecast-temp"> </h3>
</div>
<button type="button" class="btn btn-lg btn-block btn-primary button-load-forecast" onclick='start()'>
Quel temps fait'il aujourd'hui ?
</button>
</div>
</div>
</div>
<div class="container">
<div class="card-deck mb-3 text-center">
<div class="card mb-4 shadow-sm offset-sm-1">
<div class="card-header">
<h4 class="my-0 font-weight-normal">Demain</h4>
</div>
<div class="card-body">
<h2 id="today-forecast-main" class="card-title">
</h2>
<div>
<p id="today-forecast-more-info"></p>
<div id="icon-weather-container" ></div>
<h3 id="today-forecast-temp"> </h3>
</div>
</div>
</div>
<div class="card mb-4 shadow-sm offset-sm-1">
<div class="card-header">
<h4 class="my-0 font-weight-normal">Après demain</h4>
</div>
<div class="card-body">
<h2 id="today-forecast-main" class="card-title">
</h2>
<div>
<p id="today-forecast-more-info"></p>
<div id="icon-weather-container" ></div>
<h3 id="today-forecast-temp"> </h3>
</div>
</div>
</div>
<div class="card mb-4 shadow-sm offset-sm-1">
<div class="card-header">
<h4 class="my-0 font-weight-normal">Encore après demain</h4>
</div>
<div class="card-body">
<h2 id="today-forecast-main" class="card-title">
</h2>
<div>
<p id="today-forecast-more-info"></p>
<div id="icon-weather-container" ></div>
<h3 id="today-forecast-temp"> </h3>
</div>
</div>
</div>
</div>
</div>
<script src="js/API_Weather.js"></script>
<script src="js/script.js"></script>
</body>
</html>