조인천

nav기능

1 +{"list":["1"]}
...\ No newline at end of file ...\ No newline at end of file
...@@ -15,7 +15,7 @@ $(document).ready(function(){ ...@@ -15,7 +15,7 @@ $(document).ready(function(){
15 } 15 }
16 var Info={ 16 var Info={
17 'userId': $('#userid').val(), 17 'userId': $('#userid').val(),
18 - 'password' : $('#password').val() 18 + 'password' : $('#password').val()
19 } 19 }
20 $.ajax('/LogInForm',{ 20 $.ajax('/LogInForm',{
21 'method': 'GET', 21 'method': 'GET',
...@@ -33,7 +33,7 @@ $(document).ready(function(){ ...@@ -33,7 +33,7 @@ $(document).ready(function(){
33 } 33 }
34 } 34 }
35 }) 35 })
36 -}) 36 + })
37 $('#makeInfo').click(function(e){ 37 $('#makeInfo').click(function(e){
38 location.href='/signup'; 38 location.href='/signup';
39 }) 39 })
......
...@@ -20,7 +20,7 @@ $(document).ready(function () { ...@@ -20,7 +20,7 @@ $(document).ready(function () {
20 }; 20 };
21 21
22 get_list(); 22 get_list();
23 - 23 +
24 $('.form-inline button').click(function () { // 새로운 할 일 추가하기 24 $('.form-inline button').click(function () { // 새로운 할 일 추가하기
25 var $getVal = $('#new_todo').val(); 25 var $getVal = $('#new_todo').val();
26 var $getVal2 = $('#count').val(); 26 var $getVal2 = $('#count').val();
......
...@@ -2,7 +2,7 @@ var fs = require('fs'); ...@@ -2,7 +2,7 @@ var fs = require('fs');
2 var request = require('request'); 2 var request = require('request');
3 3
4 exports.LogInForm=function(req,res){ 4 exports.LogInForm=function(req,res){
5 - fs.exists('./user_list.json', function (exists) { // ToDo 목록 존재 확인 5 + fs.exists('./user_list.json', function (exists) { // ToDo 목록 존재 확인
6 if(exists) { 6 if(exists) {
7 fs.readFile('./user_list.json', { 7 fs.readFile('./user_list.json', {
8 'encoding': 'utf8' 8 'encoding': 'utf8'
......
1 -{"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 ...\ No newline at end of file
1 +{"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 ...\ No newline at end of file
......
...@@ -4,8 +4,49 @@ ...@@ -4,8 +4,49 @@
4 <title><%= title %></title> 4 <title><%= title %></title>
5 <link rel="stylesheet" href="/stylesheets/style.css" /> 5 <link rel="stylesheet" href="/stylesheets/style.css" />
6 <link rel="stylesheet" href="/bootstrap.min.css" /> 6 <link rel="stylesheet" href="/bootstrap.min.css" />
7 + <meta charset="utf-8"/>
8 + <meta name="description" content="The Overflowing church website's main page" />
9 + <meta name="author" content="unikys@gmail.com" />
10 + <style>
11 + #topMenu {
12 + height: 30px;
13 + width: 850px;
14 + }
15 +
16 + #topMenu ul li {
17 + list-style: none;
18 + color: white;
19 + background-color: #2d2d2d;
20 + float: left;
21 + line-height: 30px;
22 + vertical-align: middle;
23 + text-align: center;
24 + }
25 +
26 + #topMenu .menuLink {
27 + text-decoration:none;
28 + color: white;
29 + display: block;
30 + width: 150px;
31 + font-size: 12px;
32 + font-weight: bold;
33 + font-family: "Trebuchet MS";
34 + }
35 + #topMenu .menuLink:hover {
36 + color: red;
37 + background-color: #4d4d4d;
38 + }
39 +
40 + </style>
7 </head> 41 </head>
8 <body> 42 <body>
43 + <nav id="topMenu" >
44 + <ul>
45 + <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>
46 + <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|</li>
47 + <li><a class="menuLink" href="/">로그아웃|</a></li>
48 + </ul>
49 + </nav>
9 <h1><%= title %></h1> 50 <h1><%= title %></h1>
10 <p>Welcome to <%= title %></p> 51 <p>Welcome to <%= title %></p>
11 <form class="form-inline"> <!-- 새로운 ToDo 항목 추가 --> 52 <form class="form-inline"> <!-- 새로운 ToDo 항목 추가 -->
...@@ -16,7 +57,9 @@ ...@@ -16,7 +57,9 @@
16 <input type="number"class="form-control" id="count" placeholder ="갯수"> 57 <input type="number"class="form-control" id="count" placeholder ="갯수">
17 </div> 58 </div>
18 <button type="button" class="btn btn-primary">검색</button> 59 <button type="button" class="btn btn-primary">검색</button>
60 +
19 </form> 61 </form>
62 +
20 <table class="table"> <!-- ToDo 목록 --> 63 <table class="table"> <!-- ToDo 목록 -->
21 <thead> 64 <thead>
22 <tr> 65 <tr>
......