PjaxRouter
Pjax Router for static websites.
demos
supported
IE10+ and others.
Usage
Both standalone lib and NPM package are available.
Standalone
NPM
$ npm install --save pjax-router
then
;
var router = // trigger for Pjax link triggers: 'a' // ignore selectors for Pjax link ignores: 'a.ignore' // replace target areas selectors: 'title' '.sandbox1' '.sandbox2' // callback for page transition. called when ajax has done switches: { documenttitle = newElinnerHTML; } { documentinnerHTML = newElinnerHTML; } { documentinnerHTML = newElinnerHTML; } ; // eventsrouter;router;router;router;router;