jquery-hijax-button
v0.0.2
Published
jQuery collection plugin that changes anchor tag semantics and behaviour to button semantics and behaviour
Maintainers
Readme
jquery-hijax-button
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-buttonExample
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 startfor local browser-sync development.npm testruns tests & generates reports (see reports section below)npm run tddtest driven development: watches code and re-tests after any changenpm run buildcleans, lints, tests and minifies
Execute npm run to view all available CLI scripts.
Reports
Each test run will generate the following reports:
/test_reports/coveragecontains Istanbul code coverage report/test_reports/htmlcontains HTML test report/test_reports/junitcontains 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
