12.06.2016, 14:45
(10.06.2016, 21:42)Erwin van der Zwart Wrote: Hi,
I don't think its possible to detect difference between iPad or iPhone as they use same user agent and same resolution.
The second item for color can be made easily by listener on object and change css on conditions.
See this post for starting point as it holds all the code you need, just adjust the css on the certain values:
http://forum.logicmachine.net/showthread.php?tid=319
BR,
Erwin
They define Ipad or Iphone in the user agent
Code:
var isIpad = navigator.userAgent.match(/iPad/i) != null;