Skip to content
Devix Open Source

An invoice line

Type an amount, pick a currency and a language, and see the line an invoice or a cheque would print — including Arabic that agrees with its currency.

Live preview
<div class="demo">
  <div class="demo-grid-2">
    <div class="demo-field">
      <label class="demo-label" for="amount">Amount</label>
      <input id="amount" class="demo-input" value="12345.50" autocomplete="off" inputmode="decimal">
    </div>
    <div class="demo-field">
      <label class="demo-label" for="currency">Currency</label>
      <select id="currency" class="demo-input"></select>
    </div>
  </div>
  <div class="demo-seg" id="language">
    <button class="is-on" data-lang="en">English</button>
    <button data-lang="ar">العربية</button>
    <button data-lang="ur">اردو</button>
  </div>
  <div class="demo-card">
    <p class="demo-hint">In words</p>
    <p class="demo-out" id="words"></p>
    <p class="demo-hint">On a cheque</p>
    <p class="demo-out" id="cheque"></p>
  </div>
  <p class="demo-hint" id="note"></p>
</div>