anchor.diff:    <table class="table">
     <% @vegetable_stocks.to_a.each do |vegetable_stock| %>
       <% if (veg_count = dish.send(vegetable_stock[0])) != 0 then %>
  -    <tr data-<%= vegetable_stock[0] %>="<%= veg_count %>">
  +    <tr data-<%= vegetable_stock[0] %>="<%= veg_count %>"><!-- data-carrot="0.25" のような形式で野菜の数データに持つ -->
         <td><%= image_tag('veg_' + vegetable_stock[0].to_s + '.png', :size => '32x32') %></td>
         <td><%= vegetable_stock[1] %></td>
         <td><%= veg_count %> 個</td>
  
positive.code:   <% @dishes.each do |dish| %>
    <div class="checkbox-inline">
      <div>
        <%= check_box 'dish', '1', {}, true, false %>
          <h3 class="recipe_title"
              style="background-image:url('<%= dish.img_url %>')">
            <a href="http://recipe.rakuten.co.jp/recipe/<%= dish.recipe_id %>/"><%= dish.recipe_title %></a>
  
negative.code:     }
  });
  
  function check_changed() {
    var will_list = get_will_list();
    myChart.data.datasets[1].data = will_list;
    myChart.update();
  }
  
  function get_will_list() {
    var will_list = new Array();
    for (var j = 0; j < veg_list.length; j++) {
      var vegs = document.querySelectorAll('[data-' + veg_list[j] + ']');
      var veg_count = 0;
      for (veg of vegs) {
        var checkbox = veg.parentNode.parentNode.previousElementSibling.firstElementChild.firstElementChild;
        if (checkbox.checked) {
          veg_count += parseFloat(veg.dataset[veg_list[j]]);
        }
      }
      will_list.push(veg_count);
    }
    return will_list;
  }
  
  </script>
    <!-- /container -->
  