Skip to content

Commit 2095ec9

Browse files
Merge pull request #512 from ElJocho/new_api
moved to new api endpoint
2 parents 43546f8 + ca92f2b commit 2095ec9

File tree

6 files changed

+2
-19
lines changed

6 files changed

+2
-19
lines changed

app/_data/cs.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ nav:
7878
url: "/cs/blog/"
7979
- text: "PROZKOUMAT"
8080
links:
81-
- text: "PROFILY UŽIVATELŮ"
82-
url: "http://www.missingmaps.org/users/"
83-
- text: "ŽEBŘÍČKY"
84-
url: "http://www.missingmaps.org/leaderboards/"
8581
- text: "STATISTIKY"
8682
url: "/cs/statistiky/"
8783

app/_data/en.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ nav:
7878
url: "/blog/"
7979
- text: "EXPLORE"
8080
links:
81-
- text: "USER PROFILES"
82-
url: "http://www.missingmaps.org/users/"
83-
- text: "LEADERBOARDS"
84-
url: "http://www.missingmaps.org/leaderboards/"
8581
- text: "STATISTICS"
8682
url: "/statistics/"
8783

app/_data/es.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ nav:
7878
url: "/es/blog/"
7979
- text: "EXPLORAR"
8080
links:
81-
- text: "PERFIL DE LOS CONTRIBUIDORES"
82-
url: "http://www.missingmaps.org/users/"
83-
- text: "TABLA DE LÍDERES" #######traduction pas top ###
84-
url: "http://www.missingmaps.org/leaderboards/"
8581
- text: "ESTADÍSTICAS"
8682
url: "/es/statistics/"
8783

app/_data/fr.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ nav:
7878
url: "/fr/blog/"
7979
- text: "EXPLORER"
8080
links:
81-
- text: "PROFILS DES CONTRIBUTEURS"
82-
url: "http://www.missingmaps.org/users/"
83-
- text: "PALMARES"
84-
url: "http://www.missingmaps.org/leaderboards/"
8581
- text: "STATISTIQUES"
8682
url: "/fr/statistiques/"
8783

app/_includes/header.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
{% else %}
3232
{% assign pg = site.pages | where:"lang",{{loc}} | where:"id",page.id | first %}
3333
{% endif %}
34-
3534
<a href="{{site.baseurl}}{{pg.url}}">
3635
<div class="nav-item item-centered">{{loc}}</div>
3736
</a>

app/assets/scripts/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ the root Missing Maps API endpoint.
44
*/
55

66
const xmlhttp = new XMLHttpRequest();
7-
const url = "https://osm-stats-production-api.azurewebsites.net/stats/missingmaps";
7+
const url = "https://stats.now.ohsome.org/api/stats/missingmaps";
88

99
xmlhttp.onreadystatechange = function() {
1010
if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
@@ -18,7 +18,7 @@ xmlhttp.send();
1818
function updateStatistics(stats) {
1919
["users", "edits", "buildings", "roads"].forEach(function(cat) {
2020
document.getElementById("stats-" + cat + "Count").innerHTML = Math.round(
21-
stats[cat]
21+
stats.result[cat]
2222
).toLocaleString();
2323
});
2424
}

0 commit comments

Comments
 (0)