travlrmap 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/travlrmap/sinatra_app.rb +5 -1
- data/lib/travlrmap/version.rb +1 -1
- data/public/datepicker/bootstrap-datepicker.js +1681 -0
- data/public/datepicker/datepicker3.css +786 -0
- data/views/_point_comment.erb +5 -5
- data/views/geolocate.erb +11 -2
- data/views/layout.erb +1 -2
- metadata +5 -3
data/views/_point_comment.erb
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
<p>
|
2
2
|
<font size="+2"><%= point[:title] %></font>
|
3
3
|
<hr>
|
4
|
-
<% if
|
4
|
+
<% if point[:comment] %>
|
5
5
|
<%= h point[:comment] %><br /><br />
|
6
6
|
<% end %>
|
7
7
|
|
8
|
-
<% if
|
8
|
+
<% if point[:href] %>
|
9
9
|
<a href='<%= point[:href] %>' target='_blank'>
|
10
|
-
<% if
|
11
|
-
<% if
|
10
|
+
<% if point[:linkimg] || point[:linktext] %>
|
11
|
+
<% if point[:linkimg] %>
|
12
12
|
<img src='<%= point[:linkimg] %>'><br />
|
13
13
|
<% end %>
|
14
|
-
<% if
|
14
|
+
<% if point[:linktext] %>
|
15
15
|
<%= h point[:linktext] %>
|
16
16
|
<% end %>
|
17
17
|
<% else %>
|
data/views/geolocate.erb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<div class="row">
|
2
2
|
<form id="search_box">
|
3
3
|
<div class="col-md-9">
|
4
|
-
<input type="text" class="form-control" id="location">
|
4
|
+
<input type="text" class="form-control" id="location" autofocus>
|
5
5
|
</div>
|
6
6
|
<div class="col-md-1">
|
7
7
|
<button type="submit" class="btn btn-primary">Search</button>
|
@@ -28,7 +28,7 @@
|
|
28
28
|
<% end %>
|
29
29
|
</select>
|
30
30
|
</div>
|
31
|
-
<div class="form-group">
|
31
|
+
<div class="form-group input-append">
|
32
32
|
<input type="text" class="form-control" id="point_date" placeholder="yyyy-mm-dd">
|
33
33
|
</div>
|
34
34
|
<div class="form-group">
|
@@ -53,6 +53,10 @@
|
|
53
53
|
<div class="col-md-9"><center>Perform a search to place a marker or right click to place one anywhere.</center></div>
|
54
54
|
</div>
|
55
55
|
|
56
|
+
<script src="/moment.js"></script>
|
57
|
+
<script src="/js-yaml.min.js"></script>
|
58
|
+
<script src="/datepicker/bootstrap-datepicker.js"></script>
|
59
|
+
|
56
60
|
<script type="text/javascript">
|
57
61
|
var map;
|
58
62
|
var marker;
|
@@ -112,6 +116,11 @@
|
|
112
116
|
}
|
113
117
|
|
114
118
|
$(document).ready(function() {
|
119
|
+
$('#point_date').datepicker({
|
120
|
+
format: 'yyyy-mm-dd',
|
121
|
+
todayHighlight: true
|
122
|
+
});
|
123
|
+
|
115
124
|
map = new GMaps({
|
116
125
|
div: '#main_map',
|
117
126
|
zoom: 3,
|
data/views/layout.erb
CHANGED
@@ -15,10 +15,9 @@
|
|
15
15
|
<script src="///maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
|
16
16
|
<link rel="stylesheet" href="///maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
|
17
17
|
<link rel="stylesheet" href="/travlrmap.css">
|
18
|
+
<link rel="stylesheet" href="/datepicker/datepicker3.css">
|
18
19
|
<script src="/gmaps.js"></script>
|
19
20
|
<script src="/markerclusterer_compiled.js"></script>
|
20
|
-
<script src="/moment.js"></script>
|
21
|
-
<script src="/js-yaml.min.js"></script>
|
22
21
|
|
23
22
|
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
24
23
|
<!--[if lt IE 9]>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: travlrmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 61
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 17
|
10
|
+
version: 0.0.17
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- R.I.Pienaar
|
@@ -209,6 +209,8 @@ files:
|
|
209
209
|
- public/markers/marker-RED-MINI.png
|
210
210
|
- public/markers/marker-PURPLE-MINI.png
|
211
211
|
- public/markers/marker-GRAY-REGULAR.png
|
212
|
+
- public/datepicker/datepicker3.css
|
213
|
+
- public/datepicker/bootstrap-datepicker.js
|
212
214
|
- public/cluster/cluster-ORANGE-2.png
|
213
215
|
- public/cluster/cluster-YELLOW-1.png
|
214
216
|
- public/cluster/cluster-TEAL-5.png
|