Skip to content

Commit

Permalink
FX - attempt AkshayAgarwal007#1
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdsmpsn authored Oct 4, 2016
1 parent 0ef4c9c commit ec95769
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions fx.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: page
title: Foreign Exchange
permalink: /fx/
---

<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.min.js"></script>

<div class="headline">
£1 is currently worth $<span id="currentUsd"><span class="loading"></span></span>
</div>

<div id="chart"><div>

<script>
$(function () {
$.ajax({
url: 'http://api.fixer.io/latest?symbols=USD,GBP&base=GBP',
success: function (response) {
$('#currentUsd').html( response.rates['USD'] );
}
});
});
</script>

0 comments on commit ec95769

Please sign in to comment.