- Full-featured monitoring dashboard for local web apps - Real-time status tracking with uptime percentages - Visual sparklines for status history - Add/Edit/Delete apps dynamically - Categories and color coding - Auto-refresh every 30 seconds - API endpoints for apps and status management
13 lines
292 B
TypeScript
13 lines
292 B
TypeScript
/**
|
|
* Returns the relative position of a given element.
|
|
*
|
|
* @param node the element
|
|
* @param offsetParent the offset parent
|
|
*/
|
|
export default function position(node: HTMLElement, offsetParent?: HTMLElement): {
|
|
top: number;
|
|
left: number;
|
|
height: number;
|
|
width: number;
|
|
};
|