This directory contains example implementations demonstrating the capabilities of the Invokers library, including Interest Invokers (hover cards, tooltips) and Command Invokers.
File: interest-invokers-demo.html
A comprehensive demonstration of Interest Invokers functionality including:
- GitHub-style profile hover cards with rich interactive content
- API documentation quick reference tooltips for code snippets
- Wikipedia-style reference citations with expandable tooltips
- Interactive help system with customizable delay timings
- Integration examples showing Interest Invokers working alongside Command Invokers
-
Multiple Input Methods
- Mouse hover with configurable delays
- Keyboard focus navigation
- Touch device long-press support
- Escape key to dismiss all hover cards
-
Accessibility
- Screen reader compatible tooltips and hover cards
- Proper ARIA attribute management
- Keyboard navigation support
- Touch device accessibility
-
Integration with Command Invokers
- Elements with both
commandandinterestforattributes - Command chaining triggered by interest events
- Seamless coexistence of both systems
- Elements with both
-
Customization Options
- CSS custom properties for timing control
- Different popover types (
hintvsauto) - Custom styling and animations
- Event-based integrations
- Clone this repository
- Open
examples/interest-invokers-demo.htmlin a modern browser - Hover over various elements to see Interest Invokers in action
- Try keyboard navigation (Tab to focus, Escape to dismiss)
- On touch devices, use long-press gestures
The demo showcases:
- Proper HTML structure with semantic markup
- CSS custom properties for delay timing
- Integration with the main Invokers library
- Debug logging to browser console
- Progressive enhancement principles
All functionality works without custom JavaScript - everything is declarative HTML with the Invokers library handling the interactions.
File: number-input-demo.html
A demonstration of native browser commands for number input controls, specifically the step-up and step-down commands that work without the -- prefix.
-
Native Commands
step-up- Increment number input valuesstep-down- Decrement number input values- No
--prefix required (unlike custom commands)
-
Number Input Features
- Different step values (1, 0.25, 100)
- Min/max constraints
- Visual feedback and displays
- Real-world examples (shopping cart, temperature control)
-
Comparison with Custom Commands
- Native
step-up/step-downvs custom--input:stepcommands - Performance and simplicity benefits of native commands
- Native
-
Practical Applications
- Shopping cart quantity controls
- Temperature/setting adjustments
- Form input stepping with constraints
- Clone this repository
- Open
examples/number-input-demo.htmlin a modern browser - Use the + and − buttons to step number inputs
- Try different step values and constraints
- Compare native vs custom command approaches
The demo showcases:
- Native browser commands without
--prefix - Proper HTML number input attributes (
min,max,step) - Visual feedback with JavaScript event listeners
- Comparison between native and custom command approaches
- Real-world usage patterns
This demonstrates how Invokers extends native browser functionality while maintaining standards compliance.