anchor.diff:      <div id="map" style="width:100%; height:100vh"></div>
   
       <script type="text/javascript">
  +
       var vendings = JSON.parse('<%= raw @vendings.to_json %>');
  -    // document.write('<%= raw @vendings.to_json %>');
  -
  -    // document.write(vendings.length);
   
       function attachMessage(marker, msg) {
         google.maps.event.addListener(marker, 'click', function(event) {
  
positive.code: </html>
  
  <script>
  $(document).ready(function () {
      // 向き
      var sides = ["left", "top", "right", "bottom"];
  
negative.code: </script>
  
  <script type="text/javascript">
  function FormSubmit() {
    var target = document.getElementById("form01");
    target.method = "get";
    target.submit();
  }
  
  $(function(){
      $('#drink li').click(function(){
          var index = $(this).index() + 1;
          var text = $(this).text();
  
          document.getElementById("name").defaultValue = text.trim();
      });
  });
  </script>
  