-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (37 loc) · 1.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><lorem-ipsum></title>
<script type="module" src="https://web-component-docs.github.io/elements.js"></script>
<script src="./element.js"></script>
<style>
body {
font-family: sans-serif;
--lorem-ipsum-par: 3;
}
code {
display: block;
padding: .2em;
background-color: #f4f4f4;
border-radius: 5px;
font-size:2em;
}
</style>
</head>
<body>
<h1><lorem-ipsum> Web Component</h1>
<web-component-attributes component="lorem-ipsum">
par | 3 | Number of paragraphs to display
min | 7 | Minimum number of sentences per paragraph
max | +2 | Maximum number of sentences per paragraph
replace | false | replace the <lorem-ipsum> tag with the generated text
shadow | false | put the generated text in a shadow dom, move lightDOM <style> elements to shadowDOM
</web-component-attributes>
<code>
<lorem-ipsum par="1"></lorem-ipsum>
</code>
<lorem-ipsum par="1"></lorem-ipsum>
<lorem-ipsum></lorem-ipsum>
</body>
</html>