Skip to content

odmarkj/JS-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 

Repository files navigation

/*
USAGE

You'll have to set the mobile domain and the location of the script.
*/

<script type="text/javascript"> 
//CONFIGURATION
var websitez_mobile_detection_api = {
	current_domain: document.domain,
	redirect_mobile_visitor: true,
	mobile_website_url: 'http://m.domain.com',
	insert_mobile_website_footer_override_link: true
}
</script> 
<script type="text/javascript" src="http://remotedomain.com/is_mobile.php"></script> 

About

Client side JS that fetches server side PHP to detect mobile devices.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages