route32
v1.0.0
Published
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
Downloads
5
Maintainers
Readme
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
Buy Me a Beer, Starbucks Expresso or send a cheese burguer ... Paypal.
<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>
[]