aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/fixmystreet.js
diff options
context:
space:
mode:
authorJosh Angell <josh@supercooldesign.co.uk>2012-02-13 16:17:51 +0000
committerJosh Angell <josh@supercooldesign.co.uk>2012-02-13 16:17:51 +0000
commit774f98a73fa94bd74156654e9f45463f8a3d7be4 (patch)
tree3298754211a690fc82ef857a520a880777249a10 /web/js/fixmystreet.js
parent6a1c21c7a782ffacac1c60c6035516199b4d26cb (diff)
Add moderniser and query it to see if we're on mobile, if we are add a class to <html>, hide #report-a-poblem-sidebar
Signed-off-by: Josh Angell <josh@supercooldesign.co.uk>
Diffstat (limited to 'web/js/fixmystreet.js')
-rw-r--r--web/js/fixmystreet.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js
index b1a8f1889..c3de39b48 100644
--- a/web/js/fixmystreet.js
+++ b/web/js/fixmystreet.js
@@ -31,6 +31,9 @@ function form_category_onchange() {
}
$(function(){
+ if(Modernizr.mq('only screen and (max-width:48em)')) {
+ $('html').addClass('mobile');
+ }
$('html').removeClass('no-js').addClass('js');
@@ -190,4 +193,5 @@ $(function(){
});
}
-});
+ $('.mobile #report-a-poblem-sidebar').hide();
+}); \ No newline at end of file