-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (40 loc) · 1.37 KB
/
index.html
File metadata and controls
43 lines (40 loc) · 1.37 KB
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
39
40
41
42
43
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Read PDF</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" media="screen" href="./css/style.css" />
</head>
<body>
<div class="top-bar">
<div id="pdfControl">
<button class="btn" id="prev-page">
<i class="fas fa-arrow-circle-left"></i> Prev Page
</button>
<button class="btn" id="next-page">
Next Page <i class="fas fa-arrow-circle-right"></i>
</button>
<span class="page-info">
Page <span id="page-num"></span> of <span id="page-count"></span>
</span>
</div>
<div id="errorMsg">
<span id="errorSpan"></span>
</div>
<div class="right">
<input id="urlInput" placeholder="PDF url..." />
<button class="btn" id="refresh">
Refresh Viewer <i class="fas fa-sync"></i>
</button>
</div>
</div>
<canvas id="pdf-render"></canvas>
<div class="footer">
</div>
<script src="https://mozilla.github.io/pdf.js/build/pdf.js"></script>
<script src="./js/main.js"></script>
</body>
</html>