├── styles.css ├── .gitattributes ├── README.md ├── main.js └── index.html /styles.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background-color: antiquewhite; 3 | } -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Currency Converter 2 | Source code for currency converter project on CodeWithHarry YouTube channel 3 | -------------------------------------------------------------------------------- /main.js: -------------------------------------------------------------------------------- 1 | console.log("Main.js working") 2 | 3 | const populate = async (value, currency) => { 4 | let myStr = "" 5 | url = "https://api.currencyapi.com/v3/latest?apikey=cur_live_7UStkUqQNBmahSoy8K635tE3Sjr5fK1UVPmVloZ2&base_currency=" + currency 6 | let response = await fetch(url) 7 | let rJson = await response.json() 8 | document.querySelector(".output").style.display = "block" 9 | 10 | for (let key of Object.keys(rJson["data"])) { 11 | myStr += `
| Currency | 173 |Code | 174 |Value | 175 |
|---|