Skip to content

ribafs/lorem-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published