index.ejs
806 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
<!DOCTYPE html>
<html>
<head>
<title><%= title %></title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>
<h1><%= title %></h1>
<p><%= title %></p>
<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>