A tool to detect units being hovered over and convert them from imperial to metric and vice versa. It will convert:
- mm <--> in
- cm <--> in
- meters <--> feet
- kilometers <--> miles
- grams <--> lbs
Require the library on pages where you want the function available to convert units
This tool specifically will only convert the units. When used in collaboration with a tooltip generator, hovering over a unit of one system will show the converted units of the other. E.g. hovering over "2cm" would generate a tooltip showing ".78in" and vice versa
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
TODO: Write history
Alek Hartzog Eric Hartzog
PHASE 1:
- Determine how to detect a numerical value followed by a unit symbol on hover
- Write script that will detect when a numerical value followed by a unit symbol being hovered over
- Create a set of unit conversions (inches to centimeters, feet to meters, etc and vice versa)
- Return the converted value
PHASE 2:
- Build or integrate a tooltip to show the converted value
- Package as a wordpress plugin
- Add tooltip themes
- Add ability for custom tooltip styling
- Add different tooltip locations