From 30c188f524b72216ef4aa24e50338ec66b509502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Sosth=C3=A8ne?= Date: Tue, 27 Jun 2023 17:14:29 +0200 Subject: [PATCH 1/2] Adding locate function --- locate.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 locate.js diff --git a/locate.js b/locate.js new file mode 100644 index 0000000..92328b8 --- /dev/null +++ b/locate.js @@ -0,0 +1,12 @@ +if (navigator.geolocation) { + navigator.geolocation.getCurrentPosition(showLocation); +} else { + alert("Geolocation is not supported by this browser."); +} + +function showLocation(position) { + var latitude = position.coords.latitude; + var longitude = position.coords.longitude; + alert("Your current location is:\nLatitude: " + latitude + "\nLongitude: " + longitude); +} + From aea13c3d4b9ea6083a6662069cda71ef39fcb721 Mon Sep 17 00:00:00 2001 From: Jules LEVEILLARD Date: Tue, 27 Jun 2023 21:34:04 +0200 Subject: [PATCH 2/2] Fixed the bug of issue #7 with the secnum auth. --- auth.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auth.js b/auth.js index 3137d2d..0c7215d 100644 --- a/auth.js +++ b/auth.js @@ -1 +1,2 @@ -alert("this is an authentication function using social security number !") \ No newline at end of file +alert("this is an authentication function using social security number !") +alert("it is now fixed with the new gibsecnum API !") \ No newline at end of file