Yuseunggeun

modify ejs file

1 +<!DOCTYPE html>
2 +<html>
3 + <body>
4 + <%for(var i =1; i<=20;i++){%>
5 + <%= i + "." + graphic_card_info[i].name+" - ("+graphic_card_info[i].price+"$)"%>
6 + <%var link = "http://www.videocardbenchmark.net/"+graphic_card_info[i].link.toString() %>>
7 + <a href = <%=link%> target=_blank>link</a>
8 + <br>
9 + <%}%>
10 + <form method="GET" action="http://localhost:3000/">
11 + <input type="submit" value="돌아가기">
12 + </form>
13 + </body>
14 +</html>
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 - <%for(var i =0; i<20;i++){%> 4 + <h1>OSS TermProject-컴퓨터 부품 추천</h1>
5 - <%= (i+1) + "." + list[i]%> 5 + <form method="POST" action="http://localhost:3000/main">
6 - <br> 6 + <input type="text" name="money" placeholder="예산을 입력하세요($).">
7 - <%}%> 7 + <input type="submit" value="확인">
8 + </form>
9 + <form method="GET" action="http://localhost:3000/rank">
10 + <input type="submit" value="전체순위">
11 + </form>
8 12
9 -
10 -
11 -
12 - <!--
13 - <form method="POST" action="/increase">
14 - <input type="submit" value="Increase">
15 - </form>
16 - <form method="POST" action="/decrease">
17 - <input type="submit" value="Decrease">
18 - </form>
19 - <form method="GET" action="/show">
20 - <input type="submit" value="Show">
21 - </form>
22 - -->
23 </body> 13 </body>
24 </html> 14 </html>
...\ No newline at end of file ...\ No newline at end of file
......