I have using redirection-mobile.js for detecting the mobile device. The code for the same is as follows:
if (screen.width < 574) {
var ref = document.referrer;
var urls = new Array("http://127.0.0.1/eflip","http://127.0.0.1/eflip");
var n = ref.match(urls[0]);
var m = ref.match(urls[1]);
if ((m!==null) || (n!==null)) {
stop;
}
else if (ref=='') {
var r = confirm("Small Display is Detected.\nClick \"OK\" for MOBILE SITE.");
if (r==true) {
}
else {
stop ;
}
}
else
{
window.location = "http://127.0.0.1/eflip";
}
}
if (r==true)
is the condition to detect the mobile device. Now I want to remove all the hover effects. I have tried $('element').removeClass()
, but its not working.
Every Help and Comment will be highly appreciated. Thanks to all in advance :-)