-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
32 lines (32 loc) · 1.16 KB
/
index.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
31
32
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.jsdelivr.net/npm/tiff.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.4.0/jspdf.umd.min.js" defer></script>
<script src="script.js" defer></script>
<link rel="stylesheet" href="style.css">
<title>TIFF Viewer</title>
</head>
<body>
<div id="container">
<!-- File Upload -->
<fieldset id="upload-section">
<legend>Upload a TIFF File</legend>
<input type="file" id="fileInput" accept=".tiff">
</fieldset>
<!-- TIFF Viewer -->
<fieldset id="viewer">
<legend>TIFF File Viewer</legend>
<canvas id="tiffCanvas"></canvas>
<div id="controls">
<button id="prevPageButton" disabled>Previous</button>
<span id="pageInfo">Page 0 of 0</span>
<button id="nextPageButton" disabled>Next</button>
<button id="savePdfButton" disabled>Save as PDF</button>
</div>
</fieldset>
</div>
</body>
</html>