Update result_lib.ejs, result_pro.ejs : enable link button, add text_processing
Showing
2 changed files
with
10 additions
and
10 deletions
... | @@ -15,12 +15,12 @@ | ... | @@ -15,12 +15,12 @@ |
15 | <h4 class="ml-2 my-3 text-center">보수 측 검색 결과</h4> | 15 | <h4 class="ml-2 my-3 text-center">보수 측 검색 결과</h4> |
16 | <div class="container"> | 16 | <div class="container"> |
17 | <ul class="list-group"> | 17 | <ul class="list-group"> |
18 | - <% for (var i = 1; i < posts.display; i++){ %> | 18 | + <% for (var i = 0; i < num; i++){ %> |
19 | <li class="list-group-item"> | 19 | <li class="list-group-item"> |
20 | - <p style="font-weight:bold; font-size:120%">제목 : <%= posts.items[i].title.replace(/(<b>|<\/b>|")/gi,'') %></p> | 20 | + <p style="font-weight:bold; font-size:120%">제목 : <%= posts[i].title.replace(/(<b>|<\/b>|")/gi,'') %></p> |
21 | - <p >내용 : <%= posts.items[i].description.replace(/(<b>|<\/b>|")/gi,'') %></p> | 21 | + <p >내용 : <%= posts[i].description.replace(/(<b>|<\/b>|")/gi,'') %></p> |
22 | - <p >날짜 : <%= posts.items[i].pubDate %></p> | 22 | + <p >날짜 : <%= posts[i].pubDate %></p> |
23 | - <button class="btn btn-secondary">뉴스 보기</button> | 23 | + <button class="btn btn-secondary" onclick="location.href='<%= posts[i].originallink %>'">뉴스 보기</button> |
24 | </li> | 24 | </li> |
25 | <% } %> | 25 | <% } %> |
26 | </ul> | 26 | </ul> | ... | ... |
... | @@ -15,12 +15,12 @@ | ... | @@ -15,12 +15,12 @@ |
15 | <h4 class="ml-2 my-3 text-center">진보 측 검색 결과</h4> | 15 | <h4 class="ml-2 my-3 text-center">진보 측 검색 결과</h4> |
16 | <div class="container"> | 16 | <div class="container"> |
17 | <ul class="list-group"> | 17 | <ul class="list-group"> |
18 | - <% for (var i = 1; i < posts.display; i++){ %> | 18 | + <% for (var i = 0; i < num; i++){ %> |
19 | <li class="list-group-item"> | 19 | <li class="list-group-item"> |
20 | - <p style="font-weight:bold; font-size:120%">제목 : <%= posts.items[i].title.replace(/(<b>|<\/b>|")/gi,'') %></p> | 20 | + <p style="font-weight:bold; font-size:120%">제목 : <%= posts[i].title.replace(/(<b>|<\/b>|")/gi,'') %></p> |
21 | - <p >내용 : <%= posts.items[i].description.replace(/(<b>|<\/b>|")/gi,'') %></p> | 21 | + <p >내용 : <%= posts[i].description.replace(/(<b>|<\/b>|")/gi,'') %></p> |
22 | - <p >날짜 : <%= posts.items[i].pubDate %></p> | 22 | + <p >날짜 : <%= posts[i].pubDate %></p> |
23 | - <button class="btn btn-secondary">뉴스 보기</button> | 23 | + <button class="btn btn-secondary" onclick="location.href='<%= posts[i].originallink %>'">뉴스 보기</button> |
24 | </li> | 24 | </li> |
25 | <% } %> | 25 | <% } %> |
26 | </ul> | 26 | </ul> | ... | ... |
-
Please register or login to post a comment