| 1 |
|
| 2 |
<!doctype html> |
| 3 |
|
| 4 |
<html lang="en"> |
| 5 |
<head> |
| 6 |
<meta charset="utf-8"> |
| 7 |
<title>FigPut Viewer</title> |
| 8 |
|
| 9 |
<!-- The pdf.js stuff, from Mozilla. --> |
| 10 |
<script src="pdf.js"></script> |
| 11 |
<script src="pdf.worker.min.js"></script> |
| 12 |
|
| 13 |
<!-- FigPut code --> |
| 14 |
<script src="layout.js"></script> |
| 15 |
<script src="tikz.js"></script> |
| 16 |
<script src="widgets.js"></script> |
| 17 |
<script src="main.js"></script> |
| 18 |
|
| 19 |
<style> |
| 20 |
/* Put the canvas right up to the edge of the visible area of the window. */ |
| 21 |
body { |
| 22 |
padding: 0; |
| 23 |
margin: 0; |
| 24 |
} |
| 25 |
</style> |
| 26 |
</head> |
| 27 |
|
| 28 |
|
| 29 |
<!-- |
| 30 |
Note that 'unknown1' will be changed to the project's name as this file |
| 31 |
is being served. If the pdf generated by LaTeX is called math.pdf, then |
| 32 |
'unknown1' will become 'math'. |
| 33 |
BEWARE: This works by replacing every occurence of 'unknown1' in this file, |
| 34 |
so don't use 'unknown1' for anything else. |
| 35 |
The same basic thing is going on with unknowny, but it is used for scroll |
| 36 |
position |
| 37 |
--> |
| 38 |
<body onload="doOpenDocument('unknown1',unknowny)" id="mainbody"> |
| 39 |
<canvas id="pdf_renderer"></canvas> |
| 40 |
</body> |
| 41 |
</html> |
| 42 |
|