Skip to content

Instantly share code, notes, and snippets.

@martindrapeau
Last active May 8, 2018 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martindrapeau/4c0aade4de9d4016b833e1241780e50c to your computer and use it in GitHub Desktop.
Save martindrapeau/4c0aade4de9d4016b833e1241780e50c to your computer and use it in GitHub Desktop.
Centre Père Marquette - Horaire de la journée
var $amilia = $('<div>');
$('#widget-a72b3d5a-907a-a206-965d-7121034ab07e>.widget-content').append($amilia);
$.get('https://www.amilia.com/PublicApi/centre-pere-marquette/fr/Events').done(function(events) {
var $ul = $('<ul>');
$amilia.append($ul);
for (var i = 0; i < events.length; i++) {
var event = events[i];
$ul.append('<li><a href="' + event.url + '">' + event.title + '</a></li>');
}
});
@martindrapeau
Copy link
Author

Sur cette page http://www.centreperemarquette.ca/, ouvrir la console et copier/coller le code afin de voir la tuile AUJOURD'HUI se remplir.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment