Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/f/loremjs

Lorem.js Dummy Text/Image Generator for jQuery and Native JS
https://github.com/f/loremjs

Last synced: about 1 month ago
JSON representation

Lorem.js Dummy Text/Image Generator for jQuery and Native JS

Awesome Lists containing this project

README

        

Lorem.js Dummy Text/Image Generator - Native JS
========================================================
A Lorem Ipsum creator service written on JavaScript.

Implementation
--------------

Implementation of Lorem.js is so simple,

You just download and add

into your website/application and run.

If you want to put a lorem text inside a DIV (etc.) tag just write:

If you want a random length of lorem text within a range just write:

Querying
--------

Lorem.js has a simple query language: "how many?, what?"

2p = 2 paragraphs
5s = 5 sentences
6w = 6 words
1-6w = between 1 and 6 words

That's it.

Dummy Images
------------

And Lorem.js uses lorempixel.com for images for now.

Usage:



And watch what happens :)

Feel free to ask questions.