/*global $ */

$( document ).ready(function() {
    
    var $table = $('<table></table>');
    var $thead = $('<thead><tr><th>Datum</th><th>Tijdstip</th><th>Evenement</th><th>Deelnemers</th></tr></thead>');
    var $tbody = $('<tbody></tbody>');

    $table.addClass('koebergTable');
    
    $.getJSON( "https://joostvenema.github.io/kblg/agenda.json", function( data ) {
        $.each(data.items, function(k, v) {
            var $row = $('<tr><td>' + v.start_date + ' </td><td>' + v.start_time + '</td><td>' + v.event_title + '</td><td>' + v.deelnemers + '</td></tr>');
            $tbody.append($row);
        });
    
    $table.append($thead);
    $table.append($tbody);
    
    $('#koebergAgenda').append($table);

    }); 
});

@@ -464,18 +464,43 @@
 _date + 
+%0A                         
 '
- 
 %3C/td%3E%3Ctd
@@ -523,39 +523,198 @@
 e + 
-'%3C/td%3E%3Ctd%3E' + v.event_title + '
+%0A                         '%3C/td%3E%3Ctd%3E%3Ca href=%22https://www.strava.com/clubs/234627/group_events/' + v.event_id +%0A                         '%22%3E' + v.event_title + %0A                         '%3C/a%3E
 %3C/td

Make link to Strava