Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//jashkenas.github.io/underscore/underscore-min.js"></script>
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <div id="fixtures"></div>
</body>
</html>
 
$.ajax({
  type: 'get',
  url: 'http://jsbin.com/zinefu/1.json',
  dataType: 'json'
}).done(function(data){
  data = _.groupBy(data,'matchday');
  $.each(data, function(index, day){
    var matchdatediv = $('<div>');
    var h1 = $('<h1>').html(day[0].matchday);
    matchdatediv.append(h1);
    $.each(day,function(index2, game){
      var div = $('<div>');
      var h4 = $('<h4>').html(game.homeTeam);
      div.append(h4);
      matchdatediv.append(div);
    });
    $('#fixtures').append(matchdatediv);
  });
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
dhirajbodicherlapro
0viewers