finds.dev← search

// the find

stephencelis/timeframe

★ 287 · JavaScript · MIT · updated Jul 2011

Click-draggable. Range-makeable. A better calendar.

A date-range picker widget from 2008–2011 that lets users click-drag across calendar cells to select a range. It requires Prototype.js, which tells you everything about how old this is. Strictly a historical artifact at this point.

The click-drag interaction model was genuinely clever for its era — most date pickers of the time only supported clicking individual start/end dates. The maxRange option to degrade it into a single-date picker is a nice touch. Localization via Datejs drop-in is clean: no separate config, just swap the dependency.

Depends on Prototype.js 1.6, a framework that has been dead for over a decade. Last commit was July 2011 — 15 years ago. No npm package, no module system, just a global constructor. Every modern alternative (Flatpickr, Pikaday, native date inputs) is a better choice in 2024, even if you only need the range UX.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →