Explore the community Forums Lectora Lectora Questions & Answers Mobile detection script

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #284153 Score: 0
    Profile photo of kimmarie
    kimmarie
    Member
    beginner
    intermediate
    curious george
    @kimmarie

    Is there a script you can add to to a Title to detect whether a user is on a mobile device or not? We are developing a program that will primarily be used on cell phones or tablets. However, if a user were to view it on a computer, I’d like it to show next/back buttons to replace the swipe functions, since obviously swiping would not work. Is this possible? Thanks!

    #288349 Score: 0
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    336 pts
    @ssneg

    Lectora does the browser detection for you and stores the result in a variable “BrowserType” that you can use. You can then show/hide the buttons based on the this variable.

    #288348 Score: 0
    Profile photo of kimmarie
    kimmarie
    Member
    beginner
    intermediate
    curious george
    @kimmarie

    Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.