From 262d1d17c1fa00c1fd117d3da0dc78b40b3df4c0 Mon Sep 17 00:00:00 2001 From: juancwu <46619361+juancwu@users.noreply.github.com> Date: Wed, 7 Jan 2026 09:52:45 -0500 Subject: [PATCH] remove unused utils.js --- static/utils.js | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 static/utils.js diff --git a/static/utils.js b/static/utils.js deleted file mode 100644 index 4623089..0000000 --- a/static/utils.js +++ /dev/null @@ -1,14 +0,0 @@ -function isElementInView(elementID) { - const element = document.getElementById(elementID); - const rect = element.getBoundingClientRect(); - const windowHeight = - window.innerHeight || document.documentElement.clientHeight; - const windowWidth = - window.innerWidth || document.documentElement.clientWidth; - - // check if element is completely in view - const isInHorizontalView = rect.left >= 0 && rect.right <= windowWidth; - const isInVerticalView = rect.top >= 0 && rect.bottom <= windowHeight; - - return isInHorizontalView && isInVerticalView; -}