Nord-themed dark/light mode family tree theme with: - Floating glass-morphism header bar - Auto/light/dark theme toggle with Lucide icons - Smart SVG logo with theme-aware fill colors - Active page highlighting with per-menu Nord icon colors - Language button showing 2-letter abbreviation - Start page search form - Mobile responsive icon-only nav - Custom views inherited from ArgonLight
26 lines
792 B
PHTML
26 lines
792 B
PHTML
<input type="number" id="individual-page" />
|
|
|
|
<?= view('::lists/individuals-table', get_defined_vars()); ?>
|
|
|
|
<script>
|
|
window.onload = function() {
|
|
var table = $(".wt-table-individual").DataTable();
|
|
var pageInput = $("#individual-page");
|
|
var queries = new URLSearchParams(window.location.search);
|
|
|
|
pageInput.on('keyup', function () {
|
|
setPage(this.value);
|
|
});
|
|
table.on('page.dt', function () {
|
|
pageInput.val(table.page() + 1);
|
|
queries.set("page", table.page() + 1);
|
|
window.history.pushState( {} , '', '?' + queries.toString() );
|
|
});
|
|
|
|
setPage(queries.get("page"));
|
|
function setPage(page){
|
|
table.page(page - 1).draw('page');
|
|
}
|
|
};
|
|
</script>
|