Created
August 8, 2014 14:46
-
-
Save yratof/20102a6a7f78d0686161 to your computer and use it in GitHub Desktop.
jQuery load on window load. But actually work.
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
<script type="text/javascript"> | |
// jQuery Closure mode | |
(function($){ | |
$(window).load(function(){ | |
var resize = function() { | |
$('.masthead > div').equalise(); | |
}; | |
$(window).resize(resize); | |
resize(); | |
}); | |
})(jQuery); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment