mirror of
https://github.com/seigler/dash-website
synced 2025-07-26 23:06:09 +00:00
Currency page
Getting and displaying data for: - Markets - Governance - Blockchain
This commit is contained in:
parent
d08420321f
commit
995d1c5dcc
2 changed files with 116 additions and 7 deletions
|
@ -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
|
||||
// it’s centered on the screen.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue