Widget:NetworkStatShort: Unterschied zwischen den Versionen

Aus Freifunk Dresden - Anwender-Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „<script id="json_data" type="text/javascript" src="https://api.main.freifunk-dresden.de/freifunk-wiki-statistic.json.js"></script> <div id="netstat_nodes"></di…“)
 
K (rename statistic file)
 
(16 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<script id="json_data" type="text/javascript" src="https://api.main.freifunk-dresden.de/freifunk-wiki-statistic.json.js"></script>
+
<script type="text/javascript" src="https://api.freifunk-dresden.de/freifunk-dresden-wiki-statistic.json.js"></script>
<div id="netstat_nodes"></div>
+
 
<div id="netstat_online"></div>
+
<table class="wikitable">
<div id="netstat_gateways"></div>
+
<tr>
<div id="netstat_clients"></div>
+
<th>Knoten</th>
 +
<th>Online</th>
 +
<th>Gateways</th>
 +
<th>Nutzer</th>
 +
</tr>
 +
<td><div id="netstat_nodes"></div></td>
 +
<td><div id="netstat_online"></div></td>
 +
<td><div id="netstat_gateways"></div></td>
 +
<td><div id="netstat_clients"></div></td>
 +
</table>
  
 
<script type="text/javascript">
 
<script type="text/javascript">
 +
 
var nodes = document.getElementById("netstat_nodes");
 
var nodes = document.getElementById("netstat_nodes");
 
var online = document.getElementById("netstat_online");
 
var online = document.getElementById("netstat_online");
Zeile 12: Zeile 22:
  
 
nodes.innerHTML = data.statistic.nodes;
 
nodes.innerHTML = data.statistic.nodes;
 +
online.innerHTML = data.statistic.online;
 +
gateways.innerHTML = data.statistic.gateways;
 +
clients.innerHTML = data.statistic.clients;
  
 
</script>
 
</script>

Aktuelle Version vom 22. Oktober 2022, 17:00 Uhr

<script type="text/javascript" src="https://api.freifunk-dresden.de/freifunk-dresden-wiki-statistic.json.js"></script>

Knoten Online Gateways Nutzer

<script type="text/javascript">

var nodes = document.getElementById("netstat_nodes"); var online = document.getElementById("netstat_online"); var gateways = document.getElementById("netstat_gateways"); var clients = document.getElementById("netstat_clients");

nodes.innerHTML = data.statistic.nodes; online.innerHTML = data.statistic.online; gateways.innerHTML = data.statistic.gateways; clients.innerHTML = data.statistic.clients;

</script>