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-03 15:35:40 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0ba3adb6ee045dfae19e8c4519981ad3a69010e0
0ba3adb6
1 parent
b4cfa453
update dropdown button html
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
14 deletions
app/routes/login.js
app/views/index.ejs
app/views/menu.ejs
node_modules/.package-lock.json
package-lock.json
package.json
app/routes/login.js
View file @
0ba3adb
...
...
@@ -55,7 +55,6 @@ router.post('/process', function(req, res) {
res
.
write
(
'<div><p>데이터베이스에 연결하지 못했습니다.</p></div>'
);
res
.
end
();
}
});
//사용자를 인증하는 함수 : 아이디로 먼저 찾고 비밀번호를 그 다음에 비교하도록 함
...
...
app/views/index.ejs
View file @
0ba3adb
...
...
@@ -28,6 +28,18 @@
}
// 고속도로 선택 함수
function
showline
(
lineNumber
){
let
highway_Area
=
document
.
getElementById
(
'highway'
);
if
(
lineNumber
===
'0010'
){
highway_Area
.
innerHTML
=
'경부선'
;
}
else
if
(
lineNumber
===
'0550'
){
highway_Area
.
innerHTML
=
'중앙선'
;
}
else
if
(
lineNumber
===
'0500'
){
highway_Area
.
innerHTML
=
'영동선'
;
}
// 이 위치에 이전에 켜져있는 map을 지우는 기능 넣어야해 ...
var
container
=
document
.
getElementById
(
'map'
);
//지도를 담을 영역의 DOM 레퍼런스
...
...
@@ -253,7 +265,7 @@
<h1
class=
"display-5 fw-bolder text-white mb-2"
>
고속도로선택시 경로와 휴게소가 지도에 표시됩니다.
</h1>
<p
class=
"lead fw-normal text-white-50 mb-4"
>
고속도로를 선택해주세요
</p>
<div
class=
"dropdown"
>
<button
class =
"btn btn-primary dropdown-toggle "
data-bs-toggle=
"dropdown"
>
<button
class =
"btn btn-primary dropdown-toggle "
id=
"highway"
data-bs-toggle=
"dropdown"
>
고속도로 선택
</button>
<div
class =
"dropdown-menu"
>
...
...
app/views/menu.ejs
View file @
0ba3adb
...
...
@@ -314,7 +314,8 @@
}
function Showmenu(rest_name) {
let rest_stop = document.getElementById('rest_stop'); // 해당 줄과 바로 아랫줄은 드랍다운 버튼선택시 해당 휴게소이름을 html에 적용하기 위함입니다.
rest_stop.innerHTML =rest_name;
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';
...
...
node_modules/.package-lock.json
View file @
0ba3adb
...
...
@@ -749,9 +749,9 @@
}
},
"node_modules/mongoose"
:
{
"version"
:
"6.3.
4
"
,
"resolved"
:
"https://registry.npmjs.org/mongoose/-/mongoose-6.3.
4
.tgz"
,
"integrity"
:
"sha512-
UP0azyGMdY+2YNbJUHeHhnVw5vPzCqs4GQDUwHkilif/rwmSZktUQhQWMp1pUgRNeF2JC30vWGLrInZxD7K/Qw
=="
,
"version"
:
"6.3.
5
"
,
"resolved"
:
"https://registry.npmjs.org/mongoose/-/mongoose-6.3.
5
.tgz"
,
"integrity"
:
"sha512-
Ho3b/MK3lFyb87NjzyVwrjCqQ5DuLsIPSMFYDuZjaIJNhZfHNPQIcUDR1RLZ0/l+uznwo0VBu3WSwdu8EfAZTA
=="
,
"dependencies"
:
{
"bson"
:
"^4.6.2"
,
"kareem"
:
"2.3.5"
,
...
...
package-lock.json
View file @
0ba3adb
...
...
@@ -19,7 +19,7 @@
"express-session"
:
"^1.17.3"
,
"html-entities"
:
"^1.2.0"
,
"http"
:
"^0.0.1-security"
,
"mongoose"
:
"^6.3.
4
"
,
"mongoose"
:
"^6.3.
5
"
,
"mysql"
:
"^2.18.1"
,
"path"
:
"^0.12.7"
,
"serve-static"
:
"^1.15.0"
...
...
@@ -770,9 +770,9 @@
}
},
"node_modules/mongoose"
:
{
"version"
:
"6.3.
4
"
,
"resolved"
:
"https://registry.npmjs.org/mongoose/-/mongoose-6.3.
4
.tgz"
,
"integrity"
:
"sha512-
UP0azyGMdY+2YNbJUHeHhnVw5vPzCqs4GQDUwHkilif/rwmSZktUQhQWMp1pUgRNeF2JC30vWGLrInZxD7K/Qw
=="
,
"version"
:
"6.3.
5
"
,
"resolved"
:
"https://registry.npmjs.org/mongoose/-/mongoose-6.3.
5
.tgz"
,
"integrity"
:
"sha512-
Ho3b/MK3lFyb87NjzyVwrjCqQ5DuLsIPSMFYDuZjaIJNhZfHNPQIcUDR1RLZ0/l+uznwo0VBu3WSwdu8EfAZTA
=="
,
"dependencies"
:
{
"bson"
:
"^4.6.2"
,
"kareem"
:
"2.3.5"
,
...
...
@@ -1845,9 +1845,9 @@
}
},
"mongoose"
:
{
"version"
:
"6.3.
4
"
,
"resolved"
:
"https://registry.npmjs.org/mongoose/-/mongoose-6.3.
4
.tgz"
,
"integrity"
:
"sha512-
UP0azyGMdY+2YNbJUHeHhnVw5vPzCqs4GQDUwHkilif/rwmSZktUQhQWMp1pUgRNeF2JC30vWGLrInZxD7K/Qw
=="
,
"version"
:
"6.3.
5
"
,
"resolved"
:
"https://registry.npmjs.org/mongoose/-/mongoose-6.3.
5
.tgz"
,
"integrity"
:
"sha512-
Ho3b/MK3lFyb87NjzyVwrjCqQ5DuLsIPSMFYDuZjaIJNhZfHNPQIcUDR1RLZ0/l+uznwo0VBu3WSwdu8EfAZTA
=="
,
"requires"
:
{
"bson"
:
"^4.6.2"
,
"kareem"
:
"2.3.5"
,
...
...
package.json
View file @
0ba3adb
...
...
@@ -19,7 +19,7 @@
"express-session"
:
"^1.17.3"
,
"html-entities"
:
"^1.2.0"
,
"http"
:
"^0.0.1-security"
,
"mongoose"
:
"^6.3.
4
"
,
"mongoose"
:
"^6.3.
5
"
,
"mysql"
:
"^2.18.1"
,
"path"
:
"^0.12.7"
,
"serve-static"
:
"^1.15.0"
...
...
Please
register
or
login
to post a comment