Skip to content

Instantly share code, notes, and snippets.

View papaponmx's full-sized avatar

Jaime Rios papaponmx

View GitHub Profile
@braddown
braddown / mobile-browser-detect
Created August 3, 2012 04:47
Link for App Download - Mobile OS Detection and Redirect Download Link to Appropriate App Store
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Redirect</title>
<script type="text/javascript"> // <![CDATA[
//iPhone Version:
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
window.location = "http://goo.gl/IWd7J";
}