How to add a conditional statement to a jQuery “on window resize” event handler I have these jQuery functions: