mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
Fixed multiple requests for images
Started adding SQL table layouts Making package loading prettier
This commit is contained in:
parent
5951baadaf
commit
a7e79ab5a5
10 changed files with 60 additions and 75 deletions
|
@ -18,6 +18,7 @@
|
|||
loadImg(imageList[i][0], imageList[i][1]);
|
||||
}
|
||||
}
|
||||
imageIndex = startIndex + amount;
|
||||
}
|
||||
|
||||
function loadImg(id, fileName) {
|
||||
|
@ -40,16 +41,13 @@
|
|||
type: 'get',
|
||||
success: function(response) {
|
||||
imageList = response;
|
||||
|
||||
loadMore(0, 30);
|
||||
imageIndex += 30;
|
||||
}
|
||||
});
|
||||
|
||||
$(window).scroll(function() {
|
||||
if ($(window).height() + $(window).scrollTop() >= $(document).height() - 500) {
|
||||
loadMore(imageIndex);
|
||||
imageIndex += 10;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -15,13 +15,13 @@
|
|||
<body>
|
||||
<nav id="navRoot">
|
||||
<div>
|
||||
<a href="{{ url_for('home') }}" class="btn"><i class="ph-house-line"></i><span>Home</span></a>
|
||||
<a href="{{ url_for('home') }}" class="btn"><i class="ph-package"></i><span>Groups</span></a>
|
||||
<a href="{{ url_for('home') }}" class="btn"><i class="ph-upload"></i><span>Upload</span></a>
|
||||
<a href="{{ url_for('home') }}"><i class="ph-house-line"></i><span>Home</span></a>
|
||||
<a href="{{ url_for('home') }}"><i class="ph-package"></i><span>Groups</span></a>
|
||||
<a href="{{ url_for('home') }}"><i class="ph-upload"></i><span>Upload</span></a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="{{ url_for('home') }}" class="btn"><i class="ph-user-circle"></i><span>Profile</span></a>
|
||||
<a href="{{ url_for('home') }}" class="btn"><i class="ph-gear"></i><span>Settings</span></a>
|
||||
<a href="{{ url_for('home') }}"><i class="ph-user-circle"></i><span>Profile</span></a>
|
||||
<a href="{{ url_for('home') }}"><i class="ph-gear"></i><span>Settings</span></a>
|
||||
</div>
|
||||
</nav>
|
||||
<main>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue