Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 748 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 748 Bytes

LoremJS

A simple lorem ipsum generator using JavaScript.

Demo

How to Use

Download the lorem.js file and add the script reference to the head of your html file:

<script src="lorem.js"></script>

Whenever you need some placeholder text, call a new script tag, along with the lorem function and how many words you need. For example - 10:

<script>lorem(10);</script>

Would produce something like:

Donec sollicitudin, mi in ultrices tincidunt, nisl libero gravida sem.

That's it!

Why?

Because I'm too lazy to Google new placeholder text every time I want some, and wanted to prove that you don't need large plugins or packages to make this work.