Skip to content

xlune/jQuery-SmartPage-Plugin

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

#jQuery SmartPage Plugin

blog(ja)


###USAGE EXAMPLE

$(document).smartPage({
    useHistoryState: true,
    useHash: true,
    endPoint: "http://blog.xlune.com/",
    fixedEndPoint: true,
    fragment: "#!",
    useIE9: false,
    pageRules: [
            [/^https?:\/\/blog\.xlune\.com\//i, true],
            [/(\/|\.html)((\?|#).*)?$/i, true],
            [/\/vgrid\//i, false],
            [/\/gcomplete\//i, false]
    ],
    baseList: [
            "title",
            "meta[property='og:title']",
            "meta[property='og:url']",
            "link[rel='canonical']",
            "#contents > article"
    ],
    insertList: [
            "title",
            "meta[property='og:title']",
            "meta[property='og:url']",
            "link[rel='canonical']",
            "#contents > article"
    ],
    scriptDelay: 100,
    useFragmentClear: true,
    
    useCSSFade: true,
    useFade: true,
    useScrollTop: true,

    onStart: function(){/*any*/},
    onChange: function(){/*any*/},
    onComplete: function(){/*any*/},
    onScriptComplete: function(){/*any*/},
    onError: function(){/*any*/}
});

About

jQuery plugin for page transition (using pushState / Hash fragment)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published