$(function() {
  //blog feed
  getBlogFeed();

});

// blog feed
function getBlogFeed() {
  var blogId = 'feed';
  var url = 'http://bluestripes.mkplus.info/common/json/blog.json';

  $.getJSON(url, function(json) {
    $('#' + blogId).empty();
    
    for (var i=0; i<json.length; i++) {
      $('#' + blogId).append(
        $('<dt>').html(json[i].date)
      );
      $('#' + blogId).append(
        $('<dd>').append(
          $('<a>').attr({'href' : json[i].link, 'target' : '_blank'}).html(json[i].title)
        )
      );
    }
  });
}

