I'm trying to get a jQuery function disabled on a mobile version, I followed the instructions -> here
However it doesn't work, here is my code:
var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ? true : false;
jQuery(document).ready(function(e) {
jQuery("body").mousemove(function(e) {
if(!isMobile) {
e.preventDefault();
dataslide = $(this).attr('.nk-navbar-default');
goToByScroll(dataslide);
}
jQuery(".nk-navbar-default").css( "opacity", "0.8");
setTimeout(function(e){
jQuery(".nk-navbar-default").css( "opacity", "0");
}, 2000);
});
});
Best!