summaryrefslogtreecommitdiff
path: root/graphics/figput/javascript/release/figput.html
blob: 431a4c18e70044ad44d0c5b0ea60e30295b62716 (plain)
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
36
37
38

<!doctype html>

<html lang="en">
<head>
  <meta charset="utf-8">
  <title>FigPut Viewer</title>

  <!-- The pdf.js stuff, from Mozilla. -->
  <script src="pdf.js"></script>
  <script src="pdf.worker.min.js"></script>

  <script src="figput.js"></script>
  
  <style>
    /* Put the canvas right up to the edge of the visible area of the window. */
    body {
      padding: 0;
      margin: 0;
    }
  </style>
</head>


<!-- 
Note that 'unknown1' will be changed to the project's name as this file 
is being served. If the pdf generated by LaTeX is called math.pdf, then 
'unknown1' will become 'math'.
BEWARE: This works by replacing every occurence of 'unknown1' in this file,
so don't use 'unknown1' for anything else.
The same basic thing is going on with unknowny, but it is used for scroll
position
--> 
<body onload="doOpenDocument('unknown1',unknowny)" id="mainbody">
  <canvas id="pdf_renderer"></canvas>
</body>
</html>