// the find
stephencelis/timeframe
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.