Project Link - https://codepen.io/ayamimu/full/Qvbdpv
I made an effort to make JS code to be shorter and more readable as much as possible.
I carried out this project with the help of following content.
- Geolocation API
- ipinfo.io (As fallback)
- simpleWeather (jQuery plugin)
- Weather Icons (Especially helpful: Class name List corresponds to Yahoo! weather code)
I’m also very grateful to everyone on here and This thread.
Show the Local Weather - can’t use geolocation API on insecure server (codepen.io)