-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
83 lines (77 loc) · 3.25 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
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image To PDF</title>
<link rel="icon" type="image/x-icon" href="images/logo.png">
<!-- pdf-lib link -->
<script src="https://unpkg.com/pdf-lib"></script>
<!-- downloadjs unpkg link -->
<script type="text/javascript" src="https://unpkg.com/downloadjs@1.4.7/download.js"></script>
<!-- font awesome icon link -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- css file link -->
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<!-- header for logo -->
<div class="header">
<a href="https://shahbazhussaincse.github.io/portfolio/">
<img class="center" src="images/JPG to PDF.gif" alt="JPG to PDF" height="100%" width="170px">
</a>
</div>
<h3>Note: </h3><pre><p>Please insert only <b>jpg images</b> to convert them into a PDF</p></pre>
<!-- nav bar -->
<div class="nav">
<span class="logo">
<i class="fa fa-file-pdf-o"> jpg to PDF</i>
</span>
<div>
<button id="convertBtn" onclick={embedImages()}>SAVE AS PDF</button>
<input type="file" id="upload-file" onchange={encodeImageFileAsURL(this)} multiple accept="image/">
<button id="upload-msg">UPLOAD FILES</button>
</div>
</div>
<!-- input page -->
<div class="input-page" id="input-page">
<div class="choose-file">
<div class="add-more-files">
<div class="inp-container">
<input type="file" id="upload-file" onchange={encodeImageFileAsURL(this)} multiple accept="image/">
<h4 class="drop">DRAG & DROP OR</h4>
<p>
<i class="fa fa-file-image-o fa-4x img-icon"></i>
</p>
<label for="upload-file" id=""custom-file>CHOOSE .jpg FILES</label>
</div>
</div>
</div>
</div>
<!-- pdf page -->
<div class="pdf-page" id="pdf-page">
<div class="vreate-pdf" id="create-pdf">
<!-- this part of code is just to show the pdf page structure and will be removed once javascript file will be created -->
<!-- <div class="file-item">
<div class="modify">
<button class="delete-btn"><i class="fa fa-trash"></i></button>
</div>
<div class="img-container">
<img src="" alt="img" id="img">
</div>
<p id="img-name">img-name</p>
</div>
<div class="add-more-file">
<div class="inp-cont">
<input type="file" id="inp" multiple accept="image/">
<p><i class="fa fa-plus"></i></p>
<label for="inp">Add Files</label>
</div>
</div>-->
</div>
</div>
<!-- javascript file -->
<script src="script/script.js"></script>
</body>
</html>