mapshare link

This commit is contained in:
Ian Gulliver
2025-08-20 23:36:46 -07:00
parent ca4b6238c0
commit e241e4ac0c
2 changed files with 16 additions and 0 deletions

View File

@@ -198,6 +198,21 @@ document.addEventListener('DOMContentLoaded', () => {
</div>
{{end}}
{{if .GARMIN_MAPSHARE_URL}}
<div class="contact">
<a href="{{.GARMIN_MAPSHARE_URL}}">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16.6562 15.4141">
<g>
<rect height="15.4141" opacity="0" width="16.6562" x="0" y="0"/>
<path d="M0.882812 15.1094C1.07812 15.1094 1.28125 15.0391 1.53125 14.8984L5.50781 12.7578L9.82812 15.1797C10.1094 15.3359 10.4141 15.4141 10.7031 15.4141C10.9766 15.4141 11.25 15.3438 11.4844 15.2109L15.5703 12.8906C16.0391 12.6328 16.25 12.2578 16.25 11.7344L16.25 1.21094C16.25 0.632812 15.9297 0.3125 15.3672 0.3125C15.1719 0.3125 14.9688 0.375 14.7109 0.515625L10.5703 2.82031L6.32812 0.21875C6.08594 0.078125 5.8125 0 5.53906 0C5.25781 0 4.97656 0.078125 4.73438 0.21875L0.671875 2.53125C0.210938 2.79688 0 3.17188 0 3.69531L0 14.2031C0 14.7812 0.320312 15.1094 0.882812 15.1094ZM5 11.5156L1.47656 13.4531C1.4375 13.4688 1.39844 13.4922 1.35938 13.4922C1.29688 13.4922 1.25781 13.4453 1.25781 13.3672L1.25781 4C1.25781 3.8125 1.32812 3.67969 1.51562 3.57031L4.71875 1.69531C4.82031 1.64062 4.90625 1.59375 5 1.53906ZM6.25781 11.6406L6.25781 1.70312C6.33594 1.75 6.42969 1.79688 6.50781 1.84375L9.99219 3.96875L9.99219 13.7344C9.88281 13.6719 9.76562 13.6172 9.64844 13.5547ZM11.25 13.875L11.25 3.89062L14.7734 1.96875C14.8125 1.94531 14.8516 1.92969 14.8828 1.92969C14.9531 1.92969 14.9922 1.97656 14.9922 2.05469L14.9922 11.4219C14.9922 11.6172 14.9141 11.75 14.7344 11.8594L11.6016 13.6797C11.4844 13.75 11.3672 13.8203 11.25 13.875Z" fill="white" fill-opacity="0.85"/>
</g>
</svg>
<span id="mapshare">{{.GARMIN_MAPSHARE_URL}}</span>
</a>
<sl-copy-button from="mapshare"></sl-copy-button>
</div>
{{end}}
<div class="contact">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-terminal" viewBox="0 0 16 16">
<path d="M6 9a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 9M3.854 4.146a.5.5 0 1 0-.708.708L4.793 6.5 3.146 8.146a.5.5 0 1 0 .708.708l2-2a.5.5 0 0 0 0-.708z"/>