From 01c34c67295fedca4aa2625b2cc157ffb5eeb7fb Mon Sep 17 00:00:00 2001 From: MathiasDPX Date: Fri, 11 Oct 2024 21:08:51 +0200 Subject: [PATCH] Add DS_STORE to gitignore --- .gitignore | 3 ++- static/.DS_Store | Bin 8196 -> 0 bytes static/js/infinite-scroll.js | 32 -------------------------------- 3 files changed, 2 insertions(+), 33 deletions(-) delete mode 100644 static/.DS_Store delete mode 100644 static/js/infinite-scroll.js diff --git a/.gitignore b/.gitignore index 4bfa70f..a589ee0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ __pycache__/ .vscode/ -.venv \ No newline at end of file +.venv +.DS_Store \ No newline at end of file diff --git a/static/.DS_Store b/static/.DS_Store deleted file mode 100644 index 2a043aaa018496c9f0b100dd7cba08d0823ddb58..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8196 zcmeHMON-M`6h60&os>Z+qS%cPaHCMPof(EHZfdQd;K~dNzG~CdPBhIeO==gV5V!h6 zT)A?gzrd9nLHrrc+LfOBm^3$?x=|b<_rSeha?d$w&i6Hs(*gi#Pu&JU6#z^e3@e*B z9b?ST#)=i>%6UYB`9S-QPaWK=ti(u#fE|Kc1PT(OjYso8OU zMYS^jN+h`%-Abt12o)Qma+&LfT*zpq#GbSsf9dK`YEm@0bXdar6@OZn2XAlfxh1Yk zCT6M4x)?>D%ltX793!Jq0iLgD^CP1T?rPHv55@Uh5g7(jU2uQzA N^E1$sW*~nI`~s&#SWW-{ diff --git a/static/js/infinite-scroll.js b/static/js/infinite-scroll.js deleted file mode 100644 index 6b6daab..0000000 --- a/static/js/infinite-scroll.js +++ /dev/null @@ -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 = '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();