Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김민규
/
rest_stop_list
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
지창언
2022-06-02 12:34:24 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4be1a56549fbaca3534c29bcb8999a5fb81e4e2d
4be1a565
1 parent
8cb03028
menu_api complete
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
app/views/menu.html
app/views/menu.html
View file @
4be1a56
...
...
@@ -54,7 +54,7 @@
<div
class=
"text-center my-5"
>
<h1
class=
"fw-bolder mb-3"
>
휴게소 메뉴 정보
</h1>
<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>
<p><h3>
검색할 휴게소의 이름을 입력하세요
</h3></p>
<div
class=
"dropdown"
>
<button
class =
"btn btn-primary dropdown-toggle "
id=
"highway"
data-bs-toggle=
"dropdown"
>
...
...
@@ -71,7 +71,7 @@
<div
class =
"dropdown-menu"
id =
"select_restStop"
>
</div>
</div>
<
input
type=
"text"
placeholder=
"내용을 입력하세요"
id=
"menuname"
><input
type=
"button"
onclick=
"Showmenu()"
value=
"확인"
>
<
!--<input type="text" placeholder="내용을 입력하세요" id="menuname"><input type="button" onclick="Showmenu()" value="확인">--
>
</a>
</div>
</div>
...
...
@@ -416,7 +416,7 @@
}
function
Showmenu
(
rest_name
)
{
menuname
=
document
.
getElementById
(
'menuname'
).
value
console
.
log
(
rest_name
);
fetch
(
'http://data.ex.co.kr/openapi/restinfo/restBestfoodList?key=6806352377&type=json&numOfRows=1000'
+
'&stdRestNm='
+
rest_name
).
then
(
function
(
response
){
method
:
'GET'
;
...
...
Please
register
or
login
to post a comment