chore: remove post totals

This commit is contained in:
Cat Flynn 2024-08-10 19:31:56 +01:00
parent ffd3296630
commit 44b6d3a23a
2 changed files with 0 additions and 14 deletions

View File

@ -24,14 +24,6 @@
<div class="block skeleton-post"></div> <div class="block skeleton-post"></div>
</div> </div>
<!-- post actions shows the post count and post total (we probably do not need this) -->
<div id="post-actions">
<span>Showing
<span id="post-count"></span> of
<span id="post-total"></span> cards
</span>
</div>
<script src="main.js"></script> <script src="main.js"></script>
</body> </body>
</html> </html>

View File

@ -51,8 +51,6 @@ const localMode = false;
const showSplash = true; const showSplash = true;
const blockContainer = document.getElementById("block-container"); const blockContainer = document.getElementById("block-container");
const postCountElem = document.getElementById("post-count");
const postTotalElem = document.getElementById("post-total");
const loader = document.getElementById("loader"); const loader = document.getElementById("loader");
// some state // some state
@ -227,8 +225,6 @@ function addPosts(pageIdx) {
? posts.length ? posts.length
: pageIdx * postIncrease; : pageIdx * postIncrease;
postCountElem.innerHTML = endRange;
const rootPosts = getRootPosts(); const rootPosts = getRootPosts();
for (let i = startRange + 1; i <= endRange; i++) { for (let i = startRange + 1; i <= endRange; i++) {
@ -636,8 +632,6 @@ loadDataFromEndpoint(postsUrl, json => {
const parent = posts[post.replyTo]; const parent = posts[post.replyTo];
parent.addReply(post); parent.addReply(post);
} }
postTotalElem.innerHTML = Object.keys(posts).length;
}); });
if (!showSplash) { if (!showSplash) {