
!(function()
{
  var goo = {};
  goo.searchGoo = function(query)
  {
    d3.json('/api/goo/search?' + Object.keys(query).reduce(function(a,k){a.push(k+'='+encodeURIComponent(query[k]));return a},[]).join('&'), function(err,dat)
    {
      if (err != null)
      {
        return;
      }
      d3.select('div#goo ul').selectAll('li').remove();
      var lis = d3.select('div#goo ul')
        .selectAll('li')
        .data(dat.items)
        .enter().append('li')
        .on('click', function(d)
        {
          d3.event.preventDefault();
          d3.select(this)
            .select('span')
            .text(function(d){return d.body;});
        });
      lis.append('div')
        .style('background-color', '‪#‎91c3c9‬')
        .append('a').text(function(d){return d.title;}).attr('href','#');
      lis.append('span');
    });
  }
  if (typeof define === "function" && define.amd) define(goo); else if (typeof module === "object" && module.exports) module.exports = goo;
  this.goo = goo;
}());

@@ -593,16 +593,41 @@
 'span')%0A
+            .append('a')%0A
         
@@ -664,16 +664,120 @@
 .body;%7D)
+%0A            .attr('href','http://oshiete.goo.ne.jp/qa/' + function(d)%7Breturn d.question_id;%7D + '.html')
 ;%0A      

add link for oshiete goo