aboutsummaryrefslogtreecommitdiff
path: root/assets/js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/index.js3
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);