mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
Tidying up CSS
This commit is contained in:
parent
3f64c56ec8
commit
f41312248c
7 changed files with 29 additions and 30 deletions
|
@ -11,7 +11,7 @@
|
|||
<script>
|
||||
let imageList = [];
|
||||
let imageIndex = 0;
|
||||
|
||||
|
||||
function loadMore(startIndex, amount = 10) {
|
||||
for (let i = startIndex; i < startIndex + amount; i++) {
|
||||
if (i < imageList.length) {
|
||||
|
@ -47,7 +47,7 @@
|
|||
});
|
||||
|
||||
$(window).scroll(function() {
|
||||
if ($(window).height() + $(window).scrollTop() >= $(document).height() - 100) {
|
||||
if ($(window).height() + $(window).scrollTop() >= $(document).height() - 200) {
|
||||
loadMore(imageIndex);
|
||||
imageIndex += 10;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue