mayacakmak / se2

Control interfaces for manipulating SE2 configurations
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Browser/system check #14

Closed mayacakmak closed 4 years ago

mayacakmak commented 4 years ago

We probably need to tell people to use Chrome on a desktop. Could we automatically detect if people are on a mobile device and not let them participate? @KaviMD

kavidey commented 4 years ago

Yes, I can add a check to instructions.html. If they are on a mobile device should we just redirect them to a page that asks them to load the page on a desktop?

kavidey commented 4 years ago

I just added code to instructions.html that redirects any mobile users to mobile.html (mobile.html instructs the user to load https://mayacakmak.github.io/se2/instructions.html on a desktop or laptop computer)

mayacakmak commented 4 years ago

Yes! Either redirect or change the content of instructions.html to say something like "Sorry, this study is not available on a mobile device. Please use a Chrome bowser on a personal computer (laptop or desktop)." and for the browser error "Sorry this study requires a Chrome browser" (maybe it works fine on other browsers, but might not be worth the time testing).

kavidey commented 4 years ago

I added a separate clearer error for mobile vs chrome like you suggested (I tested the mobile device detection against several androids an iPhones, and the browser detection against Safari, Firefox, and Microsoft Edge)

mayacakmak commented 4 years ago

Awesome!