Suggestion Auto Unit Conversion

Please register or login

Welcome to ScubaBoard, the world's largest scuba diving community. Registration is not required to read the forums, but we encourage you to join. Joining has its benefits and enables you to participate in the discussions.

Benefits of registering include

  • Ability to post and comment on topics and discussions.
  • A Free photo gallery to share your dive photos with the world.
  • You can make this box go away

Joining is quick and easy. Log in or Register now!

OP
Griffo

Griffo

Contributor
Messages
1,364
Reaction score
684
Location
Sydney, Australia
# of dives
200 - 499
I've seen on other forums where some key words in posts automatically are given a hover-over popup with some alternate text.
I was wondering if it might be possible to code some basic unit conversions covering
  • Depth - 50 ft or 50ft would have a hover-over showing 15m (and visa versa)
  • Pressure - PSI to Bar and the reverse showing Bar etc
It sure would make it much easier for people to read article. For someone who grew up metric converting dozens of different measurements mentally gets tiring.

I'm sure the scope could be widened later if it got traction for other units, but those two would cover the vast majority of posts and have a pretty simple regex match.
 
We do have a tooltip function that can be used manually. For example, let your pointer hover over 60M and a tooltip will pop. The BB-code looks like this:

[sbtooltip="197'"]60M[/sbtooltip]

 
https://www.shearwater.com/products/perdix-ai/

Back
Top Bottom