Rocky_Mountain_Vending/.pnpm-store/v10/files/3f/ad52f717c7b07ce5d11573117630ed0748f9e8adda8ba77479c0c97ab0a20ec9d810c1e3405849be9bdb637e66690855da5dd6cd9a8cfa414164d5305611e3
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

13 lines
No EOL
368 B
Text

import getWindow from './isWindow';
import offset from './offset';
/**
* Returns the height of a given element.
*
* @param node the element
* @param client whether to use `clientHeight` if possible
*/
export default function height(node, client) {
var win = getWindow(node);
return win ? win.innerHeight : client ? node.clientHeight : offset(node).height;
}