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
min1925k@gmail.com
2022-06-02 19:52:44 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5148efb413063598d29657ec6a71b50cb353f125
5148efb4
1 parent
49666f76
Password **, index
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
15 deletions
app/views/index.ejs
app/views/login.ejs
app/views/signup.ejs
app/views/index.ejs
View file @
5148efb
<%- include('./header.ejs') %>
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta
name=
"description"
content=
""
/>
<meta
name=
"author"
content=
""
/>
<title>
Modern Business - Start Bootstrap Template
</title>
<!-- Favicon-->
<link
rel=
"icon"
type=
"image/x-icon"
href=
"assets/favicon.ico"
/>
<!-- Bootstrap icons-->
<link
href=
"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css"
rel=
"stylesheet"
/>
<!-- Core theme CSS (includes Bootstrap)-->
<link
href=
"css/styles.css"
rel=
"stylesheet"
/>
<script
type=
"text/javascript"
src=
"//dapi.kakao.com/v2/maps/sdk.js?appkey=c71c02e15245260c3350614980ba87c8&libraries=services,clusterer,drawing"
></script>
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"
></script>
...
...
@@ -9,7 +20,6 @@
infowindow
.
open
(
map
,
marker
);
};
}
// 인포윈도우를 닫는 클로저를 만드는 함수입니다
function
makeOutListener
(
infowindow
)
{
return
function
()
{
...
...
@@ -200,7 +210,40 @@
}
</script>
</head>
<body
class=
"d-flex flex-column h-100"
>
<main
class=
"flex-shrink-0"
>
<!-- Navigation-->
<nav
class=
"navbar navbar-expand-lg navbar-dark bg-dark"
>
<div
class=
"container px-5"
>
<a
class=
"navbar-brand"
href=
"/"
>
휴게소 정보
</a>
<button
class=
"navbar-toggler"
type=
"button"
data-bs-toggle=
"collapse"
data-bs-target=
"#navbarSupportedContent"
aria-controls=
"navbarSupportedContent"
aria-expanded=
"false"
aria-label=
"Toggle navigation"
><span
class=
"navbar-toggler-icon"
></span></button>
<div
class=
"collapse navbar-collapse"
id=
"navbarSupportedContent"
>
<ul
class=
"navbar-nav ms-auto mb-2 mb-lg-0"
>
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"/"
>
Home
</a></li>
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"/menu"
>
휴게소 메뉴
</a></li>
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"/weather"
>
날씨
</a></li>
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"/lpg"
>
LPG
</a></li>
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"/post"
>
Board
</a></li>
<
% if(session.sessId){ %>
<li
class=
"nav-item"
><a
class=
"nav-link"
href=
"/logout"
>
Log-Out
</a></li>
<
% } else { %>
<li
class=
"nav-item dropdown"
>
<a
class=
"nav-link dropdown-toggle"
id=
"navbarDropdownLogin"
href=
"#"
role=
"button"
data-bs-toggle=
"dropdown"
aria-expanded=
"false"
>
Login
</a>
<ul
class=
"dropdown-menu dropdown-menu-end"
aria-labelledby=
"navbarDropdownLogin"
>
<li><a
class=
"dropdown-item"
href=
"/login"
>
Login
</a></li>
<li><a
class=
"dropdown-item"
href=
"/signup"
>
Sign-up
</a></li>
</ul>
</li>
<
% } %>
</ul>
</div>
</div>
</nav>
<!-- Header-->
<header
class=
"bg-dark py-5"
>
<div
class=
"container px-5"
>
...
...
@@ -224,8 +267,6 @@
<script>
// 지도 구현 부분
</script>
<div
id=
"map"
style=
"width:600px;height:400px;"
></div>
<script>
...
...
@@ -245,7 +286,6 @@
// 정상적으로 검색이 완료됐으면
if
(
status
===
kakao
.
maps
.
services
.
Status
.
OK
)
{
var
coords
=
new
kakao
.
maps
.
LatLng
(
result
[
0
].
y
,
result
[
0
].
x
);
// 결과값으로 받은 위치를 마커로 표시합니다
...
...
@@ -264,12 +304,10 @@
</script>
</div>
</div>
</header>
<!--
...
...
@@ -326,7 +364,6 @@
<span
class=
"fw-bold text-primary mx-1"
>
/
</span>
2018102164
<span
class=
"fw-bold text-primary mx-1"
>
</span>
</div>
<img
class=
"rounded-circle me-3"
src=
"https://dummyimage.com/40x40/ced4da/6c757d"
alt=
"..."
/>
<div
class=
"fw-bold"
>
...
...
@@ -334,7 +371,6 @@
<span
class=
"fw-bold text-primary mx-1"
>
/
</span>
2021105623
<span
class=
"fw-bold text-primary mx-1"
>
</span>
</div>
</div>
</div>
...
...
@@ -418,7 +454,6 @@
</div>
</div>
</div>-->
<!-- Call to action
<aside class="bg-primary bg-gradient rounded-3 p-4 p-sm-5 mt-5">
<div class="d-flex align-items-center justify-content-between flex-column flex-xl-row text-center text-xl-start">
...
...
@@ -439,4 +474,23 @@
</section>-->
</main>
<!-- Footer-->
<%- include('./header.ejs') %>
<footer
class=
"bg-dark py-4 mt-auto"
>
<div
class=
"container px-5"
>
<div
class=
"row align-items-center justify-content-between flex-column flex-sm-row"
>
<div
class=
"col-auto"
><div
class=
"small m-0 text-white"
>
Copyright
©
Your Website 2022
</div></div>
<div
class=
"col-auto"
>
<a
class=
"link-light small"
href=
"#!"
>
Privacy
</a>
<span
class=
"text-white mx-1"
>
·
</span>
<a
class=
"link-light small"
href=
"#!"
>
Terms
</a>
<span
class=
"text-white mx-1"
>
·
</span>
<a
class=
"link-light small"
href=
"#!"
>
Contact
</a>
</div>
</div>
</div>
</footer>
<!-- Bootstrap core JS-->
<script
src=
"https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
></script>
<!-- Core theme JS-->
<script
src=
"js/scripts.js"
></script>
</body>
</html>
\ No newline at end of file
...
...
app/views/login.ejs
View file @
5148efb
...
...
@@ -16,7 +16,7 @@
</tr>
<tr>
<td><label>비밀번호</label></td>
<td><input type="
text
" name="password"></td>
<td><input type="
password
" name="password"></td>
</tr>
</table>
<input type="submit" value="전송" name="">
...
...
app/views/signup.ejs
View file @
5148efb
...
...
@@ -24,7 +24,7 @@
</tr>
<tr>
<td><label>비밀번호</label></td>
<td><input type="
text
" name="password"></td>
<td><input type="
password
" name="password"></td>
</tr>
</table>
<input type="submit" value="전송" name="">
...
...
Please
register
or
login
to post a comment