Meatier Lorem Ipsum Generator With jQuery - BaconIpsum.js
| File Size: | 2.72 KB |
|---|---|
| Views Total: | 380 |
| Last Update: | |
| Publish Date: | |
| Official Website: | Go to website |
| License: | MIT |
Yet another jQuery based dummy text generator that enables you to generate Bacon (Lorem) Ipsum text with a specific number of paragraphs and sentences. Based on the Bacon Ipsum JSON API.
How to use it:
1. Create a placeholder element in which you want to generate the dummy text.
<div class="content"> </div>
2. Include both jQuery JavaScript library and the jQuery BaconIpsum.js script at the bottom of the page.
<script src="//code.jquery.com/jquery.min.js"></script> <script src="jquery-BaconIpsum.js"></script>
3. Initialize the plugin to generate Bacon Ipsum (3 paragraphs) in the container you just created.
$('.content').BaconIpsum();
4. Specify the number of paragraphs and sentences to generate.
$('.content').BaconIpsum({
'paras' : 3,
'sentences' : 0
});
5. Determine whether or not to start the text with Bacon ipsum dolor sit amet.
$('.content').BaconIpsum({
'start_with_lorem' : true
});
6. Set the Bacon Ipsum type you want to use.
$('.content').BaconIpsum({
// or 'all-meat'
'type' : 'meat-and-filler'
});
7. Determine whether or not to wrap the text in the p tag.
$('.content').BaconIpsum({
'no_tags' : false
});
This awesome jQuery plugin is developed by petenelson. For more Advanced Usages, please check the demo page or visit the official website.











