Currently, I am attempting to deactivate a script when the width of the window falls below 700px. Despite reviewing suggestions from various sources, I have not been successful so far.
window.onresize = function () {
if(window.innerWidth < 700) {
$(window).bind('scroll', function() {
if ($(window).scrollTop() > 100) {
$('#projectinfo').hide();
} else {
$('#projectinfo').show();
}
});
}
}