Fork of Selecting a Year on a Line Chart
✓ Published0🌍 Public
This interactive example shows four rounded squares that can be freely dragged and resized within a container. It demonstrates a direct manipulation technique where users can click and move any square or adjust its dimensions using the corner and edge handles, with the ability to reorder them into a grid layout. The implementation uses vanilla JavaScript called `app.js` for mouse event handling, including drag detection and eight-direction resizing logic, while persisting the square states to `localStorage` for session retention. The default styling via `styles.css` provides the visual handles and cursor cues for interaction.
AI-generated descriptionMIT Licensed