mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-06-05 01:03:51 -04:00
move dataTable off CDN to local staticfile and start with 100 rows
This commit is contained in:
parent
baf0805412
commit
7e50e6031e
9 changed files with 175 additions and 4 deletions
|
@ -102,7 +102,6 @@
|
|||
table-layout: fixed;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.19/css/jquery.dataTables.min.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
|
@ -153,13 +152,16 @@
|
|||
</center>
|
||||
<br/>
|
||||
</footer>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.19/js/jquery.dataTables.min.js"></script>
|
||||
<link rel="stylesheet" href="static/jquery.dataTables.min.css"/>
|
||||
<script src="static/jquery.min.js"></script>
|
||||
<script src="static/jquery.dataTables.min.js"></script>
|
||||
<script>
|
||||
jQuery(document).ready(function() {
|
||||
jQuery('#table-bookmarks').DataTable({
|
||||
stateSave: true, // save state (filtered input, number of entries shown, etc) in localStorage
|
||||
dom: '<lf<t>ip>' // how to show the table and its helpers (filter, etc) in the DOM
|
||||
dom: '<lf<t>ip>', // how to show the table and its helpers (filter, etc) in the DOM
|
||||
order: [[0, 'desc']],
|
||||
iDisplayLength: 100,
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue