Skip to content
/ Route32 Public

Simple Javascript jQuery Anchor Location Router, executes callback on location hash change that matches declared routes. Intenteded to be use as a piece on javascript mvvm mvc apps

Notifications You must be signed in to change notification settings

rgarro/Route32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Route32

Simple Javascript jQuery Anchor Location Router, executes callback on location hash change that matches declared routes. Intenteded to be use as a piece on javascript mvvm mvc apps

npm i route32

Buy Me a Beer, Starbucks Expresso or send a cheese burguer ... Paypal.

npm i route32

<ul>
   <li><a class="nav" href="#/caribean/">Caribean</a></li>
   <li><a class="nav" href="#/centralvalley/">Central Valley</a></li>  
</ul>
<script type="text/javascript">
			$(document).ready(function(){

				var router = new Route32({
					'automatic':true
                });

				router.add('#/caribean/',function(){
			      // your navigation silently driving to your callback
				});    

				router.drive();    
			});
</script>		

[Maneje Despacio]

About

Simple Javascript jQuery Anchor Location Router, executes callback on location hash change that matches declared routes. Intenteded to be use as a piece on javascript mvvm mvc apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published