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>
<!-- 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>
</body>
</html>

View File

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