[BO] 페이지네이션, css 주석처리
This commit is contained in:
@@ -37,25 +37,17 @@ let uiUtil = {
|
|||||||
let frag1 =
|
let frag1 =
|
||||||
`
|
`
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<nav aria-label="Page navigation example">
|
<nav class="component-pagination" aria-label="Page navigation example">
|
||||||
<ul class="pagination justify-content-center">
|
|
||||||
|
|
||||||
<!-- 처음 페이지로 이동 -->
|
<a href="#" class="page-link pagination-item first"
|
||||||
<li class="page-item" ${curPageNo === 0 ? 'style=display:none'
|
aria-label="First" data-target-page="${firstPage}">
|
||||||
: ''}>
|
<span class="hide-txt">첫 페이지로 이동</span>
|
||||||
<a class="page-link" href="#" aria-label="First" data-target-page="${firstPage}">
|
</a>
|
||||||
«
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<!-- 이전 페이지로 이동 -->
|
<a href="#" class="page-link pagination-item prev"
|
||||||
<li class="page-item" ${curPageNo === 0 ? 'style=display:none'
|
aria-label="Previous" data-target-page="${curPageNo === 0 ? null : curPageNo - 1}">
|
||||||
: ''}>
|
<span class="hide-txt">이전 페이지로 이동</span>
|
||||||
<a class="page-link" href="#" aria-label="Previous" data-target-page="${curPageNo
|
</a>
|
||||||
=== 0 ? null : curPageNo - 1}">
|
|
||||||
‹
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const pageSize = 10; // 보여줄 페이지 개수
|
const pageSize = 10; // 보여줄 페이지 개수
|
||||||
@@ -64,38 +56,28 @@ let uiUtil = {
|
|||||||
|
|
||||||
let frag2 = ``;
|
let frag2 = ``;
|
||||||
for (let i = startPage; i <= endPage; i++) {
|
for (let i = startPage; i <= endPage; i++) {
|
||||||
frag2 +=
|
if (i === curPageNo) {
|
||||||
`
|
frag2 += `
|
||||||
<li class="page-item ${i === curPageNo ? 'disabled' : ''}">
|
<span class="page-link pagination-item" aria-current="page">${i + 1}</span>
|
||||||
<a class="page-link" href="#" data-target-page="${i
|
|
||||||
=== curPageNo ? null : i}">
|
|
||||||
${i + 1}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
`;
|
`;
|
||||||
|
} else {
|
||||||
|
frag2 += `
|
||||||
|
<a href="#" class="page-link pagination-item" data-target-page="${i}">${i + 1}</a>
|
||||||
|
`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let frag3 =
|
let frag3 =
|
||||||
`
|
`
|
||||||
<!-- 다음 페이지로 이동 -->
|
<a href="#" class="page-link pagination-item next"
|
||||||
<li class="page-item" ${curPageNo == totalPages - 1
|
aria-label="Next" data-target-page="${curPageNo == totalPages - 1 || totalPages == 0 ? null : curPageNo + 1}">
|
||||||
? 'style=display:none' : ''}>
|
<span class="hide-txt">다음 페이지로 이동</span>
|
||||||
<a class="page-link" href="#" aria-label="Next" data-target-page="${curPageNo
|
</a>
|
||||||
== totalPages - 1 || totalPages == 0 ? null : curPageNo + 1}">
|
<a href="#" class="page-link pagination-item last"
|
||||||
›
|
aria-label="Last" data-target-page="${totalPages - 1}">
|
||||||
</a>
|
<span class="hide-txt">마지막 페이지로 이동</span>
|
||||||
</li>
|
</a>
|
||||||
|
|
||||||
<!-- 마지막 페이지로 이동 -->
|
|
||||||
<li class="page-item" ${curPageNo == totalPages - 1
|
|
||||||
? 'style=display:none' : ''}>
|
|
||||||
<a class="page-link" href="#" aria-label="Last" data-target-page="${totalPages
|
|
||||||
- 1}">
|
|
||||||
»
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -26,8 +26,9 @@
|
|||||||
<meta property="og:keywords" th:content="${currentURI.ogKeywords}" th:if="${currentURI != null}"/>
|
<meta property="og:keywords" th:content="${currentURI.ogKeywords}" th:if="${currentURI != null}"/>
|
||||||
<meta property="og:image" th:content="${currentURI.ogImage}" th:if="${currentURI != null}"/>
|
<meta property="og:image" th:content="${currentURI.ogImage}" th:if="${currentURI != null}"/>
|
||||||
|
|
||||||
<link rel="stylesheet" th:href="@{/static/library/bootstrap/bootstrap.min.css}"/>
|
<!-- 부트스트랩 css 숨김 처리 -->
|
||||||
<link rel="stylesheet" th:href="@{/static/library/bootstrap/bootstrap-icons.css}"/>
|
<!-- <link rel="stylesheet" th:href="@{/static/library/bootstrap/bootstrap.min.css}"/>-->
|
||||||
|
<!-- <link rel="stylesheet" th:href="@{/static/library/bootstrap/bootstrap-icons.css}"/>-->
|
||||||
<script th:src="@{/static/library/jquery/jquery-3.6.0.min.js}"></script>
|
<script th:src="@{/static/library/jquery/jquery-3.6.0.min.js}"></script>
|
||||||
|
|
||||||
<link rel="stylesheet" th:href="@{/static/library/jquery-ui/jquery-ui.min.css}"/>
|
<link rel="stylesheet" th:href="@{/static/library/jquery-ui/jquery-ui.min.css}"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user