diff options
author | Josh Angell <josh@supercooldesign.co.uk> | 2012-02-21 14:33:03 +0000 |
---|---|---|
committer | Josh Angell <josh@supercooldesign.co.uk> | 2012-02-21 14:33:03 +0000 |
commit | eb98881fbfb3cefdf7c6c6ac16983462671c9f36 (patch) | |
tree | 02f22f24c9132b38fe645eb971214f4776f82347 /web/js | |
parent | 94881249acb62461d6cb53a2247aee0727db814e (diff) |
Desktop js heightfix and some comments
Signed-off-by: Josh Angell <josh@supercooldesign.co.uk>
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/fixmystreet.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js index 75ccc3a9c..6abec282c 100644 --- a/web/js/fixmystreet.js +++ b/web/js/fixmystreet.js @@ -75,9 +75,16 @@ function tabs(elem) $(function(){ + //add mobile class if small screen if(Modernizr.mq('only screen and (max-width:47em)')) { $('html').addClass('mobile'); } + //heightfix the desktop .content div + if(Modernizr.mq('only screen and (min-width:48em)')) { + if (!($('body').hasClass('frontpage'))){ + heightFix(window, '.content', -176); + } + } $('html').removeClass('no-js').addClass('js'); @@ -272,6 +279,9 @@ $(function(){ }); + /* + * Show stuff on input focus + */ $('.form-focus-hidden').hide(); $('.form-focus-trigger').on('focus', function(){ $('.form-focus-hidden').fadeIn(500); |