index.ejs 806 Bytes
<!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>