index.ejs
989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html>
<head>
<title><%= title %></title>
<link rel='stylesheet' href='/stylesheets/style.css' />
<script src="http://developers.kakao.com/sdk/js/kakao.min.js"></script>
</head>
<h1><%= title %></h1>
<p>웹툰 리스트</p>
<a href="/auth/login/kakao" class="btn btn-block btn-lg btn-warning btn_login">로그인</a>
<table>
<%
var current = "";
for(jsonString in list){
var A=JSON.parse(list[jsonString]);
if(current!=A.week){
if(current!=""){
%>
</tr>
<% } %>
<tr>
<th><%= A.week %></th>
<% } %>
<td>
<a href="<%= A.webtoon_link %>">
<img src="<%= A.thum_link %>"/>
</a>
<%= A.name %>
</td>
<%
if(current!=A.week) {
current = A.week;
%>
<%
}
}
%>
</tr>
</table>
</br>
</body>
</html>