mirror of
https://github.com/MathiasDPX/grainParisArt.git
synced 2025-05-10 07:33:05 +00:00
resolution conflits
This commit is contained in:
parent
cb7604d9a4
commit
c716ec8876
30 changed files with 284 additions and 1854 deletions
BIN
static/.DS_Store
vendored
BIN
static/.DS_Store
vendored
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 691 KiB |
Binary file not shown.
Before Width: | Height: | Size: 708 KiB |
Binary file not shown.
Before Width: | Height: | Size: 62 MiB |
Binary file not shown.
Before Width: | Height: | Size: 1.2 MiB |
BIN
static/images/nocontent.png
Normal file
BIN
static/images/nocontent.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
Binary file not shown.
Before Width: | Height: | Size: 974 KiB |
|
@ -1,32 +0,0 @@
|
|||
var isLoading = false;
|
||||
var page = 1;
|
||||
|
||||
function fetchCinemaSessions() {
|
||||
if (isLoading) return;
|
||||
|
||||
isLoading = true;
|
||||
var loadingContainer = document.getElementById('loading-container');
|
||||
loadingContainer.innerHTML = '<img src="{{ url_for("static", filename="loading.gif") }}" alt="Loading...">';
|
||||
|
||||
fetch('/?page=' + page)
|
||||
.then(function(response) {
|
||||
return response.text();
|
||||
})
|
||||
.then(function(html) {
|
||||
var cinemaContainer = document.getElementById('cinema-container');
|
||||
cinemaContainer.insertAdjacentHTML('beforeend', html);
|
||||
isLoading = false;
|
||||
page += 1;
|
||||
})
|
||||
.catch(function() {
|
||||
isLoading = false;
|
||||
});
|
||||
}
|
||||
|
||||
window.addEventListener('scroll', function() {
|
||||
if (window.innerHeight + window.scrollY >= document.body.offsetHeight - 100 && !isLoading) {
|
||||
fetchCinemaSessions();
|
||||
}
|
||||
});
|
||||
|
||||
fetchCinemaSessions();
|
Loading…
Add table
Add a link
Reference in a new issue