Skip to content

Instantly share code, notes, and snippets.



Last active May 11, 2018
What would you like to do?
Rallye: Spendenaktionen Mini-Übersicht
<!doctype html>
<html lang="de">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="" crossorigin="anonymous">
<script src="" crossorigin="anonymous"></script>
<h1>Lade Daten …</h1>
// Headline
var Datum = new Date();
var Monat = Datum.getMonth() + 1;
$('h1').text("Ralley-Daten vom " + Datum.getDate() + "." + Monat + "." + Datum.getFullYear());
// Tabelle
var ids_from_url_hash = window.location.hash.replace('#','').split(',');
$.each(ids_from_url_hash, function(index, value) {
$(document).ready(function () {
$.getJSON(""+value+".json", function(data) {
$("#container").append('<tr><td>''</td><td><a href="''" target="_blank">'+data.title+'</a></td><td>'+data.donated_amount_in_cents/100+' €</td></tr>');
<table class="table" id="container">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment