Showing
5 changed files
with
40 additions
and
64 deletions
... | @@ -4,10 +4,10 @@ var path = require('path'); | ... | @@ -4,10 +4,10 @@ var path = require('path'); |
4 | var cookieParser = require('cookie-parser'); | 4 | var cookieParser = require('cookie-parser'); |
5 | var logger = require('morgan'); | 5 | var logger = require('morgan'); |
6 | 6 | ||
7 | -var mainRouter = require('./routes/main') | 7 | +var mainRouter = require('./routes/main'); |
8 | var passRouter = require('./routes/pass'); | 8 | var passRouter = require('./routes/pass'); |
9 | -var searchRouter = require('./routes/search') | 9 | +var searchRouter = require('./routes/search'); |
10 | -var nearRouter = require('./routes/near') | 10 | +var nearRouter = require('./routes/near'); |
11 | var app = express(); | 11 | var app = express(); |
12 | 12 | ||
13 | // view engine setup | 13 | // view engine setup | ... | ... |
... | @@ -41,49 +41,6 @@ lightbox.options.albumLabel = "%1 / %2"; | ... | @@ -41,49 +41,6 @@ lightbox.options.albumLabel = "%1 / %2"; |
41 | 41 | ||
42 | <link rel="stylesheet" type="text/css" href="https://t1.daumcdn.net/tistory_admin/assets/blog/tistory-4143aead47fb3d3c83016433af84643a03241408/blogs/plugins/TistoryProfileLayer/style.css?_version_=tistory-4143aead47fb3d3c83016433af84643a03241408" /> | 42 | <link rel="stylesheet" type="text/css" href="https://t1.daumcdn.net/tistory_admin/assets/blog/tistory-4143aead47fb3d3c83016433af84643a03241408/blogs/plugins/TistoryProfileLayer/style.css?_version_=tistory-4143aead47fb3d3c83016433af84643a03241408" /> |
43 | <script type="text/javascript" src="https://t1.daumcdn.net/tistory_admin/assets/blog/tistory-4143aead47fb3d3c83016433af84643a03241408/blogs/plugins/TistoryProfileLayer/profile.js?_version_=tistory-4143aead47fb3d3c83016433af84643a03241408"></script> | 43 | <script type="text/javascript" src="https://t1.daumcdn.net/tistory_admin/assets/blog/tistory-4143aead47fb3d3c83016433af84643a03241408/blogs/plugins/TistoryProfileLayer/profile.js?_version_=tistory-4143aead47fb3d3c83016433af84643a03241408"></script> |
44 | - <style type="text/css"> | ||
45 | - .another_category { border: 1px solid #E5E5E5; padding: 10px 10px 5px; margin:10px 0; clear: both; } | ||
46 | - .another_category h4 { font-size: 12px !important; margin: 0 !important; border-bottom: 1px solid #E5E5E5 !important; padding: 2px 0 6px !important; } | ||
47 | - .another_category h4 a { font-weight: bold !important; } | ||
48 | - .another_category table { table-layout: fixed; border-collapse: collapse; width: 100% !important; margin-top: 10px !important; } | ||
49 | - * html .another_category table { width: auto !important; } | ||
50 | - *:first-child+html .another_category table { width: auto !important; } | ||
51 | - .another_category th, .another_category td { padding: 0 0 4px !important; } | ||
52 | - .another_category th { text-align: left; font-size: 12px !important; font-weight: normal; word-break: break-all; overflow: hidden; line-height: 1.5; } | ||
53 | - .another_category td { text-align: right; width: 80px; font-size: 11px; } | ||
54 | - .another_category th a { font-weight: normal; text-decoration: none; border: none !important; } | ||
55 | - .another_category th a.current{ font-weight: bold; text-decoration: none !important; border-bottom: 1px solid !important; } | ||
56 | - .another_category th span { font-weight: normal; text-decoration: none; font: 10px Tahoma, Sans-serif; border: none !important; } | ||
57 | - | ||
58 | - .another_category_color_gray, .another_category_color_gray h4 { border-color: #E5E5E5 !important; } | ||
59 | - .another_category_color_gray * { color: #909090 !important; } | ||
60 | - .another_category_color_gray th a.current{border-color:#909090 !important;} | ||
61 | - .another_category_color_gray h4, .another_category_color_gray h4 a { color: #737373 !important; } | ||
62 | - | ||
63 | - | ||
64 | - .another_category_color_red, .another_category_color_red h4 { border-color: #F6D4D3 !important; } | ||
65 | - .another_category_color_red * { color: #E86869 !important; } | ||
66 | - .another_category_color_red th a.current{border-color:#E86869 !important;} | ||
67 | - .another_category_color_red h4, .another_category_color_red h4 a { color: #ED0908 !important; } | ||
68 | - | ||
69 | - | ||
70 | - .another_category_color_green, .another_category_color_green h4 { border-color: #CCE7C8 !important; } | ||
71 | - .another_category_color_green * { color: #64C05B !important; } | ||
72 | - .another_category_color_green th a.current{border-color:#64C05B !important;} | ||
73 | - .another_category_color_green h4, .another_category_color_green h4 a { color: #3EA731 !important; } | ||
74 | - | ||
75 | - | ||
76 | - .another_category_color_blue, .another_category_color_blue h4 { border-color: #C8DAF2 !important; } | ||
77 | - .another_category_color_blue * { color: #477FD6 !important; } | ||
78 | - .another_category_color_blue th a.current{border-color:#477FD6 !important;} | ||
79 | - .another_category_color_blue h4, .another_category_color_blue h4 a { color: #1960CA !important; } | ||
80 | - | ||
81 | - | ||
82 | - .another_category_color_violet, .another_category_color_violet h4 { border-color: #E1CEEC !important; } | ||
83 | - .another_category_color_violet * { color:#9D64C5 !important; } | ||
84 | - .another_category_color_violet th a.current{border-color:#9D64C5 !important;} | ||
85 | - .another_category_color_violet h4, .another_category_color_violet h4 a { color: #7E2CB5 !important; } | ||
86 | - </style> | ||
87 | </head> | 44 | </head> |
88 | 45 | ||
89 | <body id="tt-body-index" class="theme_blue"> | 46 | <body id="tt-body-index" class="theme_blue"> |
... | @@ -116,12 +73,12 @@ lightbox.options.albumLabel = "%1 / %2"; | ... | @@ -116,12 +73,12 @@ lightbox.options.albumLabel = "%1 / %2"; |
116 | <div class="slide_item"> | 73 | <div class="slide_item"> |
117 | <div class="link_slide item-thumbnail" style="background-image:url('https://tistory4.daumcdn.net/tistory/1978677/skinCover/fcb080e7767a4941964dfee78420025e');"> | 74 | <div class="link_slide item-thumbnail" style="background-image:url('https://tistory4.daumcdn.net/tistory/1978677/skinCover/fcb080e7767a4941964dfee78420025e');"> |
118 | <div class="text_slide thema_apply"> | 75 | <div class="text_slide thema_apply"> |
119 | - <strong>PASS-PATH</strong> | 76 | + <strong>Pass-Path</strong> |
120 | <p class="text">여행지와 가고 싶은 장소만 선택하면<br> | 77 | <p class="text">여행지와 가고 싶은 장소만 선택하면<br> |
121 | 경로가 자동으로 완성되는<br> | 78 | 경로가 자동으로 완성되는<br> |
122 | 쉽고 간편한 여행 경로 리커맨더</p> | 79 | 쉽고 간편한 여행 경로 리커맨더</p> |
123 | - <a href="/pass" class="link_detail">경유지</a><br> | 80 | + <a href="/pass" class="link_detail">들를 곳 찾기</a><br> |
124 | - <a href="/near" class="link_detail">현재지</a> | 81 | + <a href="/near" class="link_detail">내 주변 장소</a> |
125 | </div> | 82 | </div> |
126 | </div> | 83 | </div> |
127 | </div> | 84 | </div> | ... | ... |
... | @@ -6,9 +6,9 @@ | ... | @@ -6,9 +6,9 @@ |
6 | <style> | 6 | <style> |
7 | body, html {height: 100%;} | 7 | body, html {height: 100%;} |
8 | .map_wrap, .map_wrap * {margin:0; padding:0;font-family:'Malgun Gothic',dotum,'돋움',sans-serif;font-size:12px;} | 8 | .map_wrap, .map_wrap * {margin:0; padding:0;font-family:'Malgun Gothic',dotum,'돋움',sans-serif;font-size:12px;} |
9 | -.map_wrap {position:relative;width:100%;height:100%;} | 9 | +.map_wrap {position:relative;width:100%;height:95%;} |
10 | -#category {position:absolute;top:10px;left:10px;border-radius: 5px; border:1px solid #909090;box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);background: #fff;overflow: hidden;z-index: 2;} | 10 | +#category {position:absolute;top:30px;left:10px;border-radius: 5px; border:1px solid #909090;box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);background: #fff;overflow: hidden;z-index: 2;} |
11 | -#category li {float:left;list-style: none;width:50px;px;border-right:1px solid #acacac;padding:6px 0;text-align: center; cursor: pointer;} | 11 | +#category li {float:left;list-style: none;width:50px;border-right:1px solid #acacac;padding:6px 0;text-align: center; cursor: pointer;} |
12 | #category li.on {background: #eee;} | 12 | #category li.on {background: #eee;} |
13 | #category li:hover {background: #ffe6e6;border-left:1px solid #acacac;margin-left: -1px;} | 13 | #category li:hover {background: #ffe6e6;border-left:1px solid #acacac;margin-left: -1px;} |
14 | #category li:last-child{margin-right:0;border-right:0;} | 14 | #category li:last-child{margin-right:0;border-right:0;} |
... | @@ -33,12 +33,20 @@ body, html {height: 100%;} | ... | @@ -33,12 +33,20 @@ body, html {height: 100%;} |
33 | .placeinfo .jibun {color:#999;font-size:11px;margin-top:0;} | 33 | .placeinfo .jibun {color:#999;font-size:11px;margin-top:0;} |
34 | </style> | 34 | </style> |
35 | </head> | 35 | </head> |
36 | -<body> | 36 | +<body style="background-color:#cccccc;"> |
37 | -<p style="margin-top:-12px"> | 37 | + <header class="box_header" style="float:left; color: white;"> |
38 | + <div style="font-size:22px;"> | ||
39 | + <a href="/" title="Pass-Path" style="text-decoration:none; color:black; font-family: monospace;"> | ||
40 | + | ||
41 | + Pass-Path | ||
42 | + | ||
43 | + </a> | ||
44 | + </div> | ||
45 | + </header> | ||
46 | +<p> 깃발을 드래그하여 현재 위치를 설정한 후 카테고리를 설정해주세요.</p> | ||
38 | 47 | ||
39 | -</p> | ||
40 | <div class="map_wrap"> | 48 | <div class="map_wrap"> |
41 | - <div id="map" style="width:100%;height:100%;position:relative;overflow:hidden;"></div> | 49 | + <div id="map" style="width:100%;height:95%;position:relative;overflow:hidden;"></div> |
42 | <ul id="category"> | 50 | <ul id="category"> |
43 | <li id="BK9" data-order="0"> | 51 | <li id="BK9" data-order="0"> |
44 | <span class="category_bg bank"></span> | 52 | <span class="category_bg bank"></span> |
... | @@ -67,7 +75,7 @@ body, html {height: 100%;} | ... | @@ -67,7 +75,7 @@ body, html {height: 100%;} |
67 | </ul> | 75 | </ul> |
68 | </div> | 76 | </div> |
69 | 77 | ||
70 | -<script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=비밀&libraries=services"></script> | 78 | +<script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=발급받은 APP KEY 입력&libraries=services"></script> |
71 | <script> | 79 | <script> |
72 | // 마커를 클릭했을 때 해당 장소의 상세정보를 보여줄 커스텀오버레이입니다 | 80 | // 마커를 클릭했을 때 해당 장소의 상세정보를 보여줄 커스텀오버레이입니다 |
73 | var placeOverlay = new kakao.maps.CustomOverlay({zIndex:1}), | 81 | var placeOverlay = new kakao.maps.CustomOverlay({zIndex:1}), | ... | ... |
... | @@ -3,13 +3,24 @@ | ... | @@ -3,13 +3,24 @@ |
3 | <head> | 3 | <head> |
4 | <meta charset="utf-8"> | 4 | <meta charset="utf-8"> |
5 | <title>Pass-Path</title> | 5 | <title>Pass-Path</title> |
6 | - <style>body, html {height: 100%;}</style> | 6 | + <style> |
7 | + body, html {height: 100%;} | ||
8 | + </style> | ||
7 | 9 | ||
8 | </head> | 10 | </head> |
9 | -<body> | 11 | +<body style="background-color:#cccccc;"> |
10 | -<p>출발지와 도착지를 설정해주세요!</p> | 12 | + <header class="box_header" style="float:left; color: white;"> |
11 | - | 13 | + <h1 class="title_logo"> |
12 | -<button type="button" onclick="Search();">검색</button> | 14 | + <a href="/" title="Pass-Path" class="link_logo" style="text-decoration:none; color:black; font-family: monospace;"> |
15 | + | ||
16 | + Pass-Path | ||
17 | + | ||
18 | + </a> | ||
19 | + </h1> | ||
20 | + </header> | ||
21 | +<p> 출발지와 도착지 깃발을 드래그하여 설정</p> | ||
22 | +<div> | ||
23 | +<button type="button" onclick="Search();" style="background-color:#B5B5FF; font-family:Open Sans;">경로 주변 검색</button> | ||
13 | <script> | 24 | <script> |
14 | function Search(){ | 25 | function Search(){ |
15 | var startx = startMarker.getPosition().getLat(); | 26 | var startx = startMarker.getPosition().getLat(); |
... | @@ -18,12 +29,12 @@ | ... | @@ -18,12 +29,12 @@ |
18 | var endy = arriveMarker.getPosition().getLng(); | 29 | var endy = arriveMarker.getPosition().getLng(); |
19 | location.href ='/search?startx='+ startx +'&starty='+ starty +'&endx=' + endx + '&endy=' + endy; | 30 | location.href ='/search?startx='+ startx +'&starty='+ starty +'&endx=' + endx + '&endy=' + endy; |
20 | } | 31 | } |
21 | -</script> | 32 | +</script></div> |
22 | <div id="map" style="width:100%;height:90%;"></div> | 33 | <div id="map" style="width:100%;height:90%;"></div> |
23 | 34 | ||
24 | 35 | ||
25 | 36 | ||
26 | -<script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=비밀"></script> | 37 | +<script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=발급받은 APP KEY 입력"></script> |
27 | <script> | 38 | <script> |
28 | var mapContainer = document.getElementById('map'), // 지도를 표시할 div | 39 | var mapContainer = document.getElementById('map'), // 지도를 표시할 div |
29 | mapOption = { | 40 | mapOption = { | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment