-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
74 lines (71 loc) · 1.67 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<meta
http-equiv="Content-Type"
content="text/html; charset=UTF-8"
/>
<meta
name="viewport"
content="width=device-width, initial-scale = 1.0, maximum-scale = 1.0, user-scalable=no"
/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="./PDF.js Library/pdf.js"></script>
<script src="./PDF.js Library/pdf.worker.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/1.9.426/pdf_viewer.js"></script> -->
<link
rel="stylesheet"
href="./index.css"
/>
<title>PDF Reader</title>
</head>
<body>
<button id="upload-button">Select PDF</button>
<input
type="file"
id="file-to-upload"
accept="application/pdf"
/>
<div id="pdf-main-container">
<div id="pdf-loader">Loading document ...</div>
<div id="pdf-contents">
<div
id="pdf-meta"
class="navBar"
>
<div id="pdf-buttons">
<button onclick="startTextToSpeech()">Read Aloud</button>
<button
id="scroll"
onclick="scroll()"
>
Scroll
</button>
<button
id="resume-button"
onclick="resume()"
>
Resume
</button>
<button
id="pause-button"
onclick="pause()"
>
Pause
</button>
<select id="voiceSelect"></select>
</div>
<div id="page-count-container">
Page
<div id="pdf-current-page">1</div>
of
<div id="pdf-total-pages"></div>
</div>
</div>
<div id="pdfContainer"></div>
<div id="page-loader">Loading page ...</div>
</div>
</div>
<script src="./index.js"></script>
</body>
</html>