Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.
/ abbr-fill.js Public archive

Efficiently wraps acronyms/abbreviations in abbr tags with their relevant title attributes.

License

Notifications You must be signed in to change notification settings

Tyriar/abbr-fill.js

Repository files navigation

abbr-fill.js

Build Status Code climate

Efficiently wraps acronyms/abbreviations in abbr tags with their relevant title attributes.

Usage

abbrFill({
  // Executes the script for each element matching the selector
  'selector': 'article',
  // An array of terms to create <abbr> elements for
  'terms': {
    'XML': 'Extensible Markup Language',
    'HTML': 'HyperText Markup Language',
    'SEO': 'Search Engine Optimisation',
    'WCAG': 'Web Content Accessibility Guidelines',
    'W3C': 'World Wide Web Consortium',
    'URL': 'Uniform Resource Locator',
    'URLs': 'Uniform Resource Locators'
  }
});

Building

npm install
grunt

Testing

grunt test

See also

About

Efficiently wraps acronyms/abbreviations in abbr tags with their relevant title attributes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published