made with ❤ by [A. Elzahaby egy.js]
DEMO: https://el3zahaby.github.io/lorem.JS/
lorem.js works with Jquery so you should import it first,
you can also use the CDN
<script src="js/jquery.js"></script>
<script src="js/lorem.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/el3zahaby/lorem.JS/lorem.js"></script>
Once you're Import the js
you will be able to make it work with simple lines
<p class="lorem-1"></p>
<script>
$('.lorem-1').Lorem({
"length" : "" // defult : {"length" : "rand"}
});
</script>
KEY | value type | Example |
---|---|---|
length | string or integer | you can use one of [one,two,three,full,rand] or you could or set a length number, Ex: 30 |