Commit d56a37a6 authored by chrissi^'s avatar chrissi^

Initial Flamingo Port

Signed-off-by: chrissi^'s avatarChris Fiege <chris@tinyhost.de>
parent f6748a41
PYTHON=python3
PYTHON_VENV=env
PROJECT_ROOT=.
WEBSERVER_PORT=8080
WEBSERVER_HOST=localhost
FLAMINGO_OUTPUT=output
FLAMINGO_ARGS=-p $(PROJECT_ROOT)
FLAMINGO_SERVER_ARGS=$(FLAMINGO_ARGS) --port=$(WEBSERVER_PORT) --host=$(WEBSERVER_HOST)
all: server
# setup / clean ###############################################################
$(PYTHON_VENV)/.created:
rm -rf $(PYTHON_VENV) && \
$(PYTHON) -m venv $(PYTHON_VENV) && \
. $(PYTHON_VENV)/bin/activate && \
pip install -r ./REQUIREMENTS.txt > $(PYTHON_VENV)/build.log 2>&1 && \
(date > $(PYTHON_VENV)/.created) || \
(echo "\e[31m"; cat $(PYTHON_VENV)/build.log; echo "\e[0m"; exit 1)
env: $(PYTHON_VENV)/.created
clean:
rm -rf $(FLAMINGO_OUTPUT)
distclean:
rm -rf $(PYTHON_VENV)
# build #######################################################################
html: env
. $(PYTHON_VENV)/bin/activate && \
flamingo build $(FLAMINGO_ARGS)
server: env
. $(PYTHON_VENV)/bin/activate && \
flamingo server $(FLAMINGO_SERVER_ARGS)
shell: env
. $(PYTHON_VENV)/bin/activate && \
flamingo shell $(FLAMINGO_ARGS)
git+git://github.com/pengutronix/flamingo@master#egg=flamingo
beautifulsoup4==4.5.3
Pillow==4.3.0
ipython==6
template: page_html.html
output: index.html
<div class="container">
<!-- Heading Row -->
<div class="row">
<div class="col-md-8">
<img class="img-responsive img-rounded" src="/assets/images/Logo_Freifunk_Braunschweig.svg" alt="">
</div>
<div class="col-md-4">
<h1>Für ein freies Netz</h1>
<p>
Das Projekt Freifunk Braunschweig baut ein regionales Datennetz mit WLAN-Geräten, den sogenannten Knoten, auf. Die Nutzung ist kostenlos, es ist keine Registrierung notwendig und es werden keine personenbezogenen Daten erfasst.
</p>
<!--<a class="btn btn-primary btn-lg btn-block" href="/auswahl.html">Mach jetzt bei Freifunk mit!</a>-->
<hr>
<h1>N&auml;chstes Treffen</h1>
<p>
Mittwochs ab 19 Uhr im <a href="https://stratum0.org/wiki/Anfahrt" title="Anfahrt">Stratum 0</a>.<br>
<!-- Emantor eingefügt am 31.3.2015 -->
<!-- <font color="#FF0000">Das nächste Freifunktreffen findet am 04.01.2017 statt, wir wünschen frohe Feiertage und einen guten Rutsch. Und natürlich immer eine gute Anbindung ;)</font><br> -->
<!-- Ende [Emantor, 31.3.2015] -->
Zunächst Freifunk-Sprechstunde für Gäste und Interessierte. Anschließend Technik-Workshop.
</p>
</div>
<!-- /.col-md-4 -->
</div>
<hr>
</div>
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="well text-center">
<b>Internet, wie es sein sollte. Einfach, unzensiert und für jeden zugänglich. </b>
</div>
</div>
<!-- /.col-lg-12 -->
</div>
<hr>
</div>
<div class="container">
<div class="row text-center">
<div class="col-md-4">
<i class="fa fa-globe fa-3x"></i>
<p>
Das Netzwerk kann von jedem genutzt werden, ohne Anmeldung. Und das an immer mehr Orten.
</p>
</div>
<div class="col-md-4">
<i class="fa fa-wifi fa-3x"></i>
<p>
Verbinde dein Gerät einfach per WLAN mit <b>Freifunk</b>. Dazu brauchst du keine spezielle Software.
</p>
</div>
<div class="col-md-4">
<i class="fa fa-child fa-3x"></i>
<p>
Mach mit bei den Freifunkern und erweitere das Netzwerk mit deinen eigenen Geräten.
</p>
</div>
</div>
<hr>
</div>
<div class="container">
<div class="row">
<div class="col-lg-12 col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">Was ist Freifunk ?</div>
<div class="panel-body">
Freifunk ist ein Projekt, das versucht ein regionales Datennetz auf Basis von WLAN-Routern aufzubauen. Dieses Netz soll eine freie Kommunikation innerhalb der ganzen Region ermöglichen. Jedes WLAN-fähige Gerät, also beispielsweise Handy oder Notebook,
kann sich mit dem Netz verbinden und darüber mit anderen Teilnehmern kommunizieren. In der Regel steht über das Netz auch ein Zugang ins Internet zur Verfügung.
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row text-center">
<div class="col-md-12">
<div class="well text-center">
<b>Du möchtest bei dir ein Router aufstellen?</b>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">1. Finde zu uns</h3>
</div>
<div class="panel-body">
<div class="licensed-image">
<img class="img-responsive center-block" alt="Bootstrap template" src="/assets/images/stratum0.jpg">
<div class="license">
<p class="license-inner">CC-BY-SA 3.0 rohieb</p>
</div>
</div>
<iframe class="text-center" width="100%" scrolling="no" height="283" frameborder="0" src="//www.openstreetmap.org/export/embed.html?bbox=10.518212914466858%2C52.27685277747112%2C10.524006485939026%2C52.27966553459799&amp;marker=52.278259178349444%2C10.521109700202942"
marginwidth="0" marginheight="0"></iframe>
<p>
Wir treffen uns Mittwochs ab 19:00 Uhr in den Räumen des <a href="https://stratum0.org">Stratum 0 e.V.</a>
</p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">2. Kaufe dir einen Router</h3>
</div>
<div class="panel-body">
<div class="licensed-image">
<img class="img-responsive center-block" src="/assets/images/ffbs_router.png">
<div class="license">
<p class="license-inner">CC-BY-SA 3.0 rohieb</p>
</div>
</div>
<!--<p>
Für 20€ bekommst du bei uns ein Freifunk-Router. <em>(Das kostet er uns auch)</em>
</p>-->
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">3. Schließe den Router an</h3>
</div>
<div class="panel-body">
<div class="licensed-image">
<img class="img-responsive center-block" alt="Bootstrap template" src="/assets/images/ffbs_anschliessen.png">
<div class="license">
<p class="license-inner">CC-BY-SA 3.0 rohieb</p>
</div>
</div>
<p>
Verbinde den Freifunk-Router am besten mit deinem Internet Router. <em>(Nicht notwendig bei anderen Freifunk-Routern in deiner Nähe)</em>
</p>
</div>
</div>
</div>
</div>
</div>
import os
PLUGINS = [
'flamingo.plugins.Redirects',
'flamingo.plugins.Layers',
]
LAYERS = [
'static',
]
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 13.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
<svg version="1.2" baseProfile="tiny" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px" y="0px" width="112.175px" height="31.967px" viewBox="0 0 112.175 31.967" xml:space="preserve">
<g>
<path fill="none" d="M87.349,4.61c6.274,0,11.357,5.085,11.359,11.36c-0.002,6.272-5.085,11.358-11.359,11.358
c-3.132,0-5.968-1.269-8.022-3.318c-0.151,0.568-0.343,1.118-0.581,1.645c2.291,2.037,5.298,3.285,8.606,3.291
c7.166-0.012,12.961-5.811,12.976-12.977c-0.015-7.165-5.81-12.963-12.976-12.978c-5.907,0.012-10.874,3.956-12.45,9.351
c0.492,0.327,0.95,0.698,1.381,1.1C77.433,8.386,81.945,4.61,87.349,4.61z"/>
<path fill="none" d="M71.381,15.969c0-1.511,0.225-2.967,0.616-4.352c-0.949-0.296-1.959-0.457-3.007-0.459
c-5.58,0.01-10.096,4.524-10.104,10.106c0.009,5.582,4.524,10.096,10.104,10.107c3.078-0.007,5.827-1.387,7.68-3.555
C73.43,24.894,71.382,20.676,71.381,15.969z M66.719,21.434h-2.578l1.688-1.631h-3.355v-1.781h3.526l-1.745-1.838h2.522
l2.387,2.729L66.719,21.434z"/>
<path fill="none" d="M78.979,22.715c0.069-0.475,0.117-0.957,0.118-1.451c-0.005-2.504-0.92-4.788-2.427-6.552
c-0.049,0.414-0.08,0.832-0.081,1.258C76.593,18.527,77.489,20.871,78.979,22.715z"/>
<path fill="none" d="M78.281,25.233c0.239-0.56,0.425-1.147,0.562-1.754c-1.77-2.002-2.853-4.626-2.853-7.509
c0-0.624,0.063-1.232,0.16-1.829c-0.432-0.434-0.905-0.826-1.409-1.176c-0.231,0.966-0.367,1.968-0.369,3.004
C74.38,19.602,75.877,22.878,78.281,25.233z"/>
<path fill="none" d="M46.527,15.272c0,0.131,0.03,0.51,0.28,0.51c0.231,0,0.421-0.15,0.421-0.33v-1.4
C46.737,14.262,46.527,14.753,46.527,15.272z"/>
<path fill="none" d="M54.035,12.421c0-0.16-0.15-0.33-0.301-0.33s-0.27,0.141-0.27,0.33v3.072c0,0.189,0.119,0.33,0.27,0.33
c0.14,0,0.301-0.141,0.301-0.332V12.421z"/>
<path fill="none" d="M36.897,12.582c0,0,0.019-0.56-0.36-0.56c-0.372,0-0.372,0.56-0.372,0.56v0.77h0.732V12.582z"/>
<path fill="none" d="M11.741,12.582c0,0,0.02-0.56-0.361-0.56c-0.37,0-0.37,0.56-0.37,0.56v0.77h0.731V12.582z"/>
<path fill="none" d="M87.349,26.729c5.942-0.01,10.749-4.816,10.761-10.759c-0.012-5.943-4.818-10.752-10.761-10.762
c-5.249,0.009-9.607,3.765-10.561,8.738c1.798,1.915,2.906,4.484,2.907,7.318c0,0.697-0.072,1.377-0.199,2.037
C81.458,25.402,84.244,26.724,87.349,26.729z M86.325,14.42h4.218l-2.919,3.073h5.898v2.979H87.91l2.823,2.729H86.42l-4.088-4.217
L86.325,14.42z"/>
<path fill="#B20053" d="M112.175,24.356v-5.67h-5.498c-0.28,2.006-0.861,3.908-1.701,5.67H112.175z"/>
<path fill="#B20053" d="M54.998,21.264c0-0.883,0.092-1.742,0.247-2.578H0v5.67h55.353C55.128,23.36,54.998,22.327,54.998,21.264z"
/>
<path fill="#E8C619" d="M74.058,1.679H0v5.669h69.837C70.894,5.205,72.327,3.289,74.058,1.679z"/>
<path fill="#E8C619" d="M100.642,1.679c1.73,1.61,3.164,3.526,4.221,5.669h7.312V1.679H100.642z"/>
<path fill="#B20053" d="M74.372,15.969c0.002-1.036,0.138-2.039,0.369-3.004c-0.833-0.579-1.754-1.039-2.744-1.348
c-0.392,1.385-0.616,2.841-0.616,4.352c0.001,4.707,2.049,8.925,5.289,11.848c0.658-0.771,1.206-1.639,1.611-2.584
C75.877,22.878,74.38,19.602,74.372,15.969z"/>
<path fill="#B20053" d="M74.901,12.342c1.576-5.396,6.543-9.339,12.45-9.351c7.166,0.015,12.961,5.813,12.976,12.978
c-0.015,7.166-5.81,12.965-12.976,12.977c-3.309-0.006-6.315-1.254-8.606-3.291c-0.421,0.936-0.971,1.798-1.63,2.566
c2.771,2.318,6.339,3.717,10.236,3.717c8.818,0,15.965-7.148,15.967-15.969C103.316,7.148,96.17,0.002,87.352,0
c-7.1,0.002-13.106,4.634-15.186,11.038C73.146,11.342,74.064,11.786,74.901,12.342z"/>
<path fill="#B20053" d="M98.708,15.97C98.706,9.695,93.623,4.61,87.349,4.61c-5.403,0-9.916,3.776-11.066,8.832
c0.175,0.163,0.343,0.33,0.506,0.504c0.953-4.973,5.312-8.729,10.561-8.738c5.942,0.01,10.749,4.819,10.761,10.762
c-0.012,5.942-4.818,10.749-10.761,10.759c-3.104-0.005-5.891-1.327-7.853-3.428c-0.047,0.24-0.108,0.475-0.17,0.709
c2.055,2.05,4.891,3.318,8.022,3.318C93.623,27.329,98.706,22.243,98.708,15.97z"/>
<path fill="#B20053" d="M78.843,23.479c0.056-0.25,0.099-0.506,0.136-0.764c-1.489-1.845-2.386-4.188-2.39-6.745
c0.001-0.426,0.032-0.844,0.081-1.258c-0.167-0.196-0.338-0.389-0.52-0.571c-0.097,0.597-0.16,1.205-0.16,1.829
C75.99,18.853,77.073,21.477,78.843,23.479z"/>
<path fill="#B20053" d="M79.326,24.01c0.062-0.234,0.123-0.469,0.17-0.709c0.127-0.66,0.199-1.34,0.199-2.037
c-0.001-2.834-1.109-5.404-2.907-7.318c-0.163-0.174-0.331-0.341-0.506-0.504c-0.431-0.401-0.889-0.773-1.381-1.1
c-0.837-0.556-1.755-1-2.735-1.304c-1.003-0.311-2.069-0.479-3.176-0.479c-5.911,0-10.703,4.792-10.703,10.705
c0,5.912,4.792,10.703,10.703,10.703c3.254,0,6.162-1.456,8.125-3.746c0.659-0.769,1.209-1.631,1.63-2.566
C78.983,25.128,79.175,24.579,79.326,24.01z M68.99,31.372c-5.58-0.012-10.096-4.525-10.104-10.107
c0.009-5.582,4.524-10.096,10.104-10.106c1.048,0.002,2.058,0.163,3.007,0.459c0.99,0.309,1.911,0.769,2.744,1.348
c0.504,0.35,0.978,0.742,1.409,1.176c0.182,0.183,0.353,0.375,0.52,0.571c1.507,1.764,2.422,4.048,2.427,6.552
c-0.001,0.494-0.049,0.977-0.118,1.451c-0.037,0.258-0.08,0.514-0.136,0.764c-0.137,0.606-0.322,1.194-0.562,1.754
c-0.405,0.945-0.953,1.812-1.611,2.584C74.817,29.985,72.068,31.365,68.99,31.372z"/>
<polygon fill="#E8C619" points="90.733,23.2 87.91,20.471 93.522,20.471 93.522,17.493 87.624,17.493 90.543,14.42 86.325,14.42
82.332,18.983 86.42,23.2 "/>
<polygon fill="#E8C619" points="64.254,16.184 65.999,18.022 62.473,18.022 62.473,19.803 65.828,19.803 64.141,21.434
66.719,21.434 69.163,18.914 66.776,16.184 "/>
<path d="M20.336,16.692v-5.47h-1.008v4.31c0,0-0.13,0.261-0.331,0.261c-0.121,0-0.24-0.031-0.24-0.241v-4.33h-1.009v4.48
c0,0.451,0.22,1.07,0.759,1.07c0.35,0,0.741-0.49,0.821-0.539v0.459H20.336z"/>
<path d="M16.901,10.201c0.17,0,0.3,0.04,0.3,0.04V9.372c0,0-0.15-0.07-0.47-0.07c-1.159,0-1.159,1.2-1.159,1.77v0.07v0.08h-0.51
v0.909h0.51v4.561h1.009v-4.561h0.51v-0.909h-0.51v-0.06v-0.08C16.582,10.832,16.562,10.201,16.901,10.201z"/>
<rect x="13.438" y="9.342" width="1.009" height="1.009"/>
<polygon points="25.601,9.342 24.592,9.342 24.592,16.692 25.601,16.692 25.601,14.801 25.73,14.483 25.761,14.403 25.811,14.403
25.831,14.483 26.331,16.692 27.3,16.692 26.38,13.003 27.11,11.222 26.201,11.222 25.709,12.652 25.65,12.832 25.601,12.832
25.601,12.652 "/>
<path d="M12.68,14.141v-1.59c0,0,0.01-1.409-1.3-1.409c-1.299,0-1.309,1.44-1.309,1.44v2.751c0,0,0,1.439,1.299,1.439
c1.31,0,1.31-1.41,1.31-1.41v-0.629h-0.939v0.6c0,0,0.02,0.549-0.361,0.549c-0.37,0-0.37-0.549-0.37-0.549v-1.192H12.68z
M11.009,12.582c0,0,0-0.56,0.37-0.56c0.381,0,0.361,0.56,0.361,0.56v0.77h-0.731V12.582z"/>
<path d="M6.651,10.201c0.17,0,0.3,0.04,0.3,0.04V9.372c0,0-0.15-0.07-0.47-0.07c-1.159,0-1.159,1.2-1.159,1.77v0.07v0.08h-0.51
v0.909h0.51v4.561h1.009v-4.561h0.51v-0.909h-0.51v-0.06v-0.08C6.332,10.832,6.312,10.201,6.651,10.201z"/>
<path d="M7.508,11.222v5.47h1.009v-3.8c0-0.17,0.04-0.34,0.22-0.5c0.32-0.28,0.79-0.13,0.79-0.13v-1.12
c-0.74,0-0.98,0.55-1.01,0.69v-0.61H7.508z"/>
<rect x="13.438" y="11.222" width="1.009" height="5.47"/>
<path d="M29.263,11.222v5.47h1.008v-3.8c0-0.17,0.04-0.34,0.22-0.5c0.321-0.28,0.79-0.13,0.79-0.13v-1.12
c-0.741,0-0.98,0.55-1.01,0.69v-0.61H29.263z"/>
<path d="M23.765,16.692v-4.48c0-0.451-0.221-1.07-0.759-1.07c-0.35,0-0.741,0.49-0.821,0.54v-0.46h-1.009v5.47h1.009v-4.31
c0-0.001,0.13-0.261,0.33-0.261c0.121,0,0.241,0.03,0.241,0.24v4.331H23.765z"/>
<rect x="43.841" y="9.342" width="1.009" height="7.35"/>
<path d="M51.654,16.692v-4.48c0-0.451-0.22-1.07-0.759-1.07c-0.351,0-0.741,0.49-0.821,0.54v-0.46h-1.009v5.47h1.009v-4.31
c0-0.001,0.13-0.261,0.331-0.261c0.12,0,0.24,0.03,0.24,0.24v4.331H51.654z"/>
<path d="M47.229,13.122c-0.101,0.33-1.69,0.451-1.69,2.3c0,1.149,0.539,1.35,0.809,1.35c0.41,0,0.711-0.33,0.811-0.519h0.07
c0,0.058,0,0.338,0.09,0.439h0.989c-0.04-0.24-0.07-0.461-0.07-0.951v-1.65v-1.71c0-0.709-0.57-1.239-1.229-1.239
c-0.771,0-1.36,0.66-1.36,1.459v0.23h1.009c0.009-0.309-0.05-0.809,0.291-0.809c0.28,0,0.28,0.299,0.28,0.5v0.42V13.122z
M47.229,15.452c0,0.18-0.19,0.33-0.421,0.33c-0.25,0-0.28-0.379-0.28-0.51c0-0.519,0.21-1.01,0.701-1.22V15.452z"/>
<path d="M55.042,16.692v-7.35h-1.008v2.24c0,0-0.431-0.44-0.801-0.44c-0.549,0-0.779,0.619-0.779,1.07v3.49
c0,0.451,0.23,1.07,0.779,1.07c0.37,0,0.801-0.439,0.801-0.439v0.359H55.042z M53.733,15.823c-0.151,0-0.27-0.141-0.27-0.33v-3.072
c0-0.189,0.119-0.33,0.27-0.33s0.301,0.17,0.301,0.33v3.07C54.035,15.682,53.874,15.823,53.733,15.823z"/>
<rect x="38.595" y="9.342" width="1.009" height="1.009"/>
<rect x="38.595" y="11.222" width="1.009" height="5.47"/>
<path d="M43.019,16.692v-4.48c0-0.451-0.22-1.07-0.759-1.07c-0.35,0-0.741,0.49-0.821,0.54v-0.46H40.43v5.47h1.009v-4.31
c0-0.001,0.13-0.261,0.331-0.261c0.12,0,0.24,0.03,0.24,0.24v4.331H43.019z"/>
<path d="M37.835,14.141v-1.59c0,0,0.011-1.409-1.298-1.409c-1.3,0-1.31,1.44-1.31,1.44v2.751c0,0,0,1.439,1.3,1.439
c1.308,0,1.308-1.41,1.308-1.41v-0.629h-0.938v0.6c0,0,0.019,0.549-0.36,0.549c-0.372,0-0.372-0.549-0.372-0.549v-1.192H37.835z
M36.166,12.582c0,0,0-0.56,0.372-0.56c0.379,0,0.36,0.56,0.36,0.56v0.77h-0.732V12.582z"/>
<path d="M34.458,16.692v-4.48c0-0.451-0.219-1.07-0.758-1.07c-0.35,0-0.742,0.49-0.822,0.54v-2.34H31.87v7.35h1.008v-4.311
c0,0,0.131-0.26,0.331-0.26c0.121,0,0.241,0.03,0.241,0.24v4.331H34.458z"/>
</g>
</svg>
/*!
* Start Bootstrap - Blog Home HTML Template (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
body {
padding-top: 70px; /* Required padding for .navbar-fixed-top. Remove if using .navbar-static-top. Change if height of navigation changes. */
}
footer {
margin: 50px 0;
}
\ No newline at end of file
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
html {
height: 94%;
}
#mapdiv,body,.container {
height: 100%;
}
.navbar {
margin-bottom: 0px !important;
}
.olPopup {
font-family: sans-serif;
border-radius: 25px;
border: 2px solid !important;
height: 110px !important;
color: #000 !important;
line-height: 1 !important;
font-weight: normal;
font-size: 14px;
}
.olPopupContent h2 {
margin: 10px 0px;
font-size: 110%;
font-weight: bold;
color: #000;
}
.olPopupContent small {
line-height: 200%;
overflow-x: scroll;
white-space: nowrap;
}
This diff is collapsed.
This diff is collapsed.
/*!
* Start Bootstrap - Small Business HTML Template (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
body {
padding-top: 50px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */
}
footer {
padding: 30px 0;
}
@media(min-width:768px) {
body {
padding-top: 130px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */
}
}
@media(min-width:992px) {
body {
padding-top: 90px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */
}
}
@media(min-width:1200px) {
body {
padding-top: 50px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */
}
}
/* carousel */
#quote-carousel
{
padding: 0 10px 30px 10px;
margin-top: 30px 0px 0px;
}
/* Control buttons */
#quote-carousel .carousel-control
{
background: none;
color: #222;
font-size: 2.3em;
text-shadow: none;
margin-top: 30px;
}
/* Previous button */
#quote-carousel .carousel-control.left
{
left: -12px;
}
/* Next button */
#quote-carousel .carousel-control.right
{
right: -12px !important;
}
/* Changes the position of the indicators */
#quote-carousel .carousel-indicators
{
right: 50%;
top: auto;
bottom: 0px;
margin-right: -19px;
}
/* Changes the color of the indicators */
#quote-carousel .carousel-indicators li
{
background: #c0c0c0;
}
#quote-carousel .carousel-indicators .active
{
background: #333333;
}
#quote-carousel img
{
width: 250px;
height: 100px
}
/* End carousel */
.item blockquote {
border-left: none;
margin: 0;
}
.item blockquote img {
margin-bottom: 10px;
}
.item blockquote p:before {
content: "\f10d";
font-family: 'Fontawesome';
float: left;
margin-right: 10px;
}
/**
MEDIA QUERIES
*/
/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
#quote-carousel
{
margin-bottom: 0;
padding: 0 40px 30px 40px;
margin-top: 30px;
}
}
/* Small devices (tablets, up to 768px) */
@media (max-width: 768px) {
/* Make the indicators larger for easier clicking with fingers/thumb on mobile */
#quote-carousel .carousel-indicators {
bottom: -20px !important;
}
#quote-carousel .carousel-indicators li {
display: inline-block;
margin: 0px 5px;
width: 15px;
height: 15px;
}
#quote-carousel .carousel-indicators li.active {
margin: 0px 5px;
width: 20px;
height: 20px;
}
}
/* extensions */
.page-header {
margin: 0px 0px 18px !important;
}
.affix {
top: 50px;
}
a.anchor{
display: block;
position: relative;
top: -50px;
visibility: hidden;
}
@media(min-width:768px) {
.affix {
top: 90px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */
}
a.anchor{
display: block;
position: relative;
top: -90px;
visibility: hidden;
}
}
@media(min-width:994px) {
.affix {
top: 50px;
}
a.anchor{
display: block;
position: relative;
top: -50px;
visibility: hidden;
}
}
.licensed-image {
position: relative;
margin: 0px 0px 9px;
}
.license {
position: absolute;
bottom: 0px;
right: 50%;
float: none;
font-size: 75%;
}
.license-inner {
position: relative;
padding: 3px 5px;
margin: 0px;
right: -50%;
color: #EEE;
background-color: rgba(20,20,20,0.7);
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
round = function (num, n) {
return Math.round(num * Math.pow(10,n)) / Math.pow(10,n);
}
writeHash = function () {
ll = map.getCenter().transform("EPSG:900913","EPSG:4326");
location.hash = '#'+map.getZoom()+'/'+round(ll.lat,4)+'/'+round(ll.lon,4);
}
map = new OpenLayers.Map("mapdiv", {
eventListeners: {"moveend": writeHash, "zoomend": writeHash}
});
map.addLayer(new OpenLayers.Layer.OSM());
var pois = new OpenLayers.Layer.Text( "Freifunk Braunschweig",
{ location:"/nodes.txt",
projection: map.displayProjection
});
map.addLayer(pois);
var layer_switcher= new OpenLayers.Control.LayerSwitcher({});
map.addControl(layer_switcher);
updateMap = function () {
var lon = null,lat = null,zoom = null
if (location.hash != "") {
list = location.hash.substr(1).split('/');
if (list.length == 3) {
zoom = parseInt(list[0]);
lat = parseFloat(list[1]);
lon = parseFloat(list[2]);
}
}
if (lon == null || lat == null || zoom == null) {
lon = 10.522;
lat = 52.2645;
zoom = 12;
}
var lonLat = new OpenLayers.LonLat(lon,lat).transform(
new OpenLayers.Projection("EPSG:4326"),
map.getProjectionObject() );
map.setCenter(lonLat, zoom);
}
$(window).on('hashchange', updateMap)
updateMap();
$(function () {
$.get('/nodecount', function (ans) {
$('#nodecount').text(ans);
});
$.get('/clientcount', function (ans) {
$('#clientcount').text(ans);
});
});
This diff is collapsed.
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Freifunk Braunschweig - Stratum0 e.V.">
<title>Freifunk Braunschweig</title>
<link rel="apple-touch-icon-precomposed" href="/favicon152.png">
<link rel="icon" sizes="16x16 32x32" href="/favicon.ico">
<meta name="description" content="">
<link rel="stylesheet" href="/css/bootstrap.css" media="screen">
<link href="/css/small-business.css" rel="stylesheet">
<link href="/css/font-awesome.min.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>