f(/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(navigator.userAgent)) { $('#nav').addClass('is-mobile') $('footer').addClass('is-mobile') $('#top-container').addClass('is-mobile') }