Skip to content

andreknieriem/redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redirect.js

Simple redirect script for mobile devices

Usage

Simple include redirect.js to your page

new Redirect({
	url: 'http://andreknieriem.de'
});

###Options

Property Required Default Type Description
url yes none string the url to the mobile page
cookieName no 'ShouldRedirect' string name of the cookie used
autoRedirect no false bool should the script redirect everytime if clicked on yes
question no 'Want to go to the mobile page?' string the string from the confirm prompt