timestamp

This commit is contained in:
Nils Schneider 2015-03-22 21:49:45 +01:00
parent b09e8526c8
commit 0743befe30
2 changed files with 6 additions and 0 deletions

View File

@ -281,6 +281,9 @@
<p id="meshstats">
</p>
<p id="timestamp">
</p>
<h2>Neue Knoten</h2>
<table>
<tbody id="newnodes">

View File

@ -170,6 +170,9 @@ function handle_data(config, map) {
showMeshstats(document.getElementById("meshstats"), nodes)
var timestamp = document.getElementById("timestamp")
timestamp.textContent = "Diese Daten sind " + moment.utc(nodes.timestamp).fromNow(true) + " alt."
var historyDict = { nodes: {}, links: {} }
nodes.forEach( function (d) {