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