                if (endPage < totalPages - 1) {
                    page_list += `<li class="page-item disabled"><a class="page-link">…</a></li>`;
                }
                page_list += list_temp
                    .replaceAll('@@page@@', totalPages)
                    .replaceAll('@@active@@', page === totalPages ? 'active text-white' : '');
            }

            page_list += `<li class="page-item" id="next-page">
                    <a class="page-link" href="javascript:next_page()">
    