simplehide-js

1.0.0 • Public • Published

Build Status

simplehide.js plugin development template

It's lightweight and supe siple JQuery plugin for showing/hiding any HTML dom elements where jquery.hide().

DEMO

HERE

Demo gif

Install

Install simplehide.js with npm:

$ npm install

Then include it in your HTML:

<script src="/node_modules/simplehide-js/simplehide.min.js"></script>

or with Webpack:

require('simplehide-js');

Use

$('#someIndex').simplehide();

$('customHTMLTag').simplehide();

$('.customClass').simplehide();

As I mentioned is super simple. Now those elements will be hidden and (by default) Show.... link will be displaye instead. You can change link text by calling simplehide() with some options

$('#someIndex').simplehide({
  lessLink: 'showLink: '<a href="#">Versions...</a>''
});

Contributing

Feel free to post any pull request.

Building

Run

$ npm run build

or

$ gulp compress

to build minified, unglified file.

Testing

Run

$ npm run test

to test all possibile functions.

Licence

MIT. © Rafal Woloszyn

Please see LICENSE file in master branch.

Package Sidebar

Install

npm i simplehide-js

Weekly Downloads

23

Version

1.0.0

License

MIT

Unpacked Size

173 kB

Total Files

10

Last publish

Collaborators

  • rwoloszyn