-
Notifications
You must be signed in to change notification settings - Fork 0
/
maya.html
46 lines (43 loc) · 1.62 KB
/
maya.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
# Feel free to add content and custom Front Matter to this file.
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout: page
title: Mayagüez
---
{% assign loclist = site.data.locations | where: "state", "Puerto Rico" | where: "city", "Mayagüez" | sort: 'name' %}
{% assign filtered_subs = loclist | map: 'sub' | uniq %}
{% for sub in filtered_subs %}
<table class="tblblock">
<caption>{{ sub }}</caption>
<tbody>
{% assign filtered_locs = loclist | where: "sub", sub %}
{% for loc in filtered_locs %}
<tr>
<th>
{{ loc.name }}
</th>
<td>
<a href="http://maps.google.com/maps?q=loc:{{ loc.latitude }},{{ loc.longitude }}&navigate=yes">
Android/Google Maps
</a>
</td>
<td>
<a href="http://maps.apple.com/?q={{ loc.latitude }},{{ loc.longitude }}&z=10&t=s">
iPhone
</a>
</td>
<td>
<input type="text" value="{{ loc.latitude }},{{ loc.longitude }}" readonly><br>
<button onclick="copyGPS(this.parentNode.firstChild.nextSibling);">Copiar</button>
</td>
<td>
Share via<br>
<a class="cell_share cell_whatsapp" href="whatsapp://send?text={{ loc.name }}: {{ loc.latitude }},{{ loc.longitude }}" data-action="share/whatsapp/share">Whatsapp</a>
<a class="cell_share cell_ios" href="#" onclick="shareText('{{ loc.name }}', '{{ loc.latitude }},{{ loc.longitude }}')">iOS Share</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
<script src='/assets/js/utils.js'></script>