forked from grislyeye/vellum-random-table
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (31 loc) · 773 Bytes
/
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
<html>
<head>
<title>vellum-dice demo</title>
<script type="module">
import './vellum-dice.js'
</script>
<script>
new EventSource('/esbuild').addEventListener('change', () =>
location.reload(),
)
</script>
<style>
vellum-dice.fixed-width {
display: inline-block;
width: 93px;
text-align: center;
}
</style>
</head>
<body>
<h3>Roll</h3>
<p>You have <vellum-dice>3d6+3</vellum-dice> Strength.</p>
<h3>Roll with Animation</h3>
<p>You have <vellum-dice animation>3d6+3</vellum-dice> Strength.</p>
<h3>Roll with fixed width</h3>
<p>
You have
<vellum-dice class="fixed-width" animation>3d6+3</vellum-dice> Strength.
</p>
</body>
</html>