diff --git a/site/crapaud-fou.js b/site/crapaud-fou.js index e729563..de13a8d 100644 --- a/site/crapaud-fou.js +++ b/site/crapaud-fou.js @@ -38,4 +38,24 @@ $(document).ready(function() { }); }); + // tiki + $.getJSON("data/wiki.json", function(data) { + $(".wiki .total .crapauds").text(data.crapauds.total); + $(".wiki .total .pages").text(data.pages.total); + $(".wiki .total .photos").text(data.photos.total); + $(".wiki .recent .crapauds").text(data.crapauds.recent); + $(".wiki .recent .pages").text(data.pages.recent); + $(".wiki .recent .photos").text(data.photos.recent); + $(".wiki ul").text(""); + $.each(data.pages.liste, function(index, idee) { + var link = $("") + .attr("href", "https://wiki.crapaud-fou.org/" + index) + .attr("class", "list-item") + .attr("title", idee) + .text(idee); + var li = $("
  • ").append(link); + $(".wiki ul").append(li); + }); + }); + }); \ No newline at end of file diff --git a/site/data/wiki.json b/site/data/wiki.json new file mode 100644 index 0000000..432f059 --- /dev/null +++ b/site/data/wiki.json @@ -0,0 +1,26 @@ +{ + "crapauds": { + "total": 163, + "recent": 0 + }, + "pages": { + "total": 133, + "recent": 0, + "liste": [ + "Biblio Semourais", + "NO-GAFAM", + "Terre de convergence", + "Rencontres", + "Kit semourais pour monter une pépinière participative", + "Assises Debout la Maurienne", + "Cohortes", + "Cohorte Lyon St Etienne", + "Semourais", + "Les atouts de la méthode Miyawaki" + ] + }, + "photos": { + "total": 880, + "recent": 0 + } +} \ No newline at end of file diff --git a/site/data/wiki.sample.json b/site/data/wiki.sample.json new file mode 100644 index 0000000..432f059 --- /dev/null +++ b/site/data/wiki.sample.json @@ -0,0 +1,26 @@ +{ + "crapauds": { + "total": 163, + "recent": 0 + }, + "pages": { + "total": 133, + "recent": 0, + "liste": [ + "Biblio Semourais", + "NO-GAFAM", + "Terre de convergence", + "Rencontres", + "Kit semourais pour monter une pépinière participative", + "Assises Debout la Maurienne", + "Cohortes", + "Cohorte Lyon St Etienne", + "Semourais", + "Les atouts de la méthode Miyawaki" + ] + }, + "photos": { + "total": 880, + "recent": 0 + } +} \ No newline at end of file