Today's Weather (Local Weather page): Opinions

Today's Weather (Local Weather page): Opinions
0

#1

I finished my own local weather page and I like it a lot:

http://s.codepen.io/theseeker/pen/ezJjBG

I’ll be happy if can give me some feedbacks on it :slight_smile:

Note: Doesn’t seem work on Chrome


#2

hey its good and clean very nice good work. just one thing when you switch to f. from c. the temp runs on the 0000000000000


#3

Yeah, it’s a strange bug.
Looks work correctly for me (http://imgur.com/7azgEyDl.png).

Can you tell me what’s the temperature in celsius?

If it’s 0 I suppose geolocation not work (or you’re in a very cold country).


#4

its 21 degrees in celsius on my end


#5

For the temperatures, you could use .toFixed(1) to solve the .000000 issue


#6

I tried using Math.floor, it seem work.


#7

works like a charm now good stuff


#8

I can confirm that this is not working in Chrome. Looks like you’re using “navigator.geolocation.getCurrentPosition” which only works in Chrome over https. There are several threads in the forum covering this topic :slight_smile:


#9

Look at my project :sunny:
https://codepen.io/mynasr/full/wrYoYO/