aeurielesn / loadify.js

Loadify.js = jQuery + Anchors + Ajax + HTML5 History API.

Home Page:https://github.com/aeurielesn/loadify.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loadify.js

This script turns your Loadify.js-enabled anchors into Ajax calls and loads the HTML response into a desired page element. It also uses the HTML5 History API to modify the location accordingly.

The code is based on GitHub's Tree Slider and my own needs.

Usage

Load Loadify.js.

<script src="/assets/js/Loadify.js" type="text/javascript"></script>

Add data-loadify-target attributes to the anchors you want to enable Loadify.js with the target element where you want to load the response as value.

<a href="usage.html" data-loadify-target="#content">Usage</a>

Enjoy.

About

Loadify.js = jQuery + Anchors + Ajax + HTML5 History API.

https://github.com/aeurielesn/loadify.js


Languages

Language:JavaScript 100.0%