조인천

nav기능

{"list":["1"]}
\ No newline at end of file
......@@ -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';
})
......
......@@ -20,7 +20,7 @@ $(document).ready(function () {
};
get_list();
$('.form-inline button').click(function () { // 새로운 할 일 추가하기
var $getVal = $('#new_todo').val();
var $getVal2 = $('#count').val();
......
......@@ -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'
......
{"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
......
......@@ -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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</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>
......