Have a look here:
<script>
jQuery(function () {
if (jQuery(window).width() > 600) {
// YOUR CODE HERE
}
jQuery(window).on('resize', function () {
if (jQuery(window).width() > 600) {
// YOUR CODE HERE
}
});
jQuery(window).on('resize', function () {
if (jQuery(window).width() <= 600) {
// YOUR DISABLING CODE HERE
}
});
});
</script>
Maybe you need to adjust it with this:
http://laytheme.com/documentation.html#custom-javascript
But that should cover it.
Best!
Marius