项目作者: detronetdip

项目描述 :
Dummy paragraph generator
高级语言: HTML
项目地址: git://github.com/detronetdip/Dummy-paragraph-generator.git
创建时间: 2021-04-04T06:13:00Z
项目社区:https://github.com/detronetdip/Dummy-paragraph-generator

开源协议:

下载


Dummy paragraph generator

Screenshot

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

  1. assets/js/

Download script.js
Add our library file inside your head tag, now before closing body tag
write bellow code within script tag

  1. $("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

  1. $("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

  1. $("NULL").regenerate();
  2. $("ep").add();

This will generate random text each time you call this, and insert it into your div

**ep is the div id