-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (71 loc) · 2.65 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>
<title>HDB Survey Data Visualization</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap -->
<link href="//cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" />
<!-- MapLibre -->
<!-- TurfJS -->
<!-- Axios -->
<!-- Luxon -->
<!-- VueJS -->
<!-- App Code -->
<script type="module" src="index.js" defer></script>
<style>
body {
background-color: aliceblue !important;
}
.h-map {
height: 40em;
}
@media (min-width: 768px) {
.h-map {
height: 55em;
}
}
</style>
</head>
<body>
<div id="vueApp" class="container">
<h3 class="fw-bold text-center mt-3 mb-3">HDB Survey Data Visualization</h3>
<hr>
<div class="row my-3">
<div class="col">
<h4 class="fw-bold">Survey Data</h4>
</div>
</div>
<div class="row justify-content-center">
<div class="col-12 col-md-8">
<h5 class="fw-bold">Date Range</h5>
<input min="0" v-model="selectedDateIndex" v-bind:max="dateRange.length - 1"
:key="'dateRange-' + dateRange.length" id="dateRange" class="form-range" type="range">
</div>
<div class="col col-md-2 d-grid">
<button class="btn btn-secondary my-auto">
<h5 class="my-auto">${ displayDate() }</h5>
</button>
</div>
<div class="col col-md-2 d-grid">
<button v-on:click="loadSurveyData()" class="btn btn-primary btn-block">
<h4 class="my-auto">Load Data</h4>
</button>
</div>
</div>
<div class="row my-3">
<div class="col">
<h4 class="fw-bold">Spatial View</h4>
<div id='map' class="h-map w-100"></div>
</div>
</div>
</div>
</body>
</html>