I am looking for a way to disable qtip2 hints when my site is viewed on a mobile device. In a desktop browser, tooltips appear when you hover, on a mobile device they appear when text input is touched (to which most of them are attached, through title = ""). I can only leave by touching somewhere else, and I doubt that the end user will see this before it annoys him.
Looking in the API and looking here in SO, a few solutions that I used do not work for me. Here is what I tried:
$('[title!=""]').qtip({
style: 'qtip-tipsy',
position: {
target: 'mouse',
adjust: { x: 5, y: 15 }
}
});
if ($(window).width() < 960) {
alert('Less than 960');
$('[title!=""]').qtip('destroy', true);
}
else {
}
});
, , 960, , , , .
, craigsworks.com, hide disable ( , ), "destroy",
"position" });
api , , , , .
:
var tooltips = $('[title!=""]').qtip({
style: 'qtip-tipsy',
position: {
target: 'mouse',
adjust: { x: -5, y: -15 }
}
});
var api = tooltips.qtip('api');
if ($(window).width() < 960) {
alert('Less than 960');
$tooltips.qtip('destroy', true);
}
else {
}
});
( , , , / , : ). , , , , .