From 58e819606a0cce739f8476f26d36829147e4ad30 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Mon, 8 Jul 2019 21:01:30 +0200 Subject: [PATCH] use moment.js to display a pretty time since last activity --- htdocs/features.html | 2 +- htdocs/index.html | 6 +++--- htdocs/{ => lib}/jquery-3.2.1.min.js | 0 htdocs/{ => lib}/jquery.nanoscroller.js | 0 htdocs/{ => lib}/nanoscroller.css | 0 htdocs/{ => lib}/nite-overlay.js | 0 htdocs/map.html | 3 ++- htdocs/map.js | 9 ++++++--- 8 files changed, 12 insertions(+), 8 deletions(-) rename htdocs/{ => lib}/jquery-3.2.1.min.js (100%) rename htdocs/{ => lib}/jquery.nanoscroller.js (100%) rename htdocs/{ => lib}/nanoscroller.css (100%) rename htdocs/{ => lib}/nite-overlay.js (100%) 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:
' + '' ); infowindow.setPosition(pos);