wesnolte / Pajinate

A jQuery Pagination Plugin
http://th3silverlining.com/2010/04/15/pajination-a-jquery-pagination-plugin/
MIT License
207 stars 97 forks source link

Give a class instead of hiding #38

Closed KittyGiraudel closed 5 years ago

KittyGiraudel commented 11 years ago

The main problem of hiding with .hide() is that search engine bots can't index the content, which can be pretty problematic.

I had to edit the plugin to fix the problem. Instead of directly hiding/showing items, I gave them a class to toggle. This class hides the content with CSS in order to make it indexable.

It would be cool if you could add the option to give a class to toggle instead of hide/show. You can still leave the hide/show thing as a default value.

Thanks a lot. :)

Edit: by the way, here is the class I used.

.visually-hidden { position: absolute; overflow: hidden; clip: rect(0 0 0 0); height: 1px; width: 1px; margin: -1px !important; padding: 0 !important; border: none; }

wesnolte commented 11 years ago

It probably faster your way too! Could you submit a pull request please :)