-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathumd.html
30 lines (24 loc) · 876 Bytes
/
umd.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
<!DOCTYPE html>
<html lang="en-AU">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="initial-scale=1, minimum-scale=1" />
<title>TroffCanvasViewer demo: UMD</title>
<link rel="stylesheet" type="text/css" href="../../../lib/postproc/canvas/viewer.css" />
<link rel="stylesheet" type="text/css" href="demo.css" />
</head>
<body>
<div id="chalkboard"></div>
<script src="../../../lib/index.js"></script>
<script>
"use strict";
const {TroffCanvasViewer} = Roff;
window.view = new TroffCanvasViewer({
parentElement: document.getElementById("chalkboard"),
});
const dirname = document.location.toString().replace(/^file:\/\/|[/\\][^/\\]+$/gi, "");
view.loadFile(dirname + "/../../fixtures/text/pdf-large.out");
</script>
</body>
</html>