Home › Forums › JavaScript › Script not disabling jQuery for Mobile Devices › Re: Script not disabling jQuery for Mobile Devices
January 9, 2013 at 2:45 pm
#120425
Member
Josh,
I was using the script from their demo and then adding a window resize option. Since the overlay function worked, I figured that their plugin .js file (jQuery.thumbFX.js) referred to .code-trigger in some way.
But I have changed that now to .overlayer .overlay to refer directly to the HTML and CSS…but am still having the same problem.
And yes, I do want it this to be disabled on both window resize and loading in mobile devices.
$(document).ready(function() {
if ( $(window).width() > 767) {
$(‘.overlayer .overlay’).click(function(){
$(this).next().slideToggle();
});
}
});