Currency page

Getting and displaying data for:
- Markets
- Governance
- Blockchain
This commit is contained in:
Perry Woodin 2016-07-27 11:34:54 -04:00
parent d08420321f
commit 995d1c5dcc
2 changed files with 116 additions and 7 deletions

View file

@ -39,6 +39,16 @@
<script src="{{ base }}/assets/js/full-menu.js"></script>
<script>
function formatNumber (num) {
return num.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,")
}
function formatCurrency (num,decimal) {
var _decimal;
_decimal = typeof decimal !== "undefined" ? decimal : 2;
return num.toFixed(_decimal).replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,")
}
function windowPopup(url, width, height) {
// Calculate the position of the popup so
// its centered on the screen.