https://github.com/detronetdip/dummy-paragraph-generator
Dummy paragraph generator
https://github.com/detronetdip/dummy-paragraph-generator
dummy-text js
Last synced: 9 days ago
JSON representation
Dummy paragraph generator
- Host: GitHub
- URL: https://github.com/detronetdip/dummy-paragraph-generator
- Owner: detronetdip
- Created: 2021-04-04T06:13:00.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-10T11:39:35.000Z (almost 4 years ago)
- Last Synced: 2025-05-09T00:08:28.069Z (12 days ago)
- Topics: dummy-text, js
- Language: HTML
- Homepage: https://detronetdip.github.io/Dummy-paragraph-generator/
- Size: 125 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dummy paragraph generator

It generates random paragraph whenever you click on regenerate.
You can use copy button to copy the generated text.You can also generate a random paragraph in your website with our library.
Head to
```
assets/js/
```
Download ```script.js```
Add our library file inside your ```head``` tag, now before closing ```body``` tag
write bellow code within ```script``` tag
```
$("NULL").init();
```
That will create a variable ```string``` containing the random generated paragraph.
Now to add the generated text inside a div anywhere in your website, simply create a div with an ```id```
and the write the bellow code
```
$("ep").add();
```
where ```ep``` will be you div ```id```For generating random text each time you click a button simply write bellow code each time
```
$("NULL").regenerate();
$("ep").add();
```
This will generate random text each time you call this, and insert it into your ```div```
**```ep``` is the div ```id```