i fixed it by teaching myself a little jQuery
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
for some reason I couldn’t get the userAgent.match for ipad to work so I put it in a php user agent check
<?php
$isiPad = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPad');
if(!empty($isiPad)){ // code goes here }
?>
Sorry I got moderated above. I’m a noob.
http://pastebin.com/eAapNLHR