Showing
1 changed file
with
26 additions
and
0 deletions
views/index.ejs
0 → 100644
| 1 | +<!DOCTYPE html> | ||
| 2 | +<html> | ||
| 3 | + <body> | ||
| 4 | + <h2>Search Result <%= money %>$</h2> | ||
| 5 | + <%if(count >= 1){%> | ||
| 6 | + <h4>Best Item</h4> | ||
| 7 | + <%= 1 + "." + searchlist[1].name+" - ("+searchlist[1].price+"$)"%> | ||
| 8 | + <%var link = "http://www.videocardbenchmark.net/"+searchlist[1].link.toString(); %> | ||
| 9 | + <a href = <%=link%> target=_blank>link</a> | ||
| 10 | + <br> | ||
| 11 | + <h4>Second Items</h4> | ||
| 12 | + <%for(var i =2; i<=count;i++){%> | ||
| 13 | + <%= i + "." + searchlist[i].name+" - ("+searchlist[i].price+"$)"%> | ||
| 14 | + <%link = "http://www.videocardbenchmark.net/"+searchlist[i].link.toString(); %> | ||
| 15 | + <a href = <%=link%> target=_blank>link</a> | ||
| 16 | + <br> | ||
| 17 | + <%}%> | ||
| 18 | + <%}else{%> | ||
| 19 | + <h4>No Item exist</h4> | ||
| 20 | + <%}%> | ||
| 21 | + | ||
| 22 | + <form method="GET" action="http://localhost:3000/"> | ||
| 23 | + <input type="submit" value="돌아가기"> | ||
| 24 | + </form> | ||
| 25 | + </body> | ||
| 26 | +</html> |
-
Please register or login to post a comment