Skip to content

A module that changes the url path based on element attribute

Notifications You must be signed in to change notification settings

jampow/UrlChanger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL CHANGER

A javascript module that change the url based on element attribute

How to use

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>

TODO

  1. Test! Test! Test!
  2. Test in many browsers
  3. Get working in touch devices
  4. Change the initial configs passing a json to init

About

A module that changes the url path based on element attribute

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published