From 602e7058ed234db7d18a2225c68323c089fe0622 Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 30 Nov 2023 17:11:23 -0500 Subject: static/js/timeago: Cover scroll --- assets/js/index.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'assets/js') 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); -- cgit v1.2.3