Skip to content

A jQuery plugin for third-party sites to attach an informative tooltip to section citations.

License

Notifications You must be signed in to change notification settings

statedecoded/statedecoded-jquery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

State Decoded jQuery

A jQuery plugin for third-party sites to attach an informative tooltip to section citations.

Built atop qTip, this will find every instance of a citation within the text of a page and wrap it in <span class="law">...</span> tags. Then it will use qTip to attach on-hover events to each of those span tags, which will issue a request to the site's API.

Each State Decoded site will distribute their own copy of this, customized with the regular expression for their legal code. It won't work with all localities—those that use non-unique section identifiers cannot provide references based on a simple regex. Sites may pre-populate the plugin with an API key, or they may require users to obtain their own API key.

About

A jQuery plugin for third-party sites to attach an informative tooltip to section citations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published