-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (40 loc) · 1.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PDF Ninja Pro</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h1 class="text-center">PDF Ninja Pro</h1>
<div class="upload-section text-center">
<input type="file" id="pdf-upload" accept="application/pdf">
<button id="upload-btn" class="btn btn-primary">Upload PDF</button>
</div>
<div id="spinner" class="spinner-border" role="status" style="display: none;">
<span class="visually-hidden">Loading...</span>
</div>
<div class="row">
<div class="col-md-8">
<div id="pdf-preview" class="pdf-preview row"></div>
</div>
<div class="col-md-4">
<div class="split-section">
<input type="text" id="chapter-name" placeholder="Chapter Name" class="form-control mb-2">
<input type="number" id="start-page" placeholder="From Page" class="form-control mb-2">
<input type="number" id="end-page" placeholder="To Page" class="form-control mb-2">
<button id="split-btn" class="btn btn-success mb-2">Split PDF</button>
<a id="download-link" href="#" class="btn btn-primary" style="display: none;">Download PDF</a>
</div>
<div id="notification" class="notification"></div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.10.377/pdf.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf-lib/1.17.1/pdf-lib.min.js"></script>
<script src="script.js"></script>
</body>
</html>