Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 599 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 599 Bytes

BEAUlance.js

A javascript library that beautifies crypto balances.

Usage:

  1. Define css styles
div.balance {
  /* main digit style */
  font-family: "Courier", "Courier New";
  text-align: right;
  font-weight: bold;
  font-size: larger;
}

div.balance span.zz {
  /* leading zeros */
  color: #888888;
}

div.balance span.ii {
  /* insignificant digits */
  font-weight: normal;
  font-size: medium;
}
  1. Add javascript just before the closing </body> tag:
<script language="JavaScript">
   window.onload = function(ev) {
      updateBalances();
   }
</script>