A javascript module that change the url based on element attribute
Add markers to your html document
<div data-url="/some-url.html">
...
</div>
<div data-url="/other-url.html">
...
</div>
Call the lib and call the init method
<script type="text/javascript" src="/js/urlChanger.js"></script>
<script type="text/javascript">
urlChanger.init();
// pass true to the init function if you want a visual debug
</script>
- Test! Test! Test!
- Test in many browsers
- Get working in touch devices
- Change the initial configs passing a json to init