Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
// execute function after the page has isbeen loaded
$(function(){
  // the resize function
  function resize() {
    $('.page').css('height', $(window).height());
  }
  
  // register the event handler
  $(window).on('resize', resize);
 
  // calculate initial height
  resize();
});

...