From d6502abf118e08c40102fee238fa336bc0e6fa4b Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Sat, 18 Feb 2017 13:31:29 +1030 Subject: [PATCH] #9 Further improve the flow, by scrolling to the address control and focusing on the map. Adjust the instructions to encourage users to locate the address exactly before moving on --- index.html | 5 +++-- js/site.js | 4 ++-- locales/en-US/translation.json | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index bfcb258..a244ff8 100644 --- a/index.html +++ b/index.html @@ -52,10 +52,11 @@

-
-
+
+ +
diff --git a/js/site.js b/js/site.js index 11bb86c..eb18be6 100644 --- a/js/site.js +++ b/js/site.js @@ -59,7 +59,7 @@ $("#use_my_location").click(function (e) { $('#success').html(successString); $('#success').show(); - window.scrollTo(0, $('#success').position().top - 10); + window.scrollTo(0, $('#address').position().top - 30); $('.step-2 a').attr('href', '#details'); }, function (error) { $("#couldnt-find").show(); @@ -87,7 +87,7 @@ $("#find").submit(function(e) { $('#success').html(successString); $('#success').show(); - window.scrollTo(0, $('#success').position().top - 10); + window.scrollTo(0, $('#address').position().top - 30); $('.step-2 a').attr('href', '#details'); } else { $("#couldnt-find").show(); diff --git a/locales/en-US/translation.json b/locales/en-US/translation.json index 91c0a24..9779bb4 100644 --- a/locales/en-US/translation.json +++ b/locales/en-US/translation.json @@ -39,7 +39,7 @@ "row4a": "Back to initial screen" }, "messages": { - "success": "Found it! Click and drag the marker on your business place position, so you'll be ready to add more details.", + "success": "Found it! Move the marker until it is exactly on your business.
When you are happy, we can start to add more details.", "loadingText": "Searching..." } } \ No newline at end of file