This code detects the width of the browser and runs the corresponding jQuery. Refresh the browser to see the background color of paragraph text change to either yellow if it is over 800px, or blue if it is under 800px. Note that the codepen embed has a max-width, so download to see the results.
Download this codeSee the Pen Responsive Jquery by Chris Shults (@christoa88) on CodePen.