Wrap addresses in table
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
s3lph 2023-01-06 02:53:04 +01:00
parent 474fc0ef53
commit dde8f3f1dd
Signed by: s3lph
GPG key ID: 8AC98A811E5BEFF5
2 changed files with 9 additions and 10 deletions

View file

@ -15,7 +15,7 @@ jinja_environment:
hackerspaces: hackerspaces:
- name: 'CCC Basel' - name: 'CCC Basel'
address: 'Birsfelderstrasse 6, 4132 Muttenz' address: 'Birsfelderstrasse 6<br/>4132 Muttenz'
lat: 47.53230 lat: 47.53230
lon: 7.63421 lon: 7.63421
open: open:
@ -30,7 +30,7 @@ jinja_environment:
spaceapi: '/spaceapi-proxy/https/spaceapi.kabelsalat.ch/' spaceapi: '/spaceapi-proxy/https/spaceapi.kabelsalat.ch/'
- name: 'CCC Zürich' - name: 'CCC Zürich'
address: 'Neue Hard 12, 8005 Zürich' address: 'Neue Hard 12<br/>8005 Zürich'
lat: 47.3869804 lat: 47.3869804
lon: 8.5201701 lon: 8.5201701
open: open:
@ -45,7 +45,7 @@ jinja_environment:
spaceapi: '/spaceapi-proxy/https/www.ccczh.ch/api/v13/' spaceapi: '/spaceapi-proxy/https/www.ccczh.ch/api/v13/'
- name: 'Chaostreff Bern' - name: 'Chaostreff Bern'
address: 'Kyburgstrasse 13, 3013 Bern' address: 'Kyburgstrasse 13<br/>3013 Bern'
lat: 46.9563416 lat: 46.9563416
lon: 7.4483308 lon: 7.4483308
open: open:
@ -56,11 +56,10 @@ jinja_environment:
web: 'https://chaostreffbern.ch/' web: 'https://chaostreffbern.ch/'
contact: contact:
ml: 'https://lists.chaostreff.ch/postorius/lists/bern.chaostreff.ch/' ml: 'https://lists.chaostreff.ch/postorius/lists/bern.chaostreff.ch/'
email: 'info(ät)chaostreffbern(punkt)ch'
spaceapi: '/spaceapi-proxy/https/www.chaosbern.ch/spaceapi.json' spaceapi: '/spaceapi-proxy/https/www.chaosbern.ch/spaceapi.json'
- name: 'Coredump' - name: 'Coredump'
address: 'Eichwiesstrasse 4, 8645 Jona' address: 'Eichwiesstrasse 4<br/>8645 Jona'
lat: 47.2250881 lat: 47.2250881
lon: 8.8338872 lon: 8.8338872
open: open:
@ -73,7 +72,7 @@ jinja_environment:
spaceapi: '/spaceapi-proxy/https/status.crdmp.ch/' spaceapi: '/spaceapi-proxy/https/status.crdmp.ch/'
- name: 'Eastermundingen' - name: 'Eastermundingen'
address: 'Steinbruchweg 16, 3072 Ostermundigen' address: 'Steinbruchweg 16<br/>3072 Ostermundigen'
lat: 46.95151 lat: 46.95151
lon: 7.49408 lon: 7.49408
open: open:
@ -81,12 +80,12 @@ jinja_environment:
fr: 'Mercredi à partir de 18:00' fr: 'Mercredi à partir de 18:00'
it: 'Mercoledì da 18:00' it: 'Mercoledì da 18:00'
en: 'Every Wednesday from 18:00' en: 'Every Wednesday from 18:00'
web: 'https://www.eastermundigen.ch/' web: 'https://eastermundigen.ch/'
contact: contact:
ml: 'https://lists.chaostreff.ch/postorius/lists/bern.chaostreff.ch/' ml: 'https://lists.chaostreff.ch/postorius/lists/bern.chaostreff.ch/'
- name: 'ODENWILUSENZ' - name: 'ODENWILUSENZ'
address: 'Hardmorgenweg 21, 8222 Beringen' address: 'Hardmorgenweg 21<br/>8222 Beringen'
lat: 47.6951648 lat: 47.6951648
lon: 8.5806972 lon: 8.5806972
open: open:
@ -98,7 +97,7 @@ jinja_environment:
contact: {} contact: {}
- name: 'Ruum42' - name: 'Ruum42'
address: 'Andreasstrasse 5, 9000 St. Gallen' address: 'Andreasstrasse 5<br/>9000 St. Gallen'
lat: 47.4207758 lat: 47.4207758
lon: 9.3555784 lon: 9.3555784
open: open:

View file

@ -26,7 +26,7 @@ window.onload = (ev) => {
let newtable = ''; let newtable = '';
for (let i = 0; i < spaces.length; ++i) { for (let i = 0; i < spaces.length; ++i) {
let marker = L.marker([spaces[i].lat, spaces[i].lon], {icon: blueIcon}) let marker = L.marker([spaces[i].lat, spaces[i].lon], {icon: blueIcon})
.bindPopup(`<b>${spaces[i].name}</b><address>${spaces[i].address.replaceAll(',', '<br/>')}</address><a href="${spaces[i].web}">${spaces[i].web}</a>`) .bindPopup(`<b>${spaces[i].name}</b><address>${spaces[i].address}</address><a href="${spaces[i].web}">${spaces[i].web}</a>`)
.addTo(map); .addTo(map);
if (spaces[i].spaceapi !== null) { if (spaces[i].spaceapi !== null) {
fetch(spaces[i].spaceapi, { fetch(spaces[i].spaceapi, {