hljs.initHighlightingOnLoad();

var metrics_url = "https://s3-us-west-1.amazonaws.com/metrics.bioboxes.org-testing/v1/containers.json"

$.getJSON(metrics_url, function(json) {
  var downloads = _.last(json['total']['value']);
  var date      = new Date(Date.parse(_.last(json['total']['collected'])));

  $('.metric #downloads-date').text(strftime('%A %B %o', date));
  $('.metric #downloads-count').text(downloads);
});

hljs.initHighlightingOnLoad();

var metrics_url = "http://metrics.bioboxes.org/v1/containers.json"

$.getJSON(metrics_url, function(json) {
  var downloads = _.last(json['total']['value']);
  $('#downloads-count').text(downloads);
});

Use downloads metrics from metrics.bioboxes.org
Use downloads metrics from metrics.bioboxes.org

Signed-off-by: Michael Barton <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@michaelbarton.me.uk>
