Team:StanfordBrownSpelman/jquery.mobilesite

From 2014.igem.org

Revision as of 23:00, 11 August 2014 by Jotthek (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

//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'

}