Team:StanfordBrownSpelman/jquery.mobilesite

From 2014.igem.org

(Difference between revisions)
Jotthek (Talk | contribs)
(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...")
Newer edit →

Revision as of 23:00, 11 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 = 'mobileSite.html'

}