Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이하영
/
YTMT
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
안형준
2018-12-02 18:39:34 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7b04b02a1b6d2f187bf87eeb1a35eccc14c6ce1a
7b04b02a
1 parent
6d397373
오늘 업데이트 됬으면 오늘 업데이트됨 table에 O표시를 나도록 추가함
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
3 deletions
app.js
views/mytoons.ejs
app.js
View file @
7b04b02
...
...
@@ -42,9 +42,9 @@ app.use(express.static(path.join(__dirname, 'public')));
connection
=
mysql
.
createConnection
({
host
:
'localhost'
,
user
:
'root'
,
password
:
'
password
'
,
password
:
'
6377
'
,
port
:
3306
,
database
:
'
ytmt
'
database
:
'
YTMT
'
});
app
.
use
(
session
({
...
...
views/mytoons.ejs
View file @
7b04b02
...
...
@@ -28,7 +28,8 @@
<h1>
내툰
</h1>
<p>
추가한 리스트
</p>
<a
href=
"/auth/logout/kakao"
>
로그아웃
</a>
<a
href=
"/setting/"
>
수정하기
</a>
<br>
<a
href=
"/setting/"
><img
src =
"/images/basket.png"
height=
"50"
witdh=
"50"
>
웹툰 담기
</a>
<table>
<tr>
<th>
썸네일
</th>
...
...
@@ -36,6 +37,7 @@
<th>
요일
</th>
<th>
사이트
</th>
<th>
바로가기
</th>
<th>
오늘 업데이트됨
</th>
</tr>
<!--로그인한 회원이 내툰에 웹툰이 없을시-->
<
%if (mytoons.length==0){
...
...
@@ -49,6 +51,79 @@
<td
class=
"week"
>
<
%= mytoons[i].week.toLowerCase() %>
</td>
<td
class=
"site"
>
<
%= mytoons[i].site %>
</td>
<td
class=
"webtoon_link"
><a
href=
"<%=mytoons[i].webtoon_link%>"
>
바로가기
</a></td>
<td
class=
"Updated"
>
<
% var d = new Date();
if(d.getDay() == 0
&&
mytoons[i].week == "sun")
{ %>
O
<
%} %>
<
%
if(d.getDay() == 0
&&
mytoons[i].week == "SUN")
{ %>
O
<
%} %>
<
%
if(d.getDay() == 1
&&
mytoons[i].week == "mon")
{ %>
O
<
%} %>
<
%
if(d.getDay() == 1
&&
mytoons[i].week == "MON")
{ %>
O
<
%} %>
<
%
if(d.getDay() == 2
&&
mytoons[i].week == "tue")
{ %>
O
<
%} %>
<
%
if(d.getDay() == 2
&&
mytoons[i].week == "TUE")
{ %>
O
<
%} %>
<
%
if(d.getDay() == 3
&&
mytoons[i].week == "wed")
{ %>
O
<
%} %>
<
%
if(d.getDay() == 3
&&
mytoons[i].week == "WED")
{ %>
O
<
%} %>
<
%
if(d.getDay() == 4
&&
mytoons[i].week == "thu")
{ %>
O
<
%} %>
<
%
if(d.getDay() == 4
&&
mytoons[i].week == "THU")
{ %>
O
<
%} %>
<
%
if(d.getDay() == 5
&&
mytoons[i].week == "fri")
{ %>
O
<
%} %>
<
%
if(d.getDay() == 5
&&
mytoons[i].week == "FRI")
{ %>
O
<
%} %>
<
%
if(d.getDay() == 6
&&
mytoons[i].week == "sat")
{ %>
O
<
%} %>
<
%
if(d.getDay() == 6
&&
mytoons[i].week == "SAT")
{ %>
O
<
%} %>
</td>
</tr>
<
% } %>
...
...
Please
register
or
login
to post a comment