diff options
author | tdro <tdro@noreply.example.com> | 2023-11-30 17:11:23 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-11-30 17:11:23 -0500 |
commit | 602e7058ed234db7d18a2225c68323c089fe0622 (patch) | |
tree | fe0a07935bb3a395d39a5b3e91e848bb28a2bc59 /assets/js | |
parent | 6fd0be790c4cd6e68374f6b88f9e60c74cbb4004 (diff) | |
download | canory-602e7058ed234db7d18a2225c68323c089fe0622.tar.gz canory-602e7058ed234db7d18a2225c68323c089fe0622.tar.bz2 canory-602e7058ed234db7d18a2225c68323c089fe0622.zip |
static/js/timeago: Cover scroll
Diffstat (limited to 'assets/js')
-rw-r--r-- | assets/js/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/assets/js/index.js b/assets/js/index.js index c5f8ba9..78fb432 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -684,6 +684,9 @@ } }; const substitution = setInterval(date, 4); + self.addEventListener("scroll", function() { + date("viewport"); + }); self.addEventListener("DOMContentLoaded", function() { setTimeout(function() { clearInterval(substitution); |