What I want to do is create a file for web and one as a web app (for use on mobile) and add code to each that will detect what device the user is viewing it on. If the user is viewing the web link on a mobile device I want it to detect that and redirect them to the web app (mobile version). If the user is viewing the mobile link from a desktop I want it to detect that and redirect them to the web version. Now i'm no coder so I've googled this and found a few options that didn't work like:
1 answer
Accepted answer
I figured it out, first off I did not add any code within the in5 export window. I exported normally and did not edit the code it exported. I used the method presented on http://detectmobilebrowsers.mobi I added their mobile_device_detect.php file on the same level as the index.html along with a second php file with the following code in it
Nice! Glad you found a solution that works for you. :-)
in5 team · 2017-10-27