Hello peeps, I finally managed to finish the Local Weather App. From all the intermediate JS projects this one seemed the most interesting I’d appreciate some feedback, especially for ways to use AJAX requests that works both on HTTP and HTTPS as it was (and still is) an issue.
I’m using github pages as personally think that CodePen is not the best option for full websites because of the restrictions to 1 html, 1 css and 1 js file. I know you can link to external files, but then you need to find a way to host them, etc… and finally when it comes to e.g. running your application in Chrome you learn that Chrome no longer allows geolocation on sites using an insecure HTTP protocol… If you learn how to use github (and you must, if you are really serious about getting into programming professionally) it’s just way much faster and all of these headaches aren’t an issue
Very nice. Two minor things: you misspelled “Celsius”, and if you deny location access and then start switching between F and C you’ll see “NaN C” etc.
I think the value of Codepen is in being able to quickly view and modify (temporarily) somebody else’s code, so it’s better for people looking for feedback on guts of their application. HTTPS isn’t really an issue, because you can access codepen over HTTPS as well, and then stuff works
It’s not a feature you need to turn on somewhere - just type the codepen address with https instead of http and it will work (and prevent the insecure origin problems). A browser extension like “HTTPS everywhere” should make it easier.
By the way, you can link a file from github repository using rawgit. I tried it with css just out of curiosity, and it worked. (you need to copy url of your raw file on github, then go to rawgit, paste it and use a link they give)
Yeah, I forgot to mention it. I’m using https://unsplash.com/. If you are looking for high-res, good quality images that you can use however, you want it’s a good place to start. They don’t have a very huge library right now but for my personal projects I always find something that suits me
Maybe set up the fahrenheit to round down to just a few places after the decimal. But I guess that is more of an esthetic. Otherwise, I think it looks great.