From 7516f316cc75ade9ece7aaa6c61f2991ece46b32 Mon Sep 17 00:00:00 2001 From: Oleg Date: Mon, 26 Nov 2018 10:33:55 +0300 Subject: [PATCH 1/2] Geolocation added --- index.html | 4 ++++ js/app.js | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 js/app.js diff --git a/index.html b/index.html index 7f9586e5..71d56440 100644 --- a/index.html +++ b/index.html @@ -54,6 +54,9 @@

Оставайтесь на связи

Оставьте ваши контакты и мы свяжемся с вами сегодня!

+
@@ -86,5 +89,6 @@

Оставайтесь на связи

+ \ No newline at end of file diff --git a/js/app.js b/js/app.js new file mode 100644 index 00000000..f7336fee --- /dev/null +++ b/js/app.js @@ -0,0 +1,9 @@ +(async () => { + if (navigator.geolocation) { + navigator.geolocation.getCurrentPosition(position => { + const coordsEl = document.querySelector('#user-coords'); + coordsEl.textContent = `${position.coords.latitude}, ${position.coords.longitude}` + coordsEl.parentElement.classList.remove('invisible'); + }); + } +})(); \ No newline at end of file From 2426945cd04ed8846c0cfec261686cb4d51d60e8 Mon Sep 17 00:00:00 2001 From: Oleg Date: Sun, 6 Nov 2022 18:10:37 +0300 Subject: [PATCH 2/2] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=84=D0=BE=D1=80=D0=BA=D0=BD=D1=83=D1=82?= =?UTF-8?q?=D0=BE=D0=B3=D0=BE=20=D0=BF=D1=80=D0=BE=D0=B5=D0=BA=D1=82=D0=B0?= =?UTF-8?q?=20=D0=B2=20=D0=BB=D0=BE=D0=BA=D0=B0=D0=BB=D1=8C=D0=BD=D1=8B?= =?UTF-8?q?=D0=B9=20=D0=B3=D0=B8=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 0 -> 6148 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..c7d51a90750c8d9f217162789317b9bd59738097 GIT binary patch literal 6148 zcmeH~v1-FW42FNT9s*rFcDyBPA#ZSmOw5=M_`(Ti+>f`z<@gz@)<8p?Fp8zI)6o1mgxLET Hyi|c-gQgO9 literal 0 HcmV?d00001