« Jython and Django | Main | Cast a date to Unix timestamp in Postgres »
October 30, 2011
Detect an iPad and provide a non-Flash alternative
try{ ["iPad","iPod","iPhone"].each(
function(i){
if(navigator.userAgent.indexOf(i) > -1){
//Do iPad stuff here
}
}); } catch(e){ var meh = 'meh'; }
Tags: JavaScript , jQuery
Posted by pj at October 30, 2011 08:40 PM