2022-03-05 15:50:21 +00:00
---
layout: default
---
2022-04-23 09:22:31 +00:00
< details open >
< summary > Show Map< / summary >
< div width = "740px" height = "300px" id = "map" > < / div >
< / details >
2022-03-05 15:50:21 +00:00
2022-03-07 07:19:44 +00:00
{{content}}
2022-03-07 06:26:06 +00:00
{% assign zeroPowerBankLocations = 0 %}
2022-03-05 15:50:21 +00:00
< table id = "plugo-data" >
< thead >
< tr >
< th > Address< / th >
< th > Location Type< / th >
< th > < span title = "Number of Powerbanks" > Count< / span > < / th >
< th > Date Added< / th >
< / tr >
< / thead >
< tbody >
{% assign locations = site.data.plugo|sort:'state' %}
{% assign total = 0 %}
{% for row in locations %}
2022-03-29 12:49:28 +00:00
< tr id = "{{row.id}}" >
< td >
{%comment%}
2022-03-05 15:50:21 +00:00
{% assign state_lower_case = row.state|downcase %}
2022-03-07 06:26:06 +00:00
<!-- <td>{{site.data.city[city_lower_case] | default:row.city}}, {{site.data.state[state_lower_case] | default: row.state}}</td> -->
2022-03-29 12:49:28 +00:00
{%endcomment%}
{% include location.html data=row %}
2022-03-05 15:50:21 +00:00
< / td >
< td > {{row.business}}< / td >
< td > {{row.totalAvailablePowerbanks}}< / td >
2022-03-07 06:26:06 +00:00
{% if row.totalAvailablePowerbanks == 0 %}
{% assign zeroPowerBankLocations = zeroPowerBankLocations | plus:1 %}
{% endif %}
2022-03-29 12:49:28 +00:00
< td data-sort = "{{row.createdAt | date_to_xmlschema}}" > {{row.createdAt | date_to_string}}< / td >
2022-03-05 15:50:21 +00:00
{% assign total = total|plus:row.totalAvailablePowerbanks %}
<!-- <td>{%if row.isVisible %}☑{%else%}❌{%endif%}</td> -->
< / tr >
{% endfor %}
< / tbody >
< / table >
< h3 > Statistics< / h3 >
< ul >
< li > Total Available Powerbanks: {{total}}< / li >
< li > Total Locations: {{locations|size}}< / li >
2022-03-07 06:26:06 +00:00
< li > {{zeroPowerBankLocations}} locations with zero powerbanks< / li >
2022-03-07 05:59:57 +00:00
< li > Last Updated: {{site.time | date: "%Y-%m-%d %H:%M" }} IST< / li >
2022-03-07 06:26:06 +00:00
< li > This page is automatically updated 5 times a day, at roughly 0930, 1230, 1530, 1830, 2130 IST< / li >
2022-04-23 09:22:31 +00:00
< li > The map is also available in < a href = "map.geojson" > GeoJSON Format< / a > . You can also view the underlying data directly at < a href = "http://geojson.io/#data=data:text/x-url,https://captnemo.in/plugo/map.geojson" > geojson.io< / a > .
2022-03-05 15:50:21 +00:00
< / ul >
< script src = "https://code.jquery.com/jquery-3.6.0.slim.min.js" integrity = "sha256-u7e5khyithlIdTpu22PHhENmPcRdFiHRjhAuHcs05RI=" crossorigin = "anonymous" > < / script >
2022-03-07 06:16:30 +00:00
< script src = "https://cdn.datatables.net/1.11.5/js/jquery.dataTables.js" integrity = "sha256-04C2SeXF6JtsrsX+sFnI+gFdm56VJdhW49hWm4m+0io=" crossorigin = "anonymous" > < / script >
2022-03-05 15:50:21 +00:00
< script >
let table = new DataTable('#plugo-data', {
"paging": false,
"autoWidth": false,
"info": false
});
< / script >
2022-04-23 09:22:31 +00:00
< link rel = "stylesheet" href = "https://api.mapbox.com/mapbox-gl-js/v2.8.2/mapbox-gl.css" integrity = "sha256-eQmEh0JSFrPkGN9Lge0CpB3ZMAiwuSBq9tQKMURq0do=" crossorigin = "anonymous" >
< script src = "https://api.mapbox.com/mapbox-gl-js/v2.8.2/mapbox-gl.js" integrity = "sha256-s0WzvUEKt3AVyIJQ7kE4w+yqDoZxIiMiW+dImDRo5/E=" crossorigin = "anonymous" > < / script >
< link rel = "stylesheet" type = "text/css" href = "/plugo/assets/style.css" >
< script src = "/plugo/map.js" > < / script >