aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/fixmystreet.js
diff options
context:
space:
mode:
authorJosh Angell <josh@supercooldesign.co.uk>2012-02-15 15:01:43 +0000
committerJosh Angell <josh@supercooldesign.co.uk>2012-02-15 15:01:43 +0000
commitea6543c657c974bb22fed02f0fe491de06f41d0a (patch)
tree79ac70a226a1bc2d99c2c6d878eb28605665a72c /web/js/fixmystreet.js
parentd80f9b746a502a9c309573fa906d31878844b41e (diff)
More styling on report and around pages
Signed-off-by: Josh Angell <josh@supercooldesign.co.uk>
Diffstat (limited to 'web/js/fixmystreet.js')
-rw-r--r--web/js/fixmystreet.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js
index 7a512fdf5..9cb48bb9d 100644
--- a/web/js/fixmystreet.js
+++ b/web/js/fixmystreet.js
@@ -240,7 +240,7 @@ $(function(){
heightFix('#report-a-poblem-sidebar:visible', '.content', 26);
}
- //show/hide on mobile
+ //show/hide notes on mobile
$('.mobile #report-a-poblem-sidebar').after('<a href="#" class="rap-notes-trigger button-right">How to send successful reports</a>').hide();
$('.mobile').on('click', '.rap-notes-trigger', function(e){
e.preventDefault();
@@ -255,14 +255,17 @@ $(function(){
$('#report-a-poblem-sidebar').appendTo('.rap-notes').show().after('<a href="#" class="rap-notes-close button-left">BACK</a>');
}
});
-
$('.mobile').on('click', '.rap-notes-close', function(e){
- //hide notes, show .content
e.preventDefault();
+ //hide notes, show .content
$('.mobile .content').show();
$('.rap-notes').hide();
+ $('html, body').animate({scrollTop:0}, 1000);
});
+ //move 'skip this step' link on mobile
+ $('.mobile #skip-this-step').hide();
+ $('.mobile #skip-this-step a').appendTo('#key-tools').addClass('chevron').wrap('<li>');
/*
* Tabs