Toggle navigation
Toggle navigation
This project
Loading...
Sign in
조인천
/
Youtube_MPL
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
조인천
2019-06-03 13:27:51 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
85afa5110acd35ff5ad823c5a3223c9d69d098e0
85afa511
1 parent
d98526ea
nav기능
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
5 deletions
now_user.json
public/javascripts/login.js
public/javascripts/todo.js
routes/login.js
user_list.json
views/index.ejs
now_user.json
0 → 100644
View file @
85afa51
{
"list"
:[
"1"
]}
\ No newline at end of file
public/javascripts/login.js
View file @
85afa51
...
...
@@ -15,7 +15,7 @@ $(document).ready(function(){
}
var
Info
=
{
'userId'
:
$
(
'#userid'
).
val
(),
'password'
:
$
(
'#password'
).
val
()
'password'
:
$
(
'#password'
).
val
()
}
$
.
ajax
(
'/LogInForm'
,{
'method'
:
'GET'
,
...
...
@@ -33,7 +33,7 @@ $(document).ready(function(){
}
}
})
})
})
$
(
'#makeInfo'
).
click
(
function
(
e
){
location
.
href
=
'/signup'
;
})
...
...
public/javascripts/todo.js
View file @
85afa51
...
...
@@ -20,7 +20,7 @@ $(document).ready(function () {
};
get_list
();
$
(
'.form-inline button'
).
click
(
function
()
{
// 새로운 할 일 추가하기
var
$getVal
=
$
(
'#new_todo'
).
val
();
var
$getVal2
=
$
(
'#count'
).
val
();
...
...
routes/login.js
View file @
85afa51
...
...
@@ -2,7 +2,7 @@ var fs = require('fs');
var
request
=
require
(
'request'
);
exports
.
LogInForm
=
function
(
req
,
res
){
fs
.
exists
(
'./user_list.json'
,
function
(
exists
)
{
// ToDo 목록 존재 확인
fs
.
exists
(
'./user_list.json'
,
function
(
exists
)
{
// ToDo 목록 존재 확인
if
(
exists
)
{
fs
.
readFile
(
'./user_list.json'
,
{
'encoding'
:
'utf8'
...
...
user_list.json
View file @
85afa51
{
"list"
:[{
"fname"
:
"김경훈"
,
"userId"
:
"kkh115505@naver.com"
,
"API"
:
"abcdefg"
,
"password"
:
"1234"
},{
"fname"
:
"조인천"
,
"userId"
:
"dlscjs5362@naver.com"
,
"API"
:
"AIzaSyCTR9nHa9PheDMJO9O91Oj8HRJcu81bP_M"
,
"password"
:
"asd"
}]}
\ No newline at end of file
{
"list"
:[{
"fname"
:
"김경훈"
,
"userId"
:
"kkh115505@naver.com"
,
"API"
:
"AIzaSyCTR9nHa9PheDMJO9O91Oj8HRJcu81bP_M"
,
"password"
:
"1234"
},{
"fname"
:
"조인천"
,
"userId"
:
"dlscjs5362@naver.com"
,
"API"
:
"asd"
,
"password"
:
"asd"
}]}
\ No newline at end of file
...
...
views/index.ejs
View file @
85afa51
...
...
@@ -4,8 +4,49 @@
<title>
<
%= title %>
</title>
<link
rel=
"stylesheet"
href=
"/stylesheets/style.css"
/>
<link
rel=
"stylesheet"
href=
"/bootstrap.min.css"
/>
<meta
charset=
"utf-8"
/>
<meta
name=
"description"
content=
"The Overflowing church website's main page"
/>
<meta
name=
"author"
content=
"unikys@gmail.com"
/>
<style>
#topMenu
{
height
:
30px
;
width
:
850px
;
}
#topMenu
ul
li
{
list-style
:
none
;
color
:
white
;
background-color
:
#2d2d2d
;
float
:
left
;
line-height
:
30px
;
vertical-align
:
middle
;
text-align
:
center
;
}
#topMenu
.menuLink
{
text-decoration
:
none
;
color
:
white
;
display
:
block
;
width
:
150px
;
font-size
:
12px
;
font-weight
:
bold
;
font-family
:
"Trebuchet MS"
;
}
#topMenu
.menuLink
:hover
{
color
:
red
;
background-color
:
#4d4d4d
;
}
</style>
</head>
<body>
<nav
id=
"topMenu"
>
<ul>
<li><a
class=
"menuLink"
href=
"https://www.youtube.com/"
target =
"_blank"
><img
src =
"http://tech.kobeta.com/wp-content/uploads/2018/08/2-1.jpg"
width =
150
></a></li>
<li>
|
</li>
<li><a
class=
"menuLink"
href=
"/"
>
로그아웃|
</a></li>
</ul>
</nav>
<h1>
<
%= title %>
</h1>
<p>
Welcome to
<
%= title %>
</p>
<form
class=
"form-inline"
>
<!-- 새로운 ToDo 항목 추가 -->
...
...
@@ -16,7 +57,9 @@
<input
type=
"number"
class=
"form-control"
id=
"count"
placeholder =
"갯수"
>
</div>
<button
type=
"button"
class=
"btn btn-primary"
>
검색
</button>
</form>
<table
class=
"table"
>
<!-- ToDo 목록 -->
<thead>
<tr>
...
...
Please
register
or
login
to post a comment