A function to check whether a page is viewed from a mobile device. Returns true or false. Add to the top of your JavaScript and use the following condition check:
if (window.mobilecheck() === false) { ... }
Change the Boolean value in the if
condition to run code only when page is viewed from mobile browser.