윤혜원

Merge branch 'master' into 'master'

오늘 업데이트 됬으면 오늘 업데이트됨 table에 O표시를 나도록 추가함



See merge request !2
...@@ -42,9 +42,9 @@ app.use(express.static(path.join(__dirname, 'public'))); ...@@ -42,9 +42,9 @@ app.use(express.static(path.join(__dirname, 'public')));
42 connection = mysql.createConnection({ 42 connection = mysql.createConnection({
43 host : 'localhost', 43 host : 'localhost',
44 user : 'root', 44 user : 'root',
45 - password : 'password', 45 + password : '6377',
46 port : 3306, 46 port : 3306,
47 - database : 'ytmt' 47 + database : 'YTMT'
48 }); 48 });
49 49
50 app.use(session({ 50 app.use(session({
......
...@@ -28,7 +28,8 @@ ...@@ -28,7 +28,8 @@
28 <h1>내툰</h1> 28 <h1>내툰</h1>
29 <p>추가한 리스트</p> 29 <p>추가한 리스트</p>
30 <a href="/auth/logout/kakao">로그아웃</a> 30 <a href="/auth/logout/kakao">로그아웃</a>
31 -<a href="/setting/">수정하기</a> 31 +<br>
32 +<a href="/setting/"><img src = "/images/basket.png" height="50" witdh="50">웹툰 담기</a>
32 <table> 33 <table>
33 <tr> 34 <tr>
34 <th>썸네일</th> 35 <th>썸네일</th>
...@@ -36,6 +37,7 @@ ...@@ -36,6 +37,7 @@
36 <th>요일</th> 37 <th>요일</th>
37 <th>사이트</th> 38 <th>사이트</th>
38 <th>바로가기</th> 39 <th>바로가기</th>
40 + <th>오늘 업데이트됨</th>
39 </tr> 41 </tr>
40 <!--로그인한 회원이 내툰에 웹툰이 없을시--> 42 <!--로그인한 회원이 내툰에 웹툰이 없을시-->
41 <%if (mytoons.length==0){ 43 <%if (mytoons.length==0){
...@@ -49,6 +51,79 @@ ...@@ -49,6 +51,79 @@
49 <td class="week"><%= mytoons[i].week.toLowerCase() %></td> 51 <td class="week"><%= mytoons[i].week.toLowerCase() %></td>
50 <td class="site"><%= mytoons[i].site %></td> 52 <td class="site"><%= mytoons[i].site %></td>
51 <td class="webtoon_link"><a href="<%=mytoons[i].webtoon_link%>">바로가기</a></td> 53 <td class="webtoon_link"><a href="<%=mytoons[i].webtoon_link%>">바로가기</a></td>
54 + <td class="Updated">
55 + <% var d = new Date();
56 + if(d.getDay() == 0 && mytoons[i].week == "sun")
57 + { %>
58 + O
59 + <%} %>
60 + <%
61 + if(d.getDay() == 0 && mytoons[i].week == "SUN")
62 + { %>
63 + O
64 + <%} %>
65 + <%
66 + if(d.getDay() == 1 && mytoons[i].week == "mon")
67 + { %>
68 + O
69 + <%} %>
70 + <%
71 + if(d.getDay() == 1 && mytoons[i].week == "MON")
72 + { %>
73 + O
74 + <%} %>
75 + <%
76 + if(d.getDay() == 2 && mytoons[i].week == "tue")
77 + { %>
78 + O
79 + <%} %>
80 + <%
81 + if(d.getDay() == 2 && mytoons[i].week == "TUE")
82 + { %>
83 + O
84 + <%} %>
85 + <%
86 + if(d.getDay() == 3 && mytoons[i].week == "wed")
87 + { %>
88 + O
89 + <%} %>
90 + <%
91 + if(d.getDay() == 3 && mytoons[i].week == "WED")
92 + { %>
93 + O
94 + <%} %>
95 + <%
96 + if(d.getDay() == 4 && mytoons[i].week == "thu")
97 + { %>
98 + O
99 + <%} %>
100 + <%
101 + if(d.getDay() == 4 && mytoons[i].week == "THU")
102 + { %>
103 + O
104 + <%} %>
105 + <%
106 + if(d.getDay() == 5 && mytoons[i].week == "fri")
107 + { %>
108 + O
109 + <%} %>
110 + <%
111 + if(d.getDay() == 5 && mytoons[i].week == "FRI")
112 + { %>
113 + O
114 + <%} %>
115 + <%
116 + if(d.getDay() == 6 && mytoons[i].week == "sat")
117 + { %>
118 + O
119 + <%} %>
120 + <%
121 + if(d.getDay() == 6 && mytoons[i].week == "SAT")
122 + { %>
123 + O
124 + <%} %>
125 + </td>
126 +
52 </tr> 127 </tr>
53 <% } %> 128 <% } %>
54 129
......