-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrowser.html
More file actions
26 lines (24 loc) · 801 Bytes
/
Copy pathbrowser.html
File metadata and controls
26 lines (24 loc) · 801 Bytes
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>ForgeData — browser example</title>
</head>
<body>
<h1>ForgeData in the browser</h1>
<pre id="output">Loading...</pre>
<!-- Build the package first (npm run build), then serve this folder with any static server. -->
<script type="module">
import { ForgeData } from "../dist/index.js";
const forge = new ForgeData({ seed: Date.now() });
const lines = [
`Name: ${forge.person.fullName()}`,
`Email: ${forge.internet.email()}`,
`Country: ${forge.location.country()}`,
`Avatar: ${forge.image.avatar()}`,
`UUID: ${forge.uuid()}`,
];
document.getElementById("output").textContent = lines.join("\n");
</script>
</body>
</html>