I have seen this thread
What is the best way to detect a mobile device in jQuery?
but it does not solve the question on how to determine, if the device is a tablet, or a smartphone.
ipod or ipad ok. But there are android devices for tablets and smartphones
Is there a way and if yes, how?