diff --git a/resources/static/pages/about.js b/resources/static/pages/about.js new file mode 100644 index 0000000000000000000000000000000000000000..1dd98088ea69712835916cc1158ccbfff9daa316 --- /dev/null +++ b/resources/static/pages/about.js @@ -0,0 +1,31 @@ +/*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); diff --git a/resources/views/about.ejs b/resources/views/about.ejs index dfdeba036ae1e32c4470c9530e9b96b6a31d2792..1717fe6ab8cbc89636807e09bb74c3ade0a965eb 100644 --- a/resources/views/about.ejs +++ b/resources/views/about.ejs @@ -46,3 +46,4 @@ </div><!-- #dashboard --> </div> +<%- cachify_js('/pages/about.js') %> \ No newline at end of file