jQuery Arabic-Roman Numerals Converter - romannumerals

File Size: 70.1 KB
Views Total: 825
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
jQuery Arabic-Roman Numerals Converter - romannumerals

A jQuery based Roman numerals converter which helps you convert Arabic to Roman Numerals: 4999 = MCMXCIX.

How to use it:

1. Add jQuery library and the jQuery romannumerals plugin to your html file.

<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="jquery.romannumerals.js"></script>

2. Wrap your Arabic numerals into an inline element.

1 is <span class="roman">1</span>
10 is <span class="roman">10</span>
100 is <span class="roman">100</span>
1000 is <span class="roman">1000</span>
4999 is <span class="roman">4999</span>

3. Convert the Arabic numerals into Roman Numerals.

$('.roman').romannumerals();

4. This will output:

1 is I
10 is X
100 is C
1000 is M
4999 is MCMXCIX

5. Possible options.

// font family
fontFamily: '',

// font size
fontSize: '',

// font color
foreground: '',

// background color
background: ''

This awesome jQuery plugin is developed by dsparling. For more Advanced Usages, please check the demo page or visit the official website.