Brought in line with staging and added spoofigator!

This commit is contained in:
benmcmahon100
2015-10-05 23:42:30 +01:00
parent cbb78079f9
commit da09a7b650
2 changed files with 27 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@ -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){", "&thinsp;&thinsp;navigator.geolocation.getCurrentPosition(function(position){",
" // Do something in here with the coordinates!", "&thinsp;&thinsp;&thinsp;&thinsp;// Do something in here with the coordinates!",
" ", "&thinsp;&thinsp;&thinsp;&thinsp;",
" console.log(\"latitiude\", position.coords.latitude);", "&thinsp;&thinsp;&thinsp;&thinsp;$(\"#data\").html(\"latitiude\" + position.coords.latitude + \"longitude\" + position.coords.longitude);",
" console.log(\"longitude\", position.coords.longitude);", "&thinsp;&thinsp;&thinsp;&thinsp;",
" ", "&thinsp;&thinsp;});",
" });",
"}", "}",
"</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"