jQuery Based Leetspeak Generator & Translator - leet.js

File Size: 5.4 KB
Views Total: 732
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
jQuery Based Leetspeak Generator & Translator - leet.js

leet.js is a jQuery plugin which enables you to translate, convert normal text into Leetspeak, which is an alternate representation of text that replaces letters with numbers or character combinations. The plugin currently comes with 2 coding levels you can choose from: Base and Light.

How to use it:

1. Add references to jQuery library and the jQuery leet.js to the web pages as shown below:

<script src="//code.jquery.com/jquery-3.1.0.min.js"></script>
<script src="src/leet.js"></script>

2. Convert your text to Leetspeak with default coding level:

$('#text-wrapper').leet();

3. Specify the coding level you prefer.

$('#text-wrapper').leet({
  level: 'light'
});

4. Translate Leetspeak to normal text:

$('#text-wrapper').text();

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