-
Notifications
You must be signed in to change notification settings - Fork 0
/
add-pois.html
116 lines (86 loc) · 3.59 KB
/
add-pois.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
<html>
<head>
<title>Trip Rockr</title>
<!-- /Start Google Maps -->
<style type="text/css">
html, body, #map-canvas { height: 100%; margin: 0; padding: 0;}
</style>
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA8J2TnMfcRbJC7XL22YgdfuP83ddPDRhU">
</script>
<!-- /End Google Maps -->
<!-- /art Theme -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>INSPINIA | Dashboard v.2</title>
<link href="theme/css/bootstrap.min.css" rel="stylesheet">
<link href="theme/font-awesome/css/font-awesome.css" rel="stylesheet">
<link href="theme/css/plugins/iCheck/custom.css" rel="stylesheet">
<!-- Morris -->
<link href="theme/css/plugins/morris/morris-0.4.3.min.css" rel="stylesheet">
<!-- Gritter -->
<link href="theme/js/plugins/gritter/jquery.gritter.css" rel="stylesheet">
<link href="theme/css/animate.css" rel="stylesheet">
<link href="theme/css/style.css" rel="stylesheet">
<!-- /End Theme -->
<link href="styles/my-styles.css" rel="stylesheet">
</head>
<body class="gray-bg">
<div id="app"></div>
<script src="vendor/mithril.js"></script>
<script src="src/ext/functions.js"></script>
<script src="src/ext/m.js"></script>
<script src="src/ext/globals.js"></script>
<script src="src/models/plan.js"></script>
<script src="src/components/pois/pois.js"></script>
<script src="src/components/add-poi/add-poi.js"></script>
<!-- /Start Theme stuff -->
<script src="theme/js/jquery-2.1.1.js"></script>
<script src="theme/js/bootstrap.min.js"></script>
<script src="theme/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="theme/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<!-- Nestable List -->
<script src="theme/js/plugins/nestable/jquery.nestable.js"></script>
<!-- Custom and plugin javascript -->
<script src="theme/js/inspinia.js"></script>
<script src="theme/js/plugins/fullcalendar/moment.min.js"></script>
<script>
$(document).ready(function(){
var updateOutput = function (e) {
var list = e.length ? e : $(e.target),
output = list.data('output');
// if (window.JSON) {
// output.val(window.JSON.stringify(list.nestable('serialize')));//, null, 2));
// } else {
// output.val('JSON browser support required for this demo.');
// }
};
// activate Nestable for list 1
$('#nestable').nestable({
group: 1
}).on('change', updateOutput);
// activate Nestable for list 2
$('#nestable2').nestable({
group: 1
}).on('change', updateOutput);
// output initial serialised data
updateOutput($('#nestable').data('output', $('#nestable-output')));
updateOutput($('#nestable2').data('output', $('#nestable2-output')));
$('#nestable-menu').on('click', function (e) {
var target = $(e.target),
action = target.data('action');
if (action === 'expand-all') {
$('.dd').nestable('expandAll');
}
if (action === 'collapse-all') {
$('.dd').nestable('collapseAll');
}
});
});
</script>
<!-- /End Theme stuff -->
<script>
m.mount(document.getElementById('app'), AddPOI)
</script>
</body>
</html>