anchor.diff:  </html>
   
   <script>
  +var getUrlVars = function(){
  +    var vars = {};
  +    var param = location.search.substring(1).split('&');
  +    for(var i = 0; i < param.length; i++) {
  +        var keySearch = param[i].search(/=/);
  +        var key = '';
  +        if(keySearch != -1) key = param[i].slice(0, keySearch);
  +        var val = param[i].slice(param[i].indexOf('=', 0) + 1);
  +        if(key != '') vars[key] = decodeURI(val);
  +    }
  +    return vars;
  +}
  +
  +
  +
  +pulldown_option = document.getElementById("genre").getElementsByTagName('option');
  +  for(i=0; i<pulldown_option.length;i++){
  +    if(pulldown_option[i].value == getUrlVars()["genre"]){
  +    pulldown_option[i].selected = true;
  +    break;
  +  }
  +}
  +
   $(document).ready(function () {
       // 向き
       var sides = ["left", "top", "right", "bottom"];
  
positive.code:     <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) {
  
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>
  