npm

Need private packages and team management tools?Check out npm Orgs. »

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.

install

npm i simplehide-js

Downloadsweekly downloads

1

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability