Created
June 11, 2014 19:05
-
-
Save anneallen/3e4e760434dd79fe9977 to your computer and use it in GitHub Desktop.
Jquery bumper snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Snippet for make bumper screenheight -200px | |
jQuery(function ($) { | |
$('.bumper') .css({'height': ($(window).height()-200)+'px'}); | |
$(window).resize(function(){ | |
$('.bumper') .css({'height': (($(window).height()-200))+'px'}); | |
}); | |
/* You can safely use $ in this code block to reference jQuery */ | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment