Merge branch 'master' of http://khuhub.khu.ac.kr/2018102164/rest_stop_list
Showing
7 changed files
with
33 additions
and
13 deletions
README.md
0 → 100644
... | @@ -57,7 +57,6 @@ router.post('/process', function(req, res) { | ... | @@ -57,7 +57,6 @@ router.post('/process', function(req, res) { |
57 | res.write('<div><p>데이터베이스에 연결하지 못했습니다.</p></div>'); | 57 | res.write('<div><p>데이터베이스에 연결하지 못했습니다.</p></div>'); |
58 | res.end(); | 58 | res.end(); |
59 | } | 59 | } |
60 | - | ||
61 | }); | 60 | }); |
62 | 61 | ||
63 | //사용자를 인증하는 함수 : 아이디로 먼저 찾고 비밀번호를 그 다음에 비교하도록 함 | 62 | //사용자를 인증하는 함수 : 아이디로 먼저 찾고 비밀번호를 그 다음에 비교하도록 함 | ... | ... |
... | @@ -28,6 +28,18 @@ | ... | @@ -28,6 +28,18 @@ |
28 | } | 28 | } |
29 | // 고속도로 선택 함수 | 29 | // 고속도로 선택 함수 |
30 | function showline(lineNumber){ | 30 | function showline(lineNumber){ |
31 | + | ||
32 | + | ||
33 | + let highway_Area = document.getElementById('highway'); | ||
34 | + if(lineNumber==='0010'){ | ||
35 | + highway_Area.innerHTML = '경부선'; | ||
36 | + } | ||
37 | + else if(lineNumber==='0550'){ | ||
38 | + highway_Area.innerHTML = '중앙선'; | ||
39 | + } | ||
40 | + else if(lineNumber==='0500'){ | ||
41 | + highway_Area.innerHTML = '영동선'; | ||
42 | + } | ||
31 | // 이 위치에 이전에 켜져있는 map을 지우는 기능 넣어야해 ... | 43 | // 이 위치에 이전에 켜져있는 map을 지우는 기능 넣어야해 ... |
32 | var container = document.getElementById('map'); //지도를 담을 영역의 DOM 레퍼런스 | 44 | var container = document.getElementById('map'); //지도를 담을 영역의 DOM 레퍼런스 |
33 | 45 | ||
... | @@ -253,7 +265,7 @@ | ... | @@ -253,7 +265,7 @@ |
253 | <h1 class="display-5 fw-bolder text-white mb-2">고속도로선택시 경로와 휴게소가 지도에 표시됩니다.</h1> | 265 | <h1 class="display-5 fw-bolder text-white mb-2">고속도로선택시 경로와 휴게소가 지도에 표시됩니다.</h1> |
254 | <p class="lead fw-normal text-white-50 mb-4">고속도로를 선택해주세요</p> | 266 | <p class="lead fw-normal text-white-50 mb-4">고속도로를 선택해주세요</p> |
255 | <div class="dropdown"> | 267 | <div class="dropdown"> |
256 | - <button class ="btn btn-primary dropdown-toggle " data-bs-toggle="dropdown"> | 268 | + <button class ="btn btn-primary dropdown-toggle " id= "highway"data-bs-toggle="dropdown"> |
257 | 고속도로 선택 | 269 | 고속도로 선택 |
258 | </button> | 270 | </button> |
259 | <div class ="dropdown-menu"> | 271 | <div class ="dropdown-menu"> | ... | ... |
This diff is collapsed. Click to expand it.
... | @@ -749,9 +749,9 @@ | ... | @@ -749,9 +749,9 @@ |
749 | } | 749 | } |
750 | }, | 750 | }, |
751 | "node_modules/mongoose": { | 751 | "node_modules/mongoose": { |
752 | - "version": "6.3.4", | 752 | + "version": "6.3.5", |
753 | - "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.3.4.tgz", | 753 | + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.3.5.tgz", |
754 | - "integrity": "sha512-UP0azyGMdY+2YNbJUHeHhnVw5vPzCqs4GQDUwHkilif/rwmSZktUQhQWMp1pUgRNeF2JC30vWGLrInZxD7K/Qw==", | 754 | + "integrity": "sha512-Ho3b/MK3lFyb87NjzyVwrjCqQ5DuLsIPSMFYDuZjaIJNhZfHNPQIcUDR1RLZ0/l+uznwo0VBu3WSwdu8EfAZTA==", |
755 | "dependencies": { | 755 | "dependencies": { |
756 | "bson": "^4.6.2", | 756 | "bson": "^4.6.2", |
757 | "kareem": "2.3.5", | 757 | "kareem": "2.3.5", | ... | ... |
... | @@ -19,7 +19,7 @@ | ... | @@ -19,7 +19,7 @@ |
19 | "express-session": "^1.17.3", | 19 | "express-session": "^1.17.3", |
20 | "html-entities": "^1.2.0", | 20 | "html-entities": "^1.2.0", |
21 | "http": "^0.0.1-security", | 21 | "http": "^0.0.1-security", |
22 | - "mongoose": "^6.3.4", | 22 | + "mongoose": "^6.3.5", |
23 | "mysql": "^2.18.1", | 23 | "mysql": "^2.18.1", |
24 | "path": "^0.12.7", | 24 | "path": "^0.12.7", |
25 | "serve-static": "^1.15.0" | 25 | "serve-static": "^1.15.0" |
... | @@ -770,9 +770,9 @@ | ... | @@ -770,9 +770,9 @@ |
770 | } | 770 | } |
771 | }, | 771 | }, |
772 | "node_modules/mongoose": { | 772 | "node_modules/mongoose": { |
773 | - "version": "6.3.4", | 773 | + "version": "6.3.5", |
774 | - "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.3.4.tgz", | 774 | + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.3.5.tgz", |
775 | - "integrity": "sha512-UP0azyGMdY+2YNbJUHeHhnVw5vPzCqs4GQDUwHkilif/rwmSZktUQhQWMp1pUgRNeF2JC30vWGLrInZxD7K/Qw==", | 775 | + "integrity": "sha512-Ho3b/MK3lFyb87NjzyVwrjCqQ5DuLsIPSMFYDuZjaIJNhZfHNPQIcUDR1RLZ0/l+uznwo0VBu3WSwdu8EfAZTA==", |
776 | "dependencies": { | 776 | "dependencies": { |
777 | "bson": "^4.6.2", | 777 | "bson": "^4.6.2", |
778 | "kareem": "2.3.5", | 778 | "kareem": "2.3.5", |
... | @@ -1845,9 +1845,9 @@ | ... | @@ -1845,9 +1845,9 @@ |
1845 | } | 1845 | } |
1846 | }, | 1846 | }, |
1847 | "mongoose": { | 1847 | "mongoose": { |
1848 | - "version": "6.3.4", | 1848 | + "version": "6.3.5", |
1849 | - "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.3.4.tgz", | 1849 | + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-6.3.5.tgz", |
1850 | - "integrity": "sha512-UP0azyGMdY+2YNbJUHeHhnVw5vPzCqs4GQDUwHkilif/rwmSZktUQhQWMp1pUgRNeF2JC30vWGLrInZxD7K/Qw==", | 1850 | + "integrity": "sha512-Ho3b/MK3lFyb87NjzyVwrjCqQ5DuLsIPSMFYDuZjaIJNhZfHNPQIcUDR1RLZ0/l+uznwo0VBu3WSwdu8EfAZTA==", |
1851 | "requires": { | 1851 | "requires": { |
1852 | "bson": "^4.6.2", | 1852 | "bson": "^4.6.2", |
1853 | "kareem": "2.3.5", | 1853 | "kareem": "2.3.5", | ... | ... |
... | @@ -19,7 +19,7 @@ | ... | @@ -19,7 +19,7 @@ |
19 | "express-session": "^1.17.3", | 19 | "express-session": "^1.17.3", |
20 | "html-entities": "^1.2.0", | 20 | "html-entities": "^1.2.0", |
21 | "http": "^0.0.1-security", | 21 | "http": "^0.0.1-security", |
22 | - "mongoose": "^6.3.4", | 22 | + "mongoose": "^6.3.5", |
23 | "mysql": "^2.18.1", | 23 | "mysql": "^2.18.1", |
24 | "path": "^0.12.7", | 24 | "path": "^0.12.7", |
25 | "serve-static": "^1.15.0" | 25 | "serve-static": "^1.15.0" | ... | ... |
-
Please register or login to post a comment