지창언

menu_api complete

...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
54 <div class="text-center my-5"> 54 <div class="text-center my-5">
55 <h1 class="fw-bolder mb-3">휴게소 메뉴 정보</h1> 55 <h1 class="fw-bolder mb-3">휴게소 메뉴 정보</h1>
56 <p class="lead fw-normal text-muted mb-4">Just search the name of the rest stop,<br>You'll find out what kind of food there is at the rest area.</p> 56 <p class="lead fw-normal text-muted mb-4">Just search the name of the rest stop,<br>You'll find out what kind of food there is at the rest area.</p>
57 - <p><h3>검색할 휴게소의 이름을 입력하세요</h3></p> 57 +
58 <div class="dropdown"> 58 <div class="dropdown">
59 59
60 <button class ="btn btn-primary dropdown-toggle " id="highway" data-bs-toggle="dropdown"> 60 <button class ="btn btn-primary dropdown-toggle " id="highway" data-bs-toggle="dropdown">
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
71 <div class ="dropdown-menu" id = "select_restStop"> 71 <div class ="dropdown-menu" id = "select_restStop">
72 </div> 72 </div>
73 </div> 73 </div>
74 - <input type="text" placeholder="내용을 입력하세요" id="menuname"><input type="button" onclick="Showmenu()" value="확인"> 74 + <!--<input type="text" placeholder="내용을 입력하세요" id="menuname"><input type="button" onclick="Showmenu()" value="확인">-->
75 </a> 75 </a>
76 </div> 76 </div>
77 </div> 77 </div>
...@@ -416,7 +416,7 @@ ...@@ -416,7 +416,7 @@
416 } 416 }
417 417
418 function Showmenu(rest_name) { 418 function Showmenu(rest_name) {
419 - menuname = document.getElementById('menuname').value 419 +
420 console.log(rest_name); 420 console.log(rest_name);
421 fetch('http://data.ex.co.kr/openapi/restinfo/restBestfoodList?key=6806352377&type=json&numOfRows=1000' + '&stdRestNm='+rest_name).then(function(response){ 421 fetch('http://data.ex.co.kr/openapi/restinfo/restBestfoodList?key=6806352377&type=json&numOfRows=1000' + '&stdRestNm='+rest_name).then(function(response){
422 method: 'GET'; 422 method: 'GET';
......