A universal, intercultural and user-friendly way to display numbers
MIT License
Btonnet.js (or Batonnet.js, pronounced /ba.t.n/) is a universal, intercultural and user-friendly way to display numbers. It provides a lightweight, easy to use library that can convert any positive integers into a more readable form, even across different regional, political and/or religional culture.
You can see the power and the flexibility of Btonnet.js in live action by following this link.
Download batonnet.min.js
and batonnet.min.css
and include them in your web page:
<link rel="stylesheet" type="text/css" href="batonnet.min.css">
<script src="batonnet.min.js"></script>
Then, surround numbers you want to convert with a tag containing the class batonnet
as such:
<p>I've already caught <span class="batonnet">13</span> fishes!</p>
And finally call the Batonnet()
function in javascript once the element is loaded:
Batonnet();