Team:StanfordBrownSpelman/jquery.mobilesite
From 2014.igem.org
(Difference between revisions)
(Created page with "//Detects whether device being used to view site is mobile- if so, then redirect to mobile site if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigato...") |
|||
Line 1: | Line 1: | ||
//Detects whether device being used to view site is mobile- if so, then redirect to mobile site | //Detects whether device being used to view site is mobile- if so, then redirect to mobile site | ||
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { | if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { | ||
- | window.location = ' | + | window.location = 'https://2014.igem.org/Team:StanfordBrownSpelman/MobileSite' |
} | } |
Revision as of 20:48, 12 August 2014
//Detects whether device being used to view site is mobile- if so, then redirect to mobile site if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
window.location = 'https://2014.igem.org/Team:StanfordBrownSpelman/MobileSite'
}