mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
53 lines
2.6 KiB
HTML
53 lines
2.6 KiB
HTML
---
|
|
layout: base
|
|
id: events
|
|
---
|
|
<link rel="alternate" type="application/rss+xml" href="/en/rss/events.rss" title="Bitcoin conferences and events">
|
|
<h1>{% translate pagetitle %}<a type="application/rss+xml" href="/en/rss/events.rss"><img src="/img/icon_rss.svg" alt="rss" class="rssicon"></a></h1>
|
|
<p class="summary">{% translate pagedesc %}</p>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/js/leaflet/leaflet.css" />
|
|
<link rel="stylesheet" type="text/css" href="/js/leaflet-markercluster/MarkerCluster.css" />
|
|
<link rel="stylesheet" type="text/css" href="/js/leaflet-markercluster/MarkerCluster.Default.css" />
|
|
<script src="/js/leaflet/leaflet.js"></script>
|
|
<script src="/js/leaflet-markercluster/leaflet.markercluster.js"></script>
|
|
<div id="eventmap" class="eventmap"></div>
|
|
<script>
|
|
var zoom=2;
|
|
if(/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))zoom=0;
|
|
var map = L.map('eventmap').setView([20.00, 10.00], zoom);
|
|
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|
attribution: 'Data © by <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>.',
|
|
maxZoom: 18
|
|
}).addTo(map);
|
|
|
|
var markers = new L.MarkerClusterGroup({showCoverageOnHover: false, maxClusterRadius: 40});
|
|
{% filter_for p in site.conferences sort_by:date %}{% if p.geoloc != 'false' %}
|
|
L.marker([{{ p.geoloc }}]).bindPopup('<b><a href="{{ p.link | htmlescape }}">{{ p.title | htmlescape }}</a></b><br>{{ p.date }}<br>{{ p.venue | htmlescape }}<br>{{ p.address | htmlescape }}<br>{{ p.city | htmlescape }}, {{ p.country | htmlescape }}').addTo(markers);
|
|
{% endif %}{% endfilter_for %}
|
|
|
|
{% filter_for p in site.meetups sort_by:date %}{% if p.geoloc != 'false' %}
|
|
L.marker([{{ p.geoloc }}]).bindPopup('<b><a href="{{ p.link | htmlescape }}">{{ p.title | htmlescape }}</a></b><br>{{ p.date }}<br>{{ p.venue | htmlescape }}<br>{{ p.address | htmlescape }}<br>{{ p.city | htmlescape }}, {{ p.country | htmlescape }}').addTo(markers);
|
|
{% endif %}{% endfilter_for %}
|
|
|
|
map.addLayer(markers);
|
|
</script>
|
|
|
|
{% case page.lang %}
|
|
{% when 'ar' or 'bg' or 'de' or 'es' or 'fa' or 'fr' or 'id' or 'it' or 'nl' or 'pl' or 'ru' or 'tr' or 'zh_CN' or 'zh_TW' %}
|
|
{% else %}
|
|
<h2>{% translate upcoming %}</h2>
|
|
{% endcase %}
|
|
<ul>
|
|
{% filter_for p in site.conferences sort_by:date %}
|
|
<li>
|
|
{{ p.date | date:"%Y-%m-%d" }} - <a href="{{ p.link | htmlescape }}">{{ p.title | htmlescape }}</a> - {{ p.city | htmlescape }}, {{ p.country | htmlescape }}
|
|
</li>
|
|
{% endfilter_for %}
|
|
</ul>
|
|
|
|
<ul>
|
|
<li>{% translate meetupgroup %}</li>
|
|
<li>{% translate meetupbitcointalk %}</li>
|
|
<li>{% translate meetupwiki %}</li>
|
|
</ul>
|