Pop up depending on screen size to ask for user to choose mobile/regular site

Permalink
Is there anyway to have a pop up whether html/php that asks the user if they want to do the mobile site or the regular site depending on their screen size. So all screen sizes under an Ipad size has this pop up come up so they can select which one they want to go to?

landollweb
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi landollweb,

Hopefully this helps point you in the rich direction. Concrete5 uses Mobile Detect for device detection. It tests based on the device User-Agent.and HTTP headers.

Maybe you could use that to control how your popups work.

https://github.com/concrete5/concrete5/blob/123948b89480ceaabbcfb2c0...
http://mobiledetect.net/