Yuseunggeun

add index.ejs

<!DOCTYPE html>
<html>
<body>
<h2>Search Result <%= money %>$</h2>
<%if(count >= 1){%>
<h4>Best Item</h4>
<%= 1 + "." + searchlist[1].name+" - ("+searchlist[1].price+"$)"%>
<%var link = "http://www.videocardbenchmark.net/"+searchlist[1].link.toString(); %>
<a href = <%=link%> target=_blank>link</a>
<br>
<h4>Second Items</h4>
<%for(var i =2; i<=count;i++){%>
<%= i + "." + searchlist[i].name+" - ("+searchlist[i].price+"$)"%>
<%link = "http://www.videocardbenchmark.net/"+searchlist[i].link.toString(); %>
<a href = <%=link%> target=_blank>link</a>
<br>
<%}%>
<%}else{%>
<h4>No Item exist</h4>
<%}%>
<form method="GET" action="http://localhost:3000/">
<input type="submit" value="돌아가기">
</form>
</body>
</html>