Skip to content

Commit

Permalink
#9 Further improve the flow, by scrolling to the address control and …
Browse files Browse the repository at this point in the history
…focusing on the map. Adjust the instructions to encourage users to locate the address exactly before moving on
  • Loading branch information
CloCkWeRX committed Feb 18, 2017
1 parent 0290277 commit d6502ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ <h2 data-i18n="app.title"></h2>

<div class='center pad2'>
<p id="couldnt-find" style='display: none;' data-i18n="[html]step1.fail"></p>
<p id="success" style='display: none;'></p>
</div>
<div class='col12'>
<div class='col12' id='findme-map' style="margin-bottom: 500px;"></div>
<div class='col12' id='findme-map'></div>
<p id="success" class="center" style='display: none; margin-bottom: 500px;'></p>

</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion locales/en-US/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href='#details'>add more details</a>.",
"success": "<strong>Found it!</strong> Move the marker until it is <strong>exactly on your business</strong>.<br />When you are happy, we can start to <a href='#details'>add more details</a>.",
"loadingText": "Searching..."
}
}

0 comments on commit d6502ab

Please sign in to comment.