diff --git a/htdocs/features.html b/htdocs/features.html
index 5602567..a4d2279 100644
--- a/htdocs/features.html
+++ b/htdocs/features.html
@@ -3,7 +3,7 @@
-
+
diff --git a/htdocs/index.html b/htdocs/index.html
index 60f00cd..e945f3f 100644
--- a/htdocs/index.html
+++ b/htdocs/index.html
@@ -25,9 +25,9 @@
-
-
-
+
+
+
diff --git a/htdocs/jquery-3.2.1.min.js b/htdocs/lib/jquery-3.2.1.min.js
similarity index 100%
rename from htdocs/jquery-3.2.1.min.js
rename to htdocs/lib/jquery-3.2.1.min.js
diff --git a/htdocs/jquery.nanoscroller.js b/htdocs/lib/jquery.nanoscroller.js
similarity index 100%
rename from htdocs/jquery.nanoscroller.js
rename to htdocs/lib/jquery.nanoscroller.js
diff --git a/htdocs/nanoscroller.css b/htdocs/lib/nanoscroller.css
similarity index 100%
rename from htdocs/nanoscroller.css
rename to htdocs/lib/nanoscroller.css
diff --git a/htdocs/nite-overlay.js b/htdocs/lib/nite-overlay.js
similarity index 100%
rename from htdocs/nite-overlay.js
rename to htdocs/lib/nite-overlay.js
diff --git a/htdocs/map.html b/htdocs/map.html
index ee8908c..056cc14 100644
--- a/htdocs/map.html
+++ b/htdocs/map.html
@@ -2,8 +2,9 @@
OpenWebRX Map
-
+
+
diff --git a/htdocs/map.js b/htdocs/map.js
index 4a3309e..8b268cd 100644
--- a/htdocs/map.js
+++ b/htdocs/map.js
@@ -129,7 +129,7 @@
zoom: 5
});
processUpdates(updateQueue);
- $.getScript("/static/nite-overlay.js").done(function(){
+ $.getScript("/static/lib/nite-overlay.js").done(function(){
nite.init(map);
setInterval(function() { nite.refresh() }, 10000); // every 10s
});
@@ -161,7 +161,7 @@
var showInfoWindow = function(locator, pos) {
if (!infowindow) infowindow = new google.maps.InfoWindow();
var inLocator = $.map(rectangles, function(r, callsign) {
- return {callsign: callsign, locator: r.locator}
+ return {callsign: callsign, locator: r.locator, lastseen: r.lastseen}
}).filter(function(d) {
return d.locator == locator;
});
@@ -169,7 +169,10 @@
'
Locator: ' + locator + '
' +
'
Active Callsigns:
' +
'
' +
- inLocator.map(function(i){ return '- ' + i.callsign + '
' }).join("") +
+ inLocator.map(function(i){
+ var timestring = moment(i.lastseen).fromNow();
+ return '- ' + i.callsign + ' (' + timestring + ')
'
+ }).join("") +
'
'
);
infowindow.setPosition(pos);