From 274c0255324a699052c9205da356b8386b828263 Mon Sep 17 00:00:00 2001 From: Sergey Falinsky Date: Tue, 1 Oct 2013 22:37:39 +0300 Subject: [PATCH] minor wording fix --- ch3_mockup.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch3_mockup.asciidoc b/ch3_mockup.asciidoc index d84f1cb4..d0d4a227 100644 --- a/ch3_mockup.asciidoc +++ b/ch3_mockup.asciidoc @@ -1109,7 +1109,7 @@ Actually, the Modernizr loader internally utilizes a tiny (under 2Kb) resource l })(); ---- -The code above invokes the function `load()`, which can take different arguments, but our example uses as an argument a specially prepared object with five properties: `test, yep, nope, complete`. The `load()` function will test the value of `Modernizr.geolocation` and if it's true, it'll load the scripts listed in the `yep` property. Otherwise it'll load the code listed in the `nope` array. The code in the get-native-geo-data.js gets the user's location the same way as it was done earlier in the section Integrating with Google Maps. +The code above invokes the function `load()`, which can take different arguments, but our example uses as an argument a specially prepared object with four properties: `test, yep, nope, complete`. The `load()` function will test the value of `Modernizr.geolocation` and if it's true, it'll load the scripts listed in the `yep` property. Otherwise it'll load the code listed in the `nope` array. The code in the get-native-geo-data.js gets the user's location the same way as it was done earlier in the section Integrating with Google Maps. Now let's consider the "nope" case. The code of the get-geo-data-by-ip.js has to offer an alternative way of getting the location for the browsers that don't support HTML5 Geolocation API. We found the GeoIP JavaScript API offered by http://www.maxmind.com/[MaxMind, Inc.]. Their service returns country, region, city, latitude and longitude, which can serve as a good illustration of how a workaround of a non-supported feature can be implemented. The code in get-geo-data-by-ip.js is very simple for now.