mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 08:14:10 +00:00
Add timeline.js
This commit is contained in:
parent
6c9675a74d
commit
993f831867
1 changed files with 9 additions and 0 deletions
9
resources/assets/js/timeline.js
vendored
Normal file
9
resources/assets/js/timeline.js
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
$(document).ready(function() {
|
||||
$('.pagination').hide();
|
||||
let elem = document.querySelector('.timeline-feed');
|
||||
let infScroll = new InfiniteScroll( elem, {
|
||||
path: '.pagination__next',
|
||||
append: '.timeline-feed',
|
||||
history: false,
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue