Brought in line with staging and added spoofigator!
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -396,13 +396,12 @@
|
||||
"The navigator will get the users current longitude and latitude with a decent level of accuracy.",
|
||||
"<code>",
|
||||
"if (navigator.geolocation) {",
|
||||
" navigator.geolocation.getCurrentPosition(function(position){",
|
||||
" // Do something in here with the coordinates!",
|
||||
" ",
|
||||
" console.log(\"latitiude\", position.coords.latitude);",
|
||||
" console.log(\"longitude\", position.coords.longitude);",
|
||||
" ",
|
||||
" });",
|
||||
"  navigator.geolocation.getCurrentPosition(function(position){",
|
||||
"    // Do something in here with the coordinates!",
|
||||
"    ",
|
||||
"    $(\"#data\").html(\"latitiude\" + position.coords.latitude + \"longitude\" + position.coords.longitude);",
|
||||
"    ",
|
||||
"  });",
|
||||
"}",
|
||||
"</code>"
|
||||
],
|
||||
@ -410,11 +409,13 @@
|
||||
"assert(editor.match(/navigator\\.geolocation\\.getCurrentPosition/gi), 'you should make use of the <code>navigator.geolocation</code> to access the users current location')"
|
||||
],
|
||||
"challengeSeed": [
|
||||
"var json = {",
|
||||
" name: \"Happy Camper\"",
|
||||
" age: 35",
|
||||
" height: \"5ft 8\"",
|
||||
"}"
|
||||
"fccss",
|
||||
"",
|
||||
"fcces",
|
||||
"<div id = \"data\">",
|
||||
" <h4>You are here!</h4>",
|
||||
" ",
|
||||
"</div>"
|
||||
],
|
||||
"challengeType": 0,
|
||||
"type": "waypoint"
|
||||
|
Reference in New Issue
Block a user