Code doesn't work on codepen

the project run on pc, but when i uploaded it on codepen it does not work. the code supposed to display current weather automatically . Here is the project link

Use code Inspector to see the errors. And your codepen should be configured using the settings.

Thank you, I solved it.