Categories
Plugins

jquery-easy-label

jQuery-Easy-Label
This JS allows you to add removable sticky label (with cookie state check)into your form or web page.
This comes in handy if you want to show some informative or help text to your user which once they have read (by clicking Remove button)
, they should not be prompted to show the same text anymore.
Include the easy.stickypost.css and easy.stickypost.js after the jquery.js file.
Specify a data attribute data-stickyid=”xx” to any HTML object that you wants it to be Removable.
See demo/demo.html file for a simple demo. Some configuration can be done:

Specifying the Color (e.g. ‘color’: ‘orange’ as parameter)
Specifying your own Delete button. HTML support
Changing the Tooltip text when hover.
Specifying a label which is removable and Always show.

e.g.
$(“#tips1”).stickypost({‘tooltip’: ‘alamak’,’pin’: ‘x‘});
$(“#tips2”).stickypost({
‘cached’:false,
‘tooltip’: ‘Click here to close it temporarily’,
‘pin’: ‘‘,
‘color’: ‘orange’
});

HTML     Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus rutrum nibh ut rhoncus congue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

    Nulla nec egestas enim. Donec porttitor, quam cursus faucibus facilisis, magna ex condimentum ipsum, a sagittis nulla libero ac velit. Nunc scelerisque arcu eleifend, pellentesque lectus et, porta urna.

    Aliquam fringilla, dolor ut gravida porttitor, urna risus auctor libero, eget dapibus ante sem et ante. Proin erat orci, pulvinar ac tincidunt a, blandit a risus.

The data-stickyid is used as cookie cache checking. Avoid using the same ID.

GitHub Repo