-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweather-map.html
More file actions
62 lines (61 loc) · 2.57 KB
/
weather-map.html
File metadata and controls
62 lines (61 loc) · 2.57 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Weather Map Project</title>
<!-- MAPBOX API-->
<link href='https://api.mapbox.com/mapbox-gl-js/v2.14.1/mapbox-gl.css' rel='stylesheet'/>
<!-- BOOTSTRAP-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- CUSTOM STYLESHEET-->
<link rel="stylesheet" href="css/weather-map.css">
</head>
<body>
<div class="page-wrapper">
<nav class="navbar bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand">Weather App</a>
<div id="searchButton" class="d-flex">
<input type="search" id="mySearch" name="search" placeholder="Search Weather"/>
<button id="button">Search</button>
</div>
</div>
</nav>
<div class="container">
<div class="col text-center">
<div id="currentForecast"></div>
</div>
</div>
<div class="container d-flex">
<div class="container justify-content-center align-items-center">
<div class="row">
<div id="fiveDayForecast"></div>
</div>
</div>
<div class="container">
<div id="map" style="border: 5px solid rgba(255,187,245,0.43); border-radius: 20px"></div>
</div>
</div>
</div>
<!--JQUERY CDN-->
<script src="https://code.jquery.com/jquery-3.7.1.min.js"
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<!--API KEYS-->
<script src="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v5.0.0/mapbox-gl-geocoder.min.js"></script>
<link rel="stylesheet"
href="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v5.0.0/mapbox-gl-geocoder.css"
type="text/css">
<!--MAPBOX API-->
<script src='https://api.mapbox.com/mapbox-gl-js/v2.14.1/mapbox-gl.js'></script>
<script src="js/mapbox-geocoder-utils.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<!--CUSTOM JS-->
<script type="module" src="js/weather-map.js"></script>
</body>
</html>