jquery-hijax-button

0.0.2 • Public • Published

jquery-hijax-button

Build Status Coverage Status Dependency status devDependency status

jQuery collection plugin that changes anchor tag semantics and behaviour to button semantics and behaviour.

$(selector).hijaxButton();

Experimental

This plugin is still in an experimental state, until it reaches v1.0.0 you must consider all minor releases as breaking changes. Patch releases may introduce new features, but will be backwards compatible.

Install

npm install jquery-hijax-button

Example

Markup before plugin:

<a class="hijax-button" href="http://my.ebay.com">Link</a>

Markup after plugin:

<a href="http://my.ebay.com" role="button">Link</a>

SPACEBAR key now triggers a click event.

Development

Useful NPM task runners:

  • npm start for local browser-sync development.
  • npm test runs tests & generates reports (see reports section below)
  • npm run tdd test driven development: watches code and re-tests after any change
  • npm run build cleans, lints, tests and minifies

Execute npm run to view all available CLI scripts.

Reports

Each test run will generate the following reports:

  • /test_reports/coverage contains Istanbul code coverage report
  • /test_reports/html contains HTML test report
  • /test_reports/junit contains JUnit test report

CI Build

https://travis-ci.org/makeup-jquery/jquery-hijax-button

Code Coverage

https://coveralls.io/github/makeup-jquery/jquery-hijax-button?branch=master

Package Sidebar

Install

npm i jquery-hijax-button

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • ianmcburnie