Posted By

gorillaagent on 03/24/14


Tagged

javascript the above responsive Fold


Versions (?)

Above The Fold JS


 / Published in: JavaScript
 

URL: http://gorillaadvertising.net/2014/03/23/above-the-fold-js/

Anyt

  1. $(document).ready(function() {
  2.  
  3.  
  4. $( ".above-the-fold" ).each(function(){
  5. var $this = $(this);
  6. $this.css({'min-height':($(window).height())+'px'});
  7. $(window).resize(function(){
  8. $this.css({'min-height':($(window).height())+'px'});
  9. });
  10. });
  11. });

Report this snippet  

You need to login to post a comment.