remove unused utils.js

This commit is contained in:
juancwu 2026-01-07 09:52:45 -05:00
commit 262d1d17c1

View file

@ -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;
}