Add result_lib.ejs, result_pro.ejs : page that contains result of search
Showing
2 changed files
with
86 additions
and
0 deletions
views/result_lib.ejs
0 → 100644
1 | +<!doctype html> | ||
2 | +<html> | ||
3 | + <head> | ||
4 | + <!-- Required meta tags --> | ||
5 | + <meta charset="utf-8"> | ||
6 | + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
7 | + | ||
8 | + <!-- Bootstrap CSS --> | ||
9 | + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous"> | ||
10 | + | ||
11 | + | ||
12 | + </head> | ||
13 | + <body> | ||
14 | + | ||
15 | + <h4 class="ml-2 my-3 text-center">보수 측 검색 결과</h4> | ||
16 | + <div class="container"> | ||
17 | + <ul class="list-group"> | ||
18 | + <% for (var i = 1; i < posts.display; i++){ %> | ||
19 | + <li class="list-group-item"> | ||
20 | + <p style="font-weight:bold; font-size:120%">제목 : <%= posts.items[i].title.replace(/(<b>|<\/b>|")/gi,'') %></p> | ||
21 | + <p >내용 : <%= posts.items[i].description.replace(/(<b>|<\/b>|")/gi,'') %></p> | ||
22 | + <p >날짜 : <%= posts.items[i].pubDate %></p> | ||
23 | + <button class="btn btn-secondary">뉴스 보기</button> | ||
24 | + </li> | ||
25 | + <% } %> | ||
26 | + </ul> | ||
27 | + </div> | ||
28 | + <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> | ||
29 | + | ||
30 | + <!-- Optional JavaScript; choose one of the two! --> | ||
31 | + | ||
32 | + <!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) --> | ||
33 | + <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> | ||
34 | + <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-fQybjgWLrvvRgtW6bFlB7jaZrFsaBXjsOMm/tB9LTS58ONXgqbR9W8oWht/amnpF" crossorigin="anonymous"></script> | ||
35 | + | ||
36 | + <!-- Option 2: Separate Popper and Bootstrap JS --> | ||
37 | + <!-- | ||
38 | + <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> | ||
39 | + <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script> | ||
40 | + <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.min.js" integrity="sha384-VHvPCCyXqtD5DqJeNxl2dtTyhF78xXNXdkwX1CZeRusQfRKp+tA7hAShOK/B/fQ2" crossorigin="anonymous"></script> | ||
41 | + --> | ||
42 | + </body> | ||
43 | +</html> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
views/result_pro.ejs
0 → 100644
1 | +<!doctype html> | ||
2 | +<html> | ||
3 | + <head> | ||
4 | + <!-- Required meta tags --> | ||
5 | + <meta charset="utf-8"> | ||
6 | + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
7 | + | ||
8 | + <!-- Bootstrap CSS --> | ||
9 | + <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous"> | ||
10 | + | ||
11 | + | ||
12 | + </head> | ||
13 | + <body> | ||
14 | + | ||
15 | + <h4 class="ml-2 my-3 text-center">진보 측 검색 결과</h4> | ||
16 | + <div class="container"> | ||
17 | + <ul class="list-group"> | ||
18 | + <% for (var i = 1; i < posts.display; i++){ %> | ||
19 | + <li class="list-group-item"> | ||
20 | + <p style="font-weight:bold; font-size:120%">제목 : <%= posts.items[i].title.replace(/(<b>|<\/b>|")/gi,'') %></p> | ||
21 | + <p >내용 : <%= posts.items[i].description.replace(/(<b>|<\/b>|")/gi,'') %></p> | ||
22 | + <p >날짜 : <%= posts.items[i].pubDate %></p> | ||
23 | + <button class="btn btn-secondary">뉴스 보기</button> | ||
24 | + </li> | ||
25 | + <% } %> | ||
26 | + </ul> | ||
27 | + </div> | ||
28 | + <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> | ||
29 | + | ||
30 | + <!-- Optional JavaScript; choose one of the two! --> | ||
31 | + | ||
32 | + <!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) --> | ||
33 | + <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> | ||
34 | + <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-fQybjgWLrvvRgtW6bFlB7jaZrFsaBXjsOMm/tB9LTS58ONXgqbR9W8oWht/amnpF" crossorigin="anonymous"></script> | ||
35 | + | ||
36 | + <!-- Option 2: Separate Popper and Bootstrap JS --> | ||
37 | + <!-- | ||
38 | + <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> | ||
39 | + <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script> | ||
40 | + <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.min.js" integrity="sha384-VHvPCCyXqtD5DqJeNxl2dtTyhF78xXNXdkwX1CZeRusQfRKp+tA7hAShOK/B/fQ2" crossorigin="anonymous"></script> | ||
41 | + --> | ||
42 | + </body> | ||
43 | +</html> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment