Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
all: drop unused files
js/geolocation.js | 20 -------------------- js/script.js | 6 ------
diff --git a/js/geolocation.js b/js/geolocation.js deleted file mode 100644 index 0a7d1a5c85d074cf0a61b577f70ca3b97fb3a571..0000000000000000000000000000000000000000 --- a/js/geolocation.js +++ /dev/null @@ -1,20 +0,0 @@ -const locationElement = document.getElementById("location"); - -if (navigator.geolocation) { - navigator.geolocation.getCurrentPosition( - (position) => { - const { latitude, longitude } = position.coords; - console.log(latitude, longitude); - locationElement.textContent = `Localização: ${latitude.toFixed( - 2 - )}, ${longitude.toFixed(2)}`; - }, - (e) => { - locationElement.textContent = "Localização não disponível."; - console.log(e) - } - ); -} else { - locationElement.textContent = "Geolocalização não suportada."; -} - diff --git a/js/script.js b/js/script.js deleted file mode 100644 index 839d3d75c84f47b95233c81f2ea45a91605ebc3b..0000000000000000000000000000000000000000 --- a/js/script.js +++ /dev/null @@ -1,6 +0,0 @@ -document.querySelector("#changeText").addEventListener("click", () => { - const message = document.getElementById("message"); - message.textContent = "Você clicou no botão!"; - message.style.color = "tomato"; -}); -