https://github.com/f/loremjs
Lorem.js Dummy Text/Image Generator for jQuery and Native JS
https://github.com/f/loremjs
Last synced: 5 months ago
JSON representation
Lorem.js Dummy Text/Image Generator for jQuery and Native JS
- Host: GitHub
- URL: https://github.com/f/loremjs
- Owner: f
- License: lgpl-3.0
- Created: 2011-08-11T10:49:40.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2018-07-13T20:05:34.000Z (almost 8 years ago)
- Last Synced: 2025-12-31T22:28:01.312Z (6 months ago)
- Language: HTML
- Size: 24.4 KB
- Stars: 190
- Watchers: 9
- Forks: 60
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.