Demo website. Just a bit of single-page HTML.
Go to file
2011-09-14 18:42:23 -07:00
demo added js files to demo, empty pagify.js 2011-09-14 18:42:23 -07:00
pagify.js added js files to demo, empty pagify.js 2011-09-14 18:42:23 -07:00
README.md Edited README.md via GitHub 2011-09-14 17:12:30 -07:00

Pagify.js

A jQuery plugin for effortlessly creating single page web sites.

Usage

Load Pagify and jQuery:

<script src="jquery.min.js" type="text/javascript"></script>
<script src="pagify.js" type="text/javascript"></script>

Attach a div that will hold the content of each page by listing pages and options:

$('#page_holder').pagify({
    pages: ['home', 'about', 'contact'],
    default: 'home' // The name of a page or 'empty'
});

Show other pages by linking to hashes:

<a href='#contact'>Contact</a>

Note: Page content should be found in pagename.html and pagify will respond to #pagename

Options

pages - an array of page names

default - the page that is loaded by default or 'empty' for an empty div

animation - the jQuery animation that is used to show pages, i.e. fadeIn, show, slideUp, slideDown. show is used by default.

cache - true or false. Determines if all pages are loaded upfront or not. false by default.

Etc...

Created by @ChrisPolis

MIT License