forked from mirror/pixelfed
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