index.ejs 1.55 KB
<!doctype html>
<html>
<head>
    <title>BUS TT</title>
    <meta charset="utf-8">
    <style type="text/css"> 
        a { text-decoration:none }
    </style>
</head>
<body>
    <h1><p style="text-align:center;">BTT</p></h1>
    <br>
    <link rel='stylesheet' type='text/css' href='/css/style.css' />
    <h2 style="padding:0 0 0 20px;"> 사색의 광장 Bus Time Table 조회 서비스에 오신 것을 환영합니다.</h2>
    <p style="padding:0 0 0 20px;"> 이곳에는 사색의 광장에서 출발하는 모든 버스의 정보가 있습니다.</p>
    <br><br>
    <h2 style="padding:0 0 0 20px;"> 버스별 시간표 조회 (click the bus number!)</h2>
    
    <div style="padding:0 0 0 20px;">
        <% var date = new Date(); %>
        <% var yyyy = date.getFullYear(); %>
        <% var mm1 = date.getMonth() + 1; %>
        <% var dd = date.getDate(); %>
        <% var hh = date.getHours(); %>
        <% var mm2 = date.getMinutes(); %>
        <% var printDateNotion = yyyy+"년 "+mm1+"월 "+dd+"일 오늘 운행하는 버스들 "; %>
        <% var printDateNotion2 = "( "+hh+"시 "+mm2+"분 기준 )"; %>
        
        <%= printDateNotion %>
        <%= printDateNotion2 %>
    </div>
    <ul>
        <li><a href="http://localhost:23023/timetable?busNum=9">9</a></li>
        <li><a href="http://localhost:23023/timetable?busNum=1112">1112</a></li>
        <li><a href="http://localhost:23023/timetable?busNum=5100">5100</a></li>
        <li><a href="http://localhost:23023/timetable?busNum=7000">7000</a></li>
    </ul>
    <p> ejs파일임</p>
</body>
</html