diff options
Diffstat (limited to 'web')
| -rw-r--r-- | web/dist/v3/assets/index-DZsQUXOH.js (renamed from web/dist/v3/assets/index-3ySRh1ZH.js) | 2 | ||||
| -rw-r--r-- | web/dist/v3/index.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/web/dist/v3/assets/index-3ySRh1ZH.js b/web/dist/v3/assets/index-DZsQUXOH.js index 21ef42f..95719d5 100644 --- a/web/dist/v3/assets/index-3ySRh1ZH.js +++ b/web/dist/v3/assets/index-DZsQUXOH.js @@ -93,7 +93,7 @@ ${e.map(s=>O(s)).join("")} </ul> ${a.hasMore?'<div id="load-more-sentinel" class="loading-more">Loading more...</div>':""} - `;const i=document.getElementById("main-content");if(i){let s=null;i.onscroll=()=>{!a.loading&&a.hasMore&&i.scrollHeight>i.clientHeight&&i.scrollHeight-i.scrollTop-i.clientHeight<200&&E(),s===null&&(s=window.setTimeout(()=>{R(i),s=null},250))}}}function R(e){const t=e.getBoundingClientRect(),n=e.querySelectorAll(".feed-item");for(const i of n){const s=parseInt(i.getAttribute("data-id")),o=a.items.find(f=>f._id===s);if(!o||o.read)continue;i.getBoundingClientRect().bottom<t.top&&p(o._id,{read:!0})}}typeof window<"u"&&setInterval(()=>{const e=document.getElementById("main-content");if(a.loading||!a.hasMore)return;if(e&&(R(e),e.scrollHeight>e.clientHeight&&e.scrollHeight-e.scrollTop-e.clientHeight<200)){E();return}const t=document.documentElement.scrollHeight||document.body.scrollHeight,n=window.innerHeight,i=window.scrollY||document.documentElement.scrollTop;t>n&&t-n-i<200&&E()},3e3);function v(){const e=document.getElementById("content-area");if(!e)return;e.innerHTML=` + `;const i=document.getElementById("main-content");if(i){let s=null;i.onscroll=()=>{!a.loading&&a.hasMore&&i.scrollHeight>i.clientHeight&&i.scrollHeight-i.scrollTop-i.clientHeight<200&&E(),s===null&&(s=window.setTimeout(()=>{R(i),s=null},250))}}}function R(e){const t=e.getBoundingClientRect(),n=e.querySelectorAll(".feed-item");for(const i of n){const s=parseInt(i.getAttribute("data-id")),o=a.items.find(f=>f._id===s);if(!o||o.read)continue;i.getBoundingClientRect().bottom<t.top&&p(o._id,{read:!0})}}typeof window<"u"&&setInterval(()=>{const e=document.getElementById("main-content");if(a.loading||!a.hasMore)return;if(e&&(R(e),e.scrollHeight>e.clientHeight&&e.scrollHeight-e.scrollTop-e.clientHeight<200)){E();return}const t=document.documentElement.scrollHeight||document.body.scrollHeight,n=window.innerHeight,i=window.scrollY||document.documentElement.scrollTop;t>n&&t-n-i<200&&E()},1e3);function v(){const e=document.getElementById("content-area");if(!e)return;e.innerHTML=` <div class="settings-view"> <h2>Settings</h2> diff --git a/web/dist/v3/index.html b/web/dist/v3/index.html index 25a0b86..8c1f6a6 100644 --- a/web/dist/v3/index.html +++ b/web/dist/v3/index.html @@ -5,7 +5,7 @@ <link rel="icon" type="image/svg+xml" href="/vite.svg" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>neko</title> - <script type="module" crossorigin src="/v3/assets/index-3ySRh1ZH.js"></script> + <script type="module" crossorigin src="/v3/assets/index-DZsQUXOH.js"></script> <link rel="stylesheet" crossorigin href="/v3/assets/index-FN4JJv2k.css"> </head> <body> |
