Open krisgardner opened 7 years ago
It seems the Confirmit function to detect tablets doesn’t quite work for ipads.
Which isn’t ideal if you want to show a smaller logo in the top right hand corner of our template – where you have a mobile and desktop image size!
But there is a way to detect it – this returns true or false and can be run on the question
var ipadCheck : boolean = /ipad/i.test(Request.ServerVariables['HTTP_USER_AGENT'])
Example here:
NFL IGS (round 2) QUAL RECRUITMENT PROG (p1860252726) showRightLogo()
It seems the Confirmit function to detect tablets doesn’t quite work for ipads.
Which isn’t ideal if you want to show a smaller logo in the top right hand corner of our template – where you have a mobile and desktop image size!
But there is a way to detect it – this returns true or false and can be run on the question
var ipadCheck : boolean = /ipad/i.test(Request.ServerVariables['HTTP_USER_AGENT'])
Example here:
NFL IGS (round 2) QUAL RECRUITMENT PROG (p1860252726) showRightLogo()