I coded the Weather App locally and I completed it 100%. It’s functional and I have no errors in console. However, when I pasted the code on CodePen, apparently Google doesn’t support getCurrentPosition() method and I can’t make it work. I am at the beginning on my way to a JS Career and it took me a long time to code this app.
How can I make it work without investing a lot of time again? Is there any easy way to solve the issue?
Here is the link to Local Weather App so you can check the code.
I tried with http and I receive this error: _“getCurrentPosition() and watchPosition() no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.”