$(document).ready(function(){
var ua = navigator.userAgent; var checker = { iphone: ua.match(/(iPhone|iPod|iPad)/), blackberry: ua.match(/BlackBerry/), android: ua.match(/Android/) }; if (checker.android){ $('p.android-only').show(); } else if (checker.iphone){ $('h2.idevice-only').show(); $('p.idevice-only').show(); $('#top-nav').hide(); $('div.main-logo').hide(); $('div.idevice-only').show(); $('div.mac-only').hide(); } else if (checker.blackberry){ $('p.berry-only').show(); } else { $('p.unknown-device').show(); }
} );