Is there a for sure fire way to detect if a user is running in a laptop or not?
I have been working on a web application that is actually quite long heightwise compare to widthwise. When using the web app inside of a laptop running 1366x768 desktop resolution, i notice some of the output messages from my API(from the output of requests that the web app users as they are interacting with button clicks and such) are displayed near the middle of my web app which is way down the screen. On a laptop, if I were able to detect it, I could simultaneously execute some javascript to scroll down just slightly so the output message is in readable area of view port.
Anyone know a sure fire way to get the users resolution? not only that, i'd probably need a list of all the possible resolutions and which ones are laptop resolutions heh
I have been working on a web application that is actually quite long heightwise compare to widthwise. When using the web app inside of a laptop running 1366x768 desktop resolution, i notice some of the output messages from my API(from the output of requests that the web app users as they are interacting with button clicks and such) are displayed near the middle of my web app which is way down the screen. On a laptop, if I were able to detect it, I could simultaneously execute some javascript to scroll down just slightly so the output message is in readable area of view port.
Anyone know a sure fire way to get the users resolution? not only that, i'd probably need a list of all the possible resolutions and which ones are laptop resolutions heh