abbr-touch
abbr-touch is a tiny JavaScript library that makes the title attribute of <abbr>
element touch accessible. It does so by utilising touchtap-event to only expose the functionality to touch-enabled devices, a custom touch handler can then be used to display <abbr>
's content any way you wish.
Install
npm install --save abbr-touch
Include
Usage
// default handler on document (alert); // default handler, apply to descendants of #some-element; // custom handler, apply to descendants of #some-element; { console; console; console; console;}
A deeper example of usage can be found in demo.html. A live demo can be viewed on Growing with the Web.