diff --git a/script.js b/script.js
index af3bfbc..fa94ffb 100644
--- a/script.js
+++ b/script.js
@@ -104,14 +104,6 @@ const updateTimesOnPage = function() {
});
};
-// replace certain emojies in some text with images
-const replaceEmojies = (text, emojis) => {
- emojis.forEach(emoji => {
- text = text.replaceAll(`:${emoji.shortcode}:`, `
`);
- });
- return text;
-};
-
// displayPost creates and displays a post
const displayPost = function(post) {
if (existingPosts.includes(post.id) || (!includeReplies && post.in_reply_to_id !== null)) return 0;
@@ -123,10 +115,10 @@ const displayPost = function(post) {

-
${replaceEmojies(DOMPurify.sanitize(post.account.display_name), post.account.emojis)} @${DOMPurify.sanitize(post.account.acct)}
+
${DOMPurify.sanitize(post.account.display_name)} @${DOMPurify.sanitize(post.account.acct)}
${post.media_attachments[0] ? `

` : ''}
-
${replaceEmojies(DOMPurify.sanitize(post.content), post.emojis)}
+
${DOMPurify.sanitize(post.content)}
${post.spoiler_text ? `
${DOMPurify.sanitize(post.spoiler_text)}
` : ''}
${timeAgo(secondsAgo(new Date(post.created_at)))}
@@ -193,16 +185,16 @@ const updateCarousel = function(slides, posts) {
else {
newHTML += ``;
}
- const postContent = replaceEmojies(DOMPurify.sanitize(post.content), post.emojis);
+ const postContent = DOMPurify.sanitize(post.content);
newHTML += `

-
${replaceEmojies(DOMPurify.sanitize(post.account.display_name), post.account.emojis)} @${DOMPurify.sanitize(post.account.acct)}
+
${DOMPurify.sanitize(post.account.display_name)} @${DOMPurify.sanitize(post.account.acct)}
-
700 ? `style="font-size: ${strip(postContent).length > 1000 ? `0.5`:`0.9`}em;"`: ``}>${postContent}
+
800 ? `style="font-size: 0.9em;"`: ``}>${postContent}
${post.media_attachments[0] ? `
` : ''}
@@ -218,7 +210,7 @@ const updateCarousel = function(slides, posts) {
newHTML += '
';
}
for( let i = 0; i < extraCards.length; i++ ) {
- newHTML += `
+ newHTML += `
${extraCards[i]}
@@ -349,7 +341,9 @@ $(document).ready(async function() {
const newPosts = await Promise.all(hashtagsArray.map(hashtag => fetchPosts(serverUrl, hashtag)));
let updated = updateWall(newPosts.flat());
if ( updated > 0 ) {
+ hideCarousel()
updateCarousel(slides, newPosts.flat());
+ setTimeout(async function() { showCarousel(); }, duration)
}
}, refresh);
} else {
diff --git a/styles.css b/styles.css
index 34f152b..3291ebf 100644
--- a/styles.css
+++ b/styles.css
@@ -51,9 +51,9 @@
}
.carousel .card-text {
- font-size: 1.6em;
+ font-size: 1.4em;
overflow: hidden;
- max-height: 50vh;
+ max-height: 60vh;
}
.card {
@@ -208,7 +208,7 @@ body {
.text-muted {
color:#6c757d !important;
- font-size: 1em;
+ font-size: 1.2em;
text-align: right;
}
@@ -223,8 +223,4 @@ body {
.footer a {
color: rgba(255, 255, 255, 0.8) !important;
-}
-
-.emoji {
- height: 1em;
}
\ No newline at end of file