Skip to content

Commit

Permalink
Add lorem() to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ndaidong committed Mar 8, 2023
1 parent 4ae352c commit 89dc4ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ <h3>How does it work?</h3>
<label class="opt-typ"><input type="radio" name="typ" value="sentence" checked> Sentence</label>
<label class="opt-typ"><input type="radio" name="typ" value="paragraph"> Paragraph</label>
<label class="opt-typ"><input type="radio" name="typ" value="article"> Article</label>
<label class="opt-typ"><input type="radio" name="typ" value="lorem"> Lorem Ipsum</label>
</p>
<p>
<textarea class="result-area" id="result"></textarea>
Expand All @@ -40,11 +41,12 @@ <h3>How does it work?</h3>

</section>
<script type="module">
import { sentence, paragraph, article } from 'https://unpkg.com/txtgen/dist/txtgen.esm.js'
import { sentence, paragraph, article, lorem } from 'https://unpkg.com/txtgen/dist/txtgen.esm.js'
const fn = {
sentence,
paragraph,
article
article,
lorem
}
const generate = (e) => {
e.preventDefault()
Expand Down

0 comments on commit 89dc4ed

Please sign in to comment.