Skip to content
Snippets Groups Projects
Commit f0fc8b36 authored by Sawyer Hollenshead's avatar Sawyer Hollenshead
Browse files

Add about.js for equal height boxes

parent feaf39be
No related branches found
No related tags found
No related merge requests found
/*globals BrowserID:true, $:true*/
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
(function($) {
// Homepage half blurbs should be same height when they're next to eachother
$(window).load(function(){
// Get tallest blurb
var tallestBlurb = 0
//var blurbPadding = parseInt($('.half').css('paddingTop')) * 2;
$('.half').each(function(index){
var $this = $(this);
if(index == 0){
tallestBlurb = $this.height();
} else {
if( $this.height() < tallestBlurb ){
$this.css('min-height', tallestBlurb);
} else {
$('.half.first').css('min-height', $this.height());
}
}
});
});
})(jQuery);
......@@ -46,3 +46,4 @@
</div><!-- #dashboard -->
</div>
<%- cachify_js('/pages/about.js') %>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment