chore: remove post totals
This commit is contained in:
parent
ffd3296630
commit
44b6d3a23a
|
@ -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>
|
||||
|
|
6
main.js
6
main.js
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue