-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheeuu.html
More file actions
51 lines (48 loc) · 1.91 KB
/
eeuu.html
File metadata and controls
51 lines (48 loc) · 1.91 KB
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
47
48
49
50
51
---
# 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: Estados Unidos
---
{% assign allloclist = site.data.locations | where: "country", "Estados Unidos" | where_exp: "loc", "loc.state != 'Puerto Rico'" %}
{% assign filtered_state = allloclist | map: 'state' | uniq | sort %}
{% for _state in filtered_state %}
{% assign loclist = allloclist | where: "state", _state | sort: 'name' %}
{% assign filtered_cities = loclist | where: "state", _state | map: 'city' | uniq | sort %}
<h3>{{ _state }}</h3>
{% for _city in filtered_cities %}
<table class="tblblock">
<caption>{{ _city }}</caption>
<tbody>
{% assign filtered_locs = loclist | where: "city", _city %}
{% 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 %}
{% endfor %}
<script src='/assets/js/utils.js'></script>