Skip to content

Commit

Permalink
Merge branch 'dimdenGD:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanstory authored Sep 26, 2023
2 parents a512d26 + cc082bc commit 3561ef5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions layouts/home/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,12 @@ setTimeout(async () => {
appendTweet(tweet, document.getElementById('timeline'), { prepend: true, bigFont: tweet.full_text.length < 75 });
setTimeout(fixTweetThreadLine, 100);
});
document.getElementById('home').addEventListener('click', e => {
if(document.documentElement.scrollTop > 500) {
e.preventDefault();
window.scrollTo(0, 0);
}
});

if(location.hash === "#dm") {
setTimeout(() => {
Expand Down

0 comments on commit 3561ef5

Please sign in to comment.