Simplest Lorem Ipsum Generator With jQuery - Ipsum.js

File Size: 3.43 KB
Views Total: 2034
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Simplest Lorem Ipsum Generator With jQuery - Ipsum.js

A lightweight and dead simple jQuery plugin used to generate random Lorem Ipsum placeholder text with a specified amount of characters.

See also:

How to use it:

1. Download and include the JavaScript file ipsum.js after you've included jQuery library.

<script src="//code.jquery.com/jquery.min.js"></script>
<script src="ipsum.js"></script>

2. Add the 'data-ipsum' attribute to any container in which you want to generate the Lorem Ipsum placeholder text and populates it with a given amount of random characters (including spaces).

<p data-ipsum="10"></p>

3. Customize the pre-defined strings used for the random Lorem Ipsum placeholder text.

var string = 'Ipsum ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut ' +
             'labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. ' +
             'Stet clita kasd gubergren, no sea takimata sanctus est Ipsum ipsum dolor sit amet.';

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