Skip to content
Snippets Groups Projects
Verified Commit 9de2d5c9 authored by Robert Metcalf's avatar Robert Metcalf
Browse files

enable noscript message and open website in new tab

parent f138bc8a
Branches interactive-map
No related tags found
2 merge requests!8Allow working spaces to be added,!6Add interactive map
......@@ -12,7 +12,7 @@ for (let workspace of mapData) {
escapeHTML(workspace.phoneNumber)
}</a></div><div>Email: <a href="mailto:${ escapeHTML(workspace.email) }">${
escapeHTML(workspace.email)
}</a></div><div>Website: <a href="${ escapeHTML(workspace.website) }">${
}</a></div><div>Website: <a href="${ escapeHTML(workspace.website) }" target="_blank">${
escapeHTML(workspace.website)
}</a></div><div>${ escapeHTML(workspace.address) }</div></div>`);
}
......
......@@ -4,10 +4,10 @@
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""/>
<!-- Make sure you put this AFTER Leaflet's CSS -->
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""></script>
<noscript>JavaScript must be supported and enabled in the browser to support interactive maps!</noscript>
<script>var mapData = {{ json|safe }};</script>
<div id="map"></div>
<script src="/static/scripts/map.js"></script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment