Widget:NetworkStatShort: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
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 id="json_data" type="text/javascript" src="https://api.main.freifunk-dresden.de/freifunk-wiki-statistic.json.js"></script> | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<div id="netstat_nodes"></div> | <div id="netstat_nodes"></div> | ||
<div id="netstat_online></div> | <div id="netstat_online></div> | ||
Zeile 22: | Zeile 7: | ||
<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"); |
Version vom 12. August 2018, 21:58 Uhr
<script id="json_data" type="text/javascript" src="https://api.main.freifunk-dresden.de/freifunk-wiki-statistic.json.js"></script>
<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>