-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (37 loc) · 1.75 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Weather Viewer</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<!-- I'm going CDN for these. There's a fare chance the user already has them. -->
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.22.0/mapbox-gl.js'></script>
<script src='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v1.3.0/mapbox-gl-geocoder.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.22.0/mapbox-gl.css' rel='stylesheet' />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel='stylesheet' href='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v1.3.0/mapbox-gl-geocoder.css' type='text/css' />
<link rel="stylesheet" type="text/css" href="css/layout.css">
</head>
<body>
<header class="nav-header"></header>
<div class="map fullscreen"></div>
<!-- Bootstrapped data -->
<script type="text/javascript">
// these would be spat out by the middle tier to hydrate the app
// you might notice I'm not adding userlocation - I want to show some basic fallbacks when things break
var bootstrap = {
userinfo: { //out of scope, so I'm not spending much time here
username: 'Nick',
usergroup: 'admin',
isLoggedIn: true
},
//TODO hard coding these is bad. Burning my time to build something nicer is worse
apikeys: {
"forecast": "YOUR FORECAST API KEY",
"mapbox": "YOUR MAPBOX API KEY"
}
}
</script>
<script type="text/javascript" data-main="src/init" src="bower_components/requirejs/require.js"></script>
</body>
</html>