diff --git a/app/views/faq.scala.html b/app/views/faq.scala.html index d34e49a0f8..46b86cb0ba 100644 --- a/app/views/faq.scala.html +++ b/app/views/faq.scala.html @@ -28,22 +28,22 @@

How can I help?

- Great! We really appreciate your help! It would be very helpful if you could use our tool to audit accessibility of neighborhoods. + Thanks for chipping in! You can help us out by using our tool to audit the accessibility of neighborhoods. By accessibility audit, we mean:

  1. - Click Start Auditing. + Click Start Mapping.
  2. - Take an interactive tutorial to learn how to use our tool (if you haven't taken one before). + Take an interactive tutorial to learn how to use our tool (if you haven't taken it before).
  3. Walk along the streets and explore the neighborhood to find and label accessibility features.

- Please watch the following video to see the demo of how the accessibility audit works: + Please watch the following video to see a demo of how an accessibility audit works:

@@ -53,11 +53,11 @@

How can I help?

-

Can I select a neighborhood to audit?

+

Can I pick which neighborhood I audit?

- Yes! Please follow the following steps: + Yes! Just follow these steps:

  1. @@ -179,13 +179,14 @@

    References

-

What to do when navigation arrow disappears?

+

What to do when the navigation arrow disappears?

- Sometimes during auditing, you would have noticed that the navigation arrows go missing, especially, while walking straight. + Sometimes while auditing, you may have noticed that the navigation arrows go missing, especially while walking straight. Worry not, there is a simple solution!

- Just double click on the street to move ahead and you are all set! + Just double click on the street to move ahead and you are all set!

+ And if you are still stuck, you can always use the Jump button on the left.

@@ -233,7 +234,7 @@

Why do my labels disappear?

So, why does it work like this? Well, the answer is kind of complicated but the short answer is: - the Google Street View interface is akin to a 3-dimensional interface similar to walking in the real world. + the Google Street View interface is akin to a 3-dimensional interface, similar to walking in the real world. When you place a label, we convert the 3D position of the label to a 2D lat/long position. However, once you take a step to a new location, we cannot accurately recompute the label's position in 3D for that new view. See, we told you it was kind of complicated. :) @@ -248,7 +249,7 @@

Why do my labels disappear?

-

Are there keyboard shortcuts for the image labeling interface?

+

Are there keyboard shortcuts?

@@ -304,7 +305,7 @@

+  Sign in } @@ -100,11 +100,9 @@ $("#sign-in-modal").removeClass("hidden"); }); - // Log if user /clicks/ on sign-in button, but not necessarily signs in - $("#sign-in-button").on('click', function(){ + function logWebpageActivity(activity){ var url = "/userapi/logWebpageActivity"; var async = true; - var activity = "Click_module=SignIn"; $.ajax({ async: async, contentType: 'application/json; charset=utf-8', @@ -117,6 +115,18 @@ console.error(result); } }); + } + + // Triggered when 'Sign In' in navbar is clicked + // Logs "Click_module=SignIn" + $("#sign-in-button").on('click', function(){ + logWebpageActivity("Click_module=SignIn"); + }); + + // Triggered when 'Start Mapping' in navbar is clicked + // Logs "Click_module=StartMapping_location=Index" + $(".navbarStartBtn").on('click', function(){ + logWebpageActivity("Click_module=StartMapping_location=Navbar"); }); }); @@ -364,7 +374,7 @@

diff --git a/build.sbt b/build.sbt index 3e8edb1e23..3d6bf6cbd8 100644 --- a/build.sbt +++ b/build.sbt @@ -4,7 +4,7 @@ import scalariform.formatter.preferences._ name := """sidewalk-webpage""" -version := "4.0.0" +version := "4.0.1" scalaVersion := "2.10.4" diff --git a/public/assets/homepage.js b/public/assets/homepage.js index 6c6c775d08..181f81cf01 100644 --- a/public/assets/homepage.js +++ b/public/assets/homepage.js @@ -186,4 +186,10 @@ $( document ).ready(function() { var author = e.currentTarget.id.split('-')[0]; logWebpageActivity("Click_module=Quotes_author="+author); }); + + // Triggered when 'Start Mapping' in video container is clicked + // Logs "Click_module=StartMapping_location=Index" + $(".bodyStartBtn").on("click", function(){ + logWebpageActivity("Click_module=StartMapping_location=Index"); + }); });