Commit e4309d0b authored by chrissi^'s avatar chrissi^

nodecount: Move from ID to Class

Signed-off-by: chrissi^'s avatarChris Fiege <chris@tinyhost.de>
parent 89985cb6
Pipeline #1539 passed with stage
in 21 seconds
......@@ -28,7 +28,7 @@ template: page_html.html
<li>Wähle das W-LAN <i>Freifunk</i> aus</li>
<li>Surfe kostenlos, unzensiert und ohne Anmeldung!</li>
</ul>
Ausserdem gibt es in der Umgebung noch <span id="nodecount">?</span> weitere Zugänge.
Ausserdem gibt es in der Umgebung noch <span class="nodecount">?</span> weitere Zugänge.
<a href="https://freifunk-bs.de/map/#!v:m" >Hier geht es zur Karte</a>.
</div>
</div>
......
$(function () {
$.get('/nodecount', function (ans) {
$('#nodecount').text(ans);
$('.nodecount').text(ans);
});
$.get('/clientcount', function (ans) {
$('#clientcount').text(ans);
$('.clientcount').text(ans);
});
});
......@@ -45,7 +45,25 @@
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="/faq/faq.html">Mitmachen <span class="caret"></span></a>
<a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="#">Projekte<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="/event.html">Feuerwehren Braunschweig</a>
</li>
<li>
<a href="/event.html">Pilgerweg Braunschweiger Süden</a>
</li>
<li>
<a href="/event.html">Fest der Kulturen - 1. Mai</a>
</li>
<li>
<a href="/event.html">Event WLAN</a>
</li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="#">Mitmachen <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
{% with contents=context.contents.filter(path__startswith="mitmachen").order_by("sort") %}
{% for content in contents %}
......@@ -57,14 +75,11 @@
<li role="presentation">
<a href="/eintragen.html">Router eintragen</a>
</li>
<li>
<a href="/event.html">Event WLAN</a>
</li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="/faq/faq.html">Hilfe <span class="caret"></span></a>
<a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="#">Hilfe <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
{% with contents=context.contents.filter(path__startswith="faq").order_by("sort") %}
{% for content in contents %}
......@@ -93,7 +108,7 @@
</li>
</ul>
<ul class="nav pull-right navbar-nav">
<li><a href="/plot.html" title="Statistik"><span id="nodecount">?</span> Router und <span id="clientcount">?</span> Clients aktiv</a>
<li><a href="/plot.html" title="Statistik"><span class="nodecount">?</span> Router und <span class="clientcount">?</span> Clients aktiv</a>
</li>
</ul>
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment