-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
136 lines (109 loc) · 4.5 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title> FotoPDF - Image to pdf converter</title>
<link rel="icon" type="image/png" href="title.png">
<link rel="stylesheet" href="styles.css">
</head>
<style>
body,
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "Raleway", sans-serif
}
body,
html {
height: 100%;
line-height: 1.8;
}
.w3-bar .w3-button {
padding: 16px;
}
</style>
<body translate="no">
<!-- Navbar (sit on top) -->
<div class="w3-top">
<div class="w3-bar w3-white w3-card" id="myNavbar">
<a href="#home" class="w3-bar-item w3-button w3-wide">
<img src="logo.png" alt="FotoPDF Image" style="height: 30px;"> <!-- Adjust the path and height as needed -->
</a>
<!-- Right-sided navbar links -->
<div class="w3-right w3-hide-small">
<a href="https://rudransh.rf.gd" target="_blank" class="w3-bar-item w3-button"><i class="fa fa-user"></i>
ABOUT</a>
<a href="mailto:rudransh9437@gmail.com" target="_blank" class="w3-bar-item w3-button"><i class="fa fa-envelope"></i> CONTACT</a>
</div>
<a href="javascript:void(0)" class="w3-bar-item w3-button w3-right w3-hide-large w3-hide-medium"
onclick="w3_open()">
<i class="fa fa-bars"></i>
</a>
</div>
</div>
<!-- Sidebar on small screens when clicking the menu icon -->
<nav class="w3-sidebar w3-bar-block w3-black w3-card w3-animate-left w3-hide-medium w3-hide-large"
style="display:none" id="mySidebar">
<a href="javascript:void(0)" onclick="w3_close()" class="w3-bar-item w3-button w3-large w3-padding-16">Close ×</a>
<a href="https://rudransh.rf.gd" target="_blank" class="w3-bar-item w3-button"><i class="fa fa-user"></i> ABOUT</a>
<a href="mailto:rudransh9437@gmail.com" target="_blank" class="w3-bar-item w3-button"><i class="fa-id-badge"></i> CONTACT</a>
<a href="https://rd9437.github.io/resumesy/" class="w3-bar-item w3-button"><i class="fa fa-address-card-o"></i> Resumsy - Resume Builder</a>
</nav>
</div>
</div>
</div>
<div class="w3-content w3-padding" style="max-width:1564px">
<div class="w3-container w3-padding-32" id="projects">
<p class="w3-border-bottom w3-border-light-grey w3-padding-16"><span class="line1"><strong>Pick photos to include in your PDF.</strong></span></p>
<!-- Line 2 -->
<p class="w3-border-bottom w3-border-light-grey w3-padding-16"><span class="line2"><strong>Combine your chosen images into a single PDF document.</strong></span></p>
<!-- Line 3 -->
<p class="w3-border-bottom w3-border-light-grey w3-padding-16"><span class="line3"><strong>Start fresh by removing all selected images.</strong></span></p>
</div>
</div>
<div class="container">
<input type="file" id="fileInput" multiple>
<button style="--clr:#008cba;--hov:#006080;" id="addImageButton">Add Images</button>
<button style="--clr:#3e8d75;--hov:#3e8e41;" id="convertButton">Convert to PDF</button>
<button style="--clr:#f44336;--hov:#ff6b6b;" id="clearButton">Clear Images</button>
<div id="pdfDownloadLink"></div>
<div id="imageContainer"></div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.4.0/jspdf.umd.min.js"></script>
<script>
// Toggle between showing and hiding the sidebar when clicking the menu icon
var mySidebar = document.getElementById("mySidebar");
function w3_open() {
if (mySidebar.style.display === 'block') {
mySidebar.style.display = 'none';
} else {
mySidebar.style.display = 'block';
}
}
// Close the sidebar with the close button
function w3_close() {
mySidebar.style.display = "none";
}
</script>
<script src="script.js"></script>
<script id="rendered-js"></script>
<footer class="footer-distributed">
<div class="footer-right">
<p class="footer-company-about">
<span>Connect with me</span>
</p>
<div class="footer-icons">
<a href="https://www.linkedin.com/in/rudranshdas/" target="_blank"><i class="fa fa-linkedin"></i></a>
<a href="https://github.com/rd9437" target="_blank"><i class="fa fa-github"></i></a>
</div>
</div>
</footer>
</body>
</html>