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-11-29 22:06:32 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
07546ee3cf1d5b08abd0c9aabfa6879c4ec58577
07546ee3
1 parent
a5b0a8e9
div 나누고, 이미지아이콘 추가. div접기기능
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
2 deletions
public/images/daumicon.png
public/images/navericon.png
views/index.ejs
public/images/daumicon.png
0 → 100644
View file @
07546ee
16.8 KB
public/images/navericon.png
0 → 100644
View file @
07546ee
36.4 KB
views/index.ejs
View file @
07546ee
...
...
@@ -3,19 +3,40 @@
<head>
<title>
<
%= title %>
</title>
<link
rel=
'stylesheet'
href=
'/stylesheets/style.css'
/>
<script
src=
"http://developers.kakao.com/sdk/js/kakao.min.js"
></script>
<script
src=
"http://developers.kakao.com/sdk/js/kakao.min.js"
>
function
daum_click
()
{
if
(
Daum_webtoons
.
display
==
"none"
)
Daum_webtoons
.
display
==
"block"
if
(
Daum_webtoons
.
display
=
"block"
)
Daum_webtoons
.
display
==
"none"
}
</script>
</head>
<h1>
<
%= title %>
</h1>
<p>
웹툰 리스트
</p>
<a
href=
"/auth/login/kakao"
class=
"btn btn-block btn-lg btn-warning btn_login"
>
로그인
</a>
<br>
<br>
<br>
<br>
<font
size =
60
>
다음 웹툰
</font>
<a
onclick=
"Daum_webtoons.style.display=(Daum_webtoons.style.display=='none')?'block':'none';"
href=
"javascript:void(0)"
>
<img
src =
'/images/daumicon.png'
width=
"83"
height=
"90"
onclick=
"daum_click"
/>
</a>
<div
style=
"display:none"
id=
"Daum_webtoons"
>
<table>
<
%
var current = "";
for(webtoon in list){
if(current!=list[webtoon].week){
if(current!=list[webtoon].week
&&
list[webtoon].site == 'daum'
){
if(current!=""){
%>
</tr>
...
...
@@ -23,12 +44,20 @@
<tr>
<th>
<
%= list[webtoon].week %>
</th>
<
% } %>
<
%
if(list[webtoon].site == 'daum')
{
%>
<td>
<a
href=
"<%= list[webtoon].webtoon_link %>"
>
<img
alt=
"img"
width=
"83"
height=
"90"
src=
"<%= list[webtoon].thum_link %>"
/>
</a>
<
%= list[webtoon].name %>
</td>
<
%
}
%>
<
%
if(current!=list[webtoon].week) {
current = list[webtoon].week;
...
...
@@ -41,7 +70,58 @@
</tr>
</table>
</br>
</div>
<br>
<font
size =
60
>
네이버 웹툰
</font>
<a
onclick=
"Naver_webtoons.style.display=(Naver_webtoons.style.display=='none')?'block':'none';"
href=
"javascript:void(0)"
>
<img
src =
'/images/navericon.png'
width=
"83"
height=
"90"
/>
</a>
<div
id=
"Naver_webtoons"
style =
"display:none"
>
<table>
<
%
var current = "";
for(webtoon in list){
if(current!=list[webtoon].week
&&
list[webtoon].site == 'naver'){
if(current!=""){
%>
</tr>
<
% } %>
<tr>
<th>
<
%= list[webtoon].week %>
</th>
<
% } %>
<
%
if(list[webtoon].site == 'naver')
{
%>
<td>
<a
href=
"<%= list[webtoon].webtoon_link %>"
>
<img
alt=
"img"
width=
"83"
height=
"90"
src=
"<%= list[webtoon].thum_link %>"
/>
</a>
<
%= list[webtoon].name %>
</td>
<
%
}
%>
<
%
if(current!=list[webtoon].week) {
current = list[webtoon].week;
%>
<
%
}
}
%>
</tr>
</table>
</br>
</div>
</body>
...
...
Please
register
or
login
to post a comment