mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
QA: Check HTML Correctness & Fix Existing Errors
- _contrib/bco-htmlproof: check HTML for correctness; fail on any errors - _contrib/bco-htmlproof: accept path for individual page to help debug page problems - (Many files) Convert `&` in numerous elements to `&` - _templates/download.html: use Liquid filter to automatically escape `&` in magnet links. Also premptively tell HTML not to check the magnet link when checking external links (this check is not currently enabled) - _releases/*: Escape `<parameter>` used in multiple Bitcoin Core release notes - _templates/choose-you-wallet.html: change mSigna URL from .../coinvault&referer=bitcoin.org to .../coinvault?referer=bitcoin.org - _templates/community.html: fix duplicate anchors by renaming one anchor - _templates/events.html: move Javascript to separate file because it contains forbidden HTML close tags within the `<script></script>` tags. - (Many files, mostly in _translations/) Fix many broken open tags or missing close tags. - _translatios/zh_TW.yml & ko.yml: fix a total of three invalid characters (control characters)
This commit is contained in:
parent
28d7ef0f1d
commit
ec343d54d1
39 changed files with 96 additions and 87 deletions
22
js/events.js
Normal file
22
js/events.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
layout: null
|
||||
---
|
||||
var zoom=2;
|
||||
var minzoom=1;
|
||||
if(/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))var zoom=minzoom=0;
|
||||
var map = L.map('eventmap',{ 'zoom': zoom, 'minZoom': minzoom, 'center': [20.00, 10.00]});
|
||||
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 %}
|
||||
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 %}
|
||||
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);
|
Loading…
Add table
Add a link
Reference in a new issue