Hi mobile Moodlers,
I'm developing a text filter for Moodle that inserts a small div with a "reading level" calculation displayed. Normally, it's aligned at the top-right of the first paragraph of text. However, on small screens it squishes the columns of text unacceptably. Please see: https://github.com/matbury/filter_readability/issues/1
Does Moodle provide a parameter that detects the user-agent, if it's a small screen, etc., e.g. $PAGE->user-agent?, so that I can change the layout for mobile devices, e.g. put the div at the bottom?
Is there an easier way?
Thanks in advance