-
Notifications
You must be signed in to change notification settings - Fork 0
/
weeklyTemplate.js
39 lines (22 loc) · 923 Bytes
/
weeklyTemplate.js
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
function weeklyTemplate(body, map){
return `
<html lang="en">
<head>
<meta charSet="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<script src='https://api.mapbox.com/mapbox-gl-js/v2.2.0/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v2.1.1/mapbox-gl.css' rel='stylesheet' />
<link href='/css/style.css' rel='stylesheet' />
<title>Document</title>
</head>
<body>
<h1 class='heading'> Disaster Hub </h1>
<div id='weeklyMap' class='map'></div>
<script src="../client/weeklyMapboxAPI.js"></script>
${body}
<script src="/js/index.js"></script>
</body>
</html>
`
}
module.exports = {weeklyTemplate};