Widget:NetworkStatShort: Unterschied zwischen den Versionen

Aus Freifunk Dresden - Anwender-Wiki
Zur Navigation springen Zur Suche springen
Zeile 9: Zeile 9:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td id="netstat_nodes"> </td>
+
<td><div id="netstat_nodes"></div></td>
<td id="netstat_online> </td>
+
<td><div id="netstat_online></div></td>
<td id="netstat_gateways"> </td>
+
<td><div id="netstat_gateways"></div></td>
<td id="netstat_clients> </td>
+
<td><div id="netstat_clients></div></td>
 
</tr>
 
</tr>
 
</table>
 
</table>

Version vom 12. August 2018, 21:56 Uhr

<script id="json_data" type="text/javascript" src="https://api.main.freifunk-dresden.de/freifunk-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>