Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Script not disabling jQuery for Mobile Devices Re: Script not disabling jQuery for Mobile Devices

#120425
DesignLady94
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();
});
}

});