-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (54 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<title>Météo - Weather App</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css">
<link rel="stylesheet" href="https://api.mapbox.com/mapbox-gl-js/v2.1.1/mapbox-gl.css">
<!-- cdn: jQuery | chart.js | Algolia | mapbox | leaflet -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/places.js@1.19.0"></script>
<script src="https://api.mapbox.com/mapbox-gl-js/v2.1.1/mapbox-gl.js"></script>
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
<!-- to facilitate formatting datetime -->
<script src="moment.min.js"></script>
<!-- mapbox dependancies -->
<script src="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v4.5.1/mapbox-gl-geocoder.min.js"></script>
<link rel="stylesheet" href="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v4.5.1/mapbox-gl-geocoder.css" type="text/css">
<!-- Promise polyfill script required to use Mapbox GL Geocoder in IE 11 -->
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.min.js"></script>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="map.css">
<script type='text/javascript' src='key.js'></script>
<script type="module" src="map.js"></script>
<script type="module" src="meteo.js"></script>
</head>
<body>
<div class="wrap-map">
<div id="map"></div>
</div>
<!-- <div class="wrap-search">
<form class="searchBar" name="form" action="" method="post">
<input type="search" id="city" class="searchTerm" placeholder="Search a city ...">
<button type="submit" class="searchButton">Enter</button>
</form>
</div> -->
<div class="meteo">
<h1 id="city">City</h1>
<div class="wrap">
<h2> Temperature: <span id="temperature">0°</span> </h2>
<h2> Feels like: <span id="feels_like">0°</span> </h2>
<h2> Weather condition: <span id="weather">unknown</span> </h2>
<h2> Humidity: <span id="humidity">unknown</span> </h2>
</div>
</div>
<canvas id="canvas"></canvas>
</body>
<script>
</script>
</html>