-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
29 lines (28 loc) · 853 Bytes
/
demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jisg demo</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="./src/style.css">
</head>
<body>
<h1>jisg demo</h1>
<p><em>jisg v<span id="version">0.0.0</span></em></p>
<pre id="out" style="white-space: pre-wrap;">A000045: </pre>
<script src="./dist/index.umd.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
document.getElementById('version').innerText = jisg.version
const out = document.getElementById('out')
const generator = jisg.A000045()
setInterval(
function() {
out.innerText += generator.next().value + ', '
},
17
)
})
</script>
</body>
</html>