How do I Javascript swipe to move my first person?

Hi, all.
I’m creating a very simple information based app with Unity. My first person character is in a small area looking around. I know this would be really simple but I don’t know where to find the information. I would like to NOT use joysticks but I want the user to “swipe” left to turn left and “swipe” right to turn right. I code in Javascript. Can someone please direct me to where I may find this information? I looked on old Answers postings but all I can find is scripting that just has the swipe info and not how to turn the first person character.

Thanks so much for any help you may offer.

These links should help with how to detect a swipe movement, and from that create variables that could be used to move or rotate a character :