diff options
-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); |