Skip to content

Javascript library for loading pages within wrapper elements with AJAX

Notifications You must be signed in to change notification settings

themahabbat/routerJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RouterJS

Javascript library for loading pages within wrapper elements with AJAX

Dependencies

jQuery

Just include jQuery before

<script src="jquery.min.js"></script>

Usage

Parameters: element, attribute, wrapper, pushState

// Single element
Router(
    'a', 'href', 'body', true
)

// Multiple element
Router(
    ['a', 'button'],
    ['href', 'data-btn-link'],
    '#main', false
)

Releases

No releases published

Packages

No packages published