Skip to content

Instantly share code, notes, and snippets.

@k-nut
Created May 19, 2014 20:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k-nut/3790aec07bffc9c04c11 to your computer and use it in GitHub Desktop.
Save k-nut/3790aec07bffc9c04c11 to your computer and use it in GitHub Desktop.
FreakshowActivity
$.getJSON( "./fs132-denk-nicht-in-layern-denk-in-schichten.json", function( data ) {
var items = [];
console.log(data.statistics.tracks);
$.each( data.statistics.tracks, function( key, val ) {
var total = 0;
$.each(val.activity, function(key, val){
total += val[1] - val[0];
});
console.log(val.identifier + ': ' + Math.round(total/60) + ' min');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment