Converter 43 - [180 website project]
Oh, this was a hell of a learning experience. okay lets back up a moment. Given I’m starting slow [becuase of my rusty knowledge] I decided to do a currency converter app. I didn’t suspect I’d use a lot of things I haven’t used so this was awesome.
Now as always, I started with the UI, because let’s face it, it’s what takes up most of the time. Positioning is a bitch so I had to first make sure it’s positioned right and responsive
Okay perfect now let’s add a bit of design to the mix
okay gradient Bg [check], date [check], input elemets[check], swap button [check]. Okay now the list of currencies, lets first set up the UI and then deal with the list of content.
Okay… now is where the real work starts. So being the lazy programmer I as, there is no way in hell I’d manually add all those currency codes so what are my options? API’s yes! So here’s where the learning part starts. got to know the open exchange rate API, and worked with AJAX and JSON to grab the data. After reading the MDN for it, I started the test.
Hell! it worked! awesome sauce [yes, I am one of those annoying people who say awesome sauce] okay now let's try to save these rates in a js object and after a couple of attempts let’s try to save these rates in a js object and after a