Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Latest commit

 

History

History

lorem

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

🐧

Lorem Ipsum Generator


Project List · Report Bug · Request Feature

we are using npm package called lorem ipsum to generate the text. you need to download lorem ipsum to makesure the program works in your pc.

What I Learnt

I learned about importing node modules into javascript.

Preview

Improvements

Instead of creating a textarea element, I can make an element in the index.html file and change the textContent of that element.

This would reduce code
  let loremcontent = document.createElement("textarea");
  loremcontent.textContent = content;
  /*clearing the previous content from the div*/
  loremdiv.textContent = "";
  loremdiv.appendChild(loremcontent);

we can replace the above snippet with

let loremcontent = document.getElementById("loremcontent");
loremcontent.textContent = generatedContent;

Project Information

Tier: 1-Beginner

Lorem Ipsum is simply dummy text of the printing and typesetting industry. This app should generate passages of lorem ipsum text suitable for use as placeholder copy in web pages, graphics, and more.

User Stories

  • User can type into an input field the number of paragraphs of lorem ipsum to be generated
  • Use can see the generated paragraphs of lorem ipsum and is able to copy them

Trello Board

You can track your progress by cloning this Trello Board

Useful links and resources

Example projects