title: Get, set and reset height using browser size and resize
body: <p>I'm still an amateur when it comes to JS, I would like to get the height of the browser window, and then get it to update on resize. Is this possible? (code below)</p>
  
  <pre><code>$(document).ready(function() {
      var winHeight = $(window).height(),
          winWidth = $(window).width();
  
      $('#wrap_project_horizontal_gallery').css({
          'height' : winHeight - 170
      });
  });
  </code></pre>
  
  <p>I've thought about using setInterval but there must be a better way. Thanks very much for the help</p>
  
  <p>EDIT: This needs to happen without a page refresh</p>