I'm just trying to pick up on some better JavaScript skills and have created a very basic website that randomizes from an array of images or gifs.
The main page just has the gif or image that loads in and then when clicked or tapped the image randomizes from an array of available images.
What I am trying to do is when it is on mobile devices, when the user swipes right or left the browser will interpret this swipe as a 'click' and trigger the function to randomize.
If anyone can tell me how I can get this to work that would be great!!
Thanks in advance