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.",
|
"The navigator will get the users current longitude and latitude with a decent level of accuracy.",
|
||||||
"<code>",
|
"<code>",
|
||||||
"if (navigator.geolocation) {",
|
"if (navigator.geolocation) {",
|
||||||
" navigator.geolocation.getCurrentPosition(function(position){",
|
"  navigator.geolocation.getCurrentPosition(function(position){",
|
||||||
" // Do something in here with the coordinates!",
|
"    // Do something in here with the coordinates!",
|
||||||
" ",
|
"    ",
|
||||||
" console.log(\"latitiude\", position.coords.latitude);",
|
"    $(\"#data\").html(\"latitiude\" + position.coords.latitude + \"longitude\" + position.coords.longitude);",
|
||||||
" console.log(\"longitude\", position.coords.longitude);",
|
"    ",
|
||||||
" ",
|
"  });",
|
||||||
" });",
|
|
||||||
"}",
|
"}",
|
||||||
"</code>"
|
"</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')"
|
"assert(editor.match(/navigator\\.geolocation\\.getCurrentPosition/gi), 'you should make use of the <code>navigator.geolocation</code> to access the users current location')"
|
||||||
],
|
],
|
||||||
"challengeSeed": [
|
"challengeSeed": [
|
||||||
"var json = {",
|
"fccss",
|
||||||
" name: \"Happy Camper\"",
|
"",
|
||||||
" age: 35",
|
"fcces",
|
||||||
" height: \"5ft 8\"",
|
"<div id = \"data\">",
|
||||||
"}"
|
" <h4>You are here!</h4>",
|
||||||
|
" ",
|
||||||
|
"</div>"
|
||||||
],
|
],
|
||||||
"challengeType": 0,
|
"challengeType": 0,
|
||||||
"type": "waypoint"
|
"type": "waypoint"
|
||||||
|
Reference in New Issue
Block a user