-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
157 lines (135 loc) · 6.17 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Timeline basic demo</title>
<!-- <script src="components/vis/moment.min.js"></script>
<script src="components/vis/moment-timezone-with-data.min.js"></script> -->
<script src="components/vis/js/list.js"></script>
<script src="http://maps.googleapis.com/maps/api/js?key=AIzaSyBCgAlVfAX_nvbOTqWf_tU3UTRXUCFMFcs"></script>
<script src="components/vis/js/jquery-2.1.3.min.js"></script>
<script src="components/vis/js/bootstrap.min.js"></script>
<script src="components/vis/js/jquery.csv-0.71.min.js"></script>
<script src="components/vis/js/bootstrap-datepicker.min.js"></script>
<script src="components/vis/js/jquery-clockpicker.js"></script>
<script src="components/vis/js/moment.min.js"></script>
<script src="components/vis/js/jquery.autocomplete.min.js"></script>
<script src="components/vis/js/bootstrap-timepicker.js"></script>
<script src="components/vis/vis-custom.js"></script>
<script src="components/vis/js/sidebar.js"></script>
<script src="components/vis/js/jquery-ui.js"></script>
<link href="components/vis/css/bootstrap.css" rel="stylesheet">
<link href="components/vis/css/bootstrap-responsive.css" rel="stylesheet">
<link href="components/vis/css/bootstrap-datepicker.min.css" rel="stylesheet">
<link href="components/vis/css/jquery-clockpicker.css" rel="stylesheet">
<link href="components/vis/css/bootstrap-timepicker.css" rel="stylesheet">
<link href="components/vis/css/header.css" rel="stylesheet">
<link href="components/vis/css/results.css" rel="stylesheet">
<link href="components/vis/css/map.css" rel="stylesheet">
<link href="components/vis/css/sidebar.css" rel="stylesheet">
<link href="components/vis/css/jquery-ui.css" rel="stylesheet">
<link href="components/vis/css/vis.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body, html {
font-family: sans-serif;
}
</style>
</head>
<body>
<div class="ui wide sidebar">
<div id="settingsPanel">
<h3>Categories</h3>
<div id="categoriesList">
<input id="categoriesListSearch" class="search" placeholder="Search" />
<button class="sort btn btn-xs" data-sort="category">
Sort by category
</button>
<br>
<table id ="categoriesTable"> <tbody class="list">
<tr>
<td><input onclick="$(this).select();" style="box-shadow: none; height: 30px; width:200px; background: transparent; border: 0; padding: 0; color: white" class="category" type="text" value="Category"></td>
<td><input style="width:50px" class="color" type="color" value="#EEEEEE"></td>
<td class="removeCategory"><div class="remove-category-btn"></div></td>
</tr>
</tbody> </table>
<br>
<button id='newCategoryButton' type="button" class="btn btn-xs btn-default" style="font-size:x-small">New</button>
<input type="file" name="File Upload" id="importCategoryInput" accept=".csv" style="display:none"/>
<button id='importCategoryButton' type="button" class="btn btn-xs btn-default" style="font-size:x-small">Import</button>
<button id='exportCategoryButton' type="button" class="btn btn-xs btn-default" style="font-size:x-small">Export</button>
</div>
<br>
<h3>Places</h3>
<div id="placesList">
<input class="search" id="placesListSearch" placeholder="Search" />
<button class="sort btn btn-xs" data-sort="place">
Sort by place
</button>
<br>
<table id ='placesTable'> <tbody class="list">
<tr>
<td><input onclick="$(this).select();" style="box-shadow: none; width:180px; background: transparent; border: 0; padding: 0; color: white" class="place" type="text" value="Place"></td>
<td><input onclick="$(this).select();" style="box-shadow: none; width:90px; background: transparent; border: 0; padding: 0; color: white" class="category" type="text" value="Category"></td>
<td class="removePlace"><div class="remove-place-btn"></div></td>
</tr>
</tbody> </table>
<br>
<button id='newPlaceButton' type="button" class="btn btn-xs btn-default" style="font-size:x-small">New</button>
<input type="file" name="File Upload" id="importPlaceInput" accept=".csv" style="display:none"/>
<button id='importPlaceButton' type="button" class="btn btn-xs btn-default" style="font-size:x-small">Import</button>
<button id='exportPlaceButton' type="button" class="btn btn-xs btn-default" style="font-size:x-small">Export</button>
</div>
<br><br>
<button id='saveButton' type="button" class="btn btn-xs btn-default" style="font-size:x-small">Save</button>
</div>
</div>
<div id='window' class="pusher">
<div id ='header'>
<div id='title'>WHERE HAVE I BEEN</div>
<div id="subtitle">Visualizing Personal Geolocation Data</div>
<div id='settings'></div>
</div>
<div id="visualization"></div>
<div id='results'>
<div id='totalResults'></div>
<div id='message'></div>
</div>
<div id='map'></div>
</div>
<script type="text/javascript">
// DOM element where the Timeline will be attached
var container = document.getElementById('visualization');
var data = new vis.DataSet([
]);
// Configuration for the Timeline
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
if(dd<10) {
dd='0'+dd
}
if(mm<10) {
mm='0'+mm
}
today = dd+'/'+mm+'/'+yyyy;
var options = {editable: true,
selectable: true,
showCurrentTime: false,
type: 'range',
end: moment(today +" " + "23:59", "DD/MM/YYYY HH:mm"),
start: moment(today +" " + "00:00", "DD/MM/YYYY HH:mm"),
stack: 'false',
results: false,
margin: {axis: 0, item: 0}
};
// Create a Timeline
var timeline = new vis.Timeline(container, data, options);
/*var timeline3 = new vis.Timeline(container2, data2, options2);
var timeline4 = new vis.Timeline(container2, data2, options2);
var timeline5 = new vis.Timeline(container2, data2, options2);
var timeline6 = new vis.Timeline(container2, data2, options2);
var timeline7 = new vis.Timeline(container2, data2, options2);*/
</script>
</body>
</html>