What?
Pagify is a simple jQuery plugin that simply replaces the contents of a div with content from other html files.
Why?
Pagify does nothing that couldn't be done before with good 'ol jQuery.
It does however, provide the following advantages:
- Simple - include pagify.js, create a div, make one jQuery call and you're done!
- Lightweight - pagify.js is far less than 100 lines of code, well commented and easy to understand and extend!
- Flexible - Get started by only specifying a list of pages or customize animations, default pages and caching!
- Fast - Load all pages upfront or load on the fly; a simple $.get() is used to get content with minimal proccessing!
- Clean - Replace long HTML files broken up into sections and verbose JS to do the simple task of switching content!
- Couldn't find an adjective... - Uses only Javascript and HTML so it can be uploaded like any other static site!
I created Pagify because I noticed that my code for single page sites was getting ugly and I was reusing most of the jQuery code for page switching.
Who?
Created by @ChrisPolis
...and you - Fork me on GitHub!