-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresume.html
583 lines (520 loc) · 24.7 KB
/
resume.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
<!doctype html>
<html lang="en">
<head>
<!-- Meta Tags -->
<meta charset="utf-8">
<meta name="Resume Builder" content="Resume builder that allows anyone to create a modern professional resume in 3 simple steps.
For those who have an existing resume, we also provides a resume parser to help test and confirm its ATS readability.">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Free Resume Builder - Create Professional Resumes Online">
<meta name="description" content="Build your professional resume effortlessly with our easy-to-use free resume builder. Customize templates, save your progress, and get hired faster.">
<meta name="description" content="Use our free resume builder to create professional resumes easily. Choose templates, customize your resume, and download in minutes.">
<meta name="keywords" content="resume builder, free resume builder, create resume, professional resume, online resume, resume templates, resume format, job application, resume download">
<meta name="author" content="ResumeHub">
<meta name="robots" content="index, follow">
<meta property="og:title" content="Free Resume Builder - Create Professional Resumes Online">
<meta property="og:description" content="Build a job-winning resume with our free resume builder. Choose from professional templates, add your details, and download your resume in minutes.">
<meta property="og:image" content="https://unsplash.com/images/stock"> <!-- Replace with actual image URL -->
<meta property="og:url" content="https://rohittt1012.github.io/resume-builder/">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Free Resume Builder - Create Professional Resumes Online">
<meta name="twitter:description" content="Use our free resume builder to craft your perfect resume and kickstart your job search.">
<meta name="twitter:image" content="https://unsplash.com/images/stock"> <!-- Replace with actual image URL -->
<title>Free Resume Builder - Create Professional Resumes Online</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"
integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@500&display=swap');
* {
margin: 0%;
padding: 0%;
font-weight: 500;
font-size: 14px;
}
body {
background-color: #9a9a9a;
display: grid;
place-items: center;
font-weight: 450;
opacity: 1;
}
.none {
display: none;
}
.resume {
margin-top: 50px;
margin-bottom: 50px;
width: 800px;
box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px;
}
#print {
background-color: #fff;
padding: 30px 50px;
height: 1120px;
}
.head {
display: grid;
grid-template-columns: 3fr 1.5fr;
}
.head .main .name {
font-size: 55px;
font-family: 'Raleway', sans-serif;
}
.head .main span:nth-child(2) {
color: rgb(100, 100, 100);
font-size: 55px;
font-family: 'Raleway', sans-serif;
margin-left: 5px;
}
.head .main .post {
font-family: 'Barlow', sans-serif;
}
.head .contacts {
text-align: right;
padding-top: 7px;
}
.head .contacts .content {
font-weight: 500;
padding-right: 5px;
}
.head .contacts .symbol {
margin-right: 5px;
font-size: 15px;
width: 17px;
height: 17px;
}
.mainbody {
display: grid;
grid-template-columns: 10fr 1fr 17fr;
height: 900px;
}
.mainbody .border {
background-color: rgb(87, 87, 87);
width: 3px;
opacity: 2;
}
.mainbody .rightside {
padding-left: 15px;
}
.title {
font-weight: 700;
font-size: 18px;
border: none;
padding-bottom: 3px;
border-bottom: 2px greenyellow solid;
}
.skill {
margin-bottom: 6px;
}
button {
margin: 15px 0;
}
.language {
margin-bottom: 6px;
}
.language span:nth-child(odd) {
font-weight: 700;
}
.edublock {
margin-bottom: 10px;
}
.edublock .head {
font-weight: 700;
font-size: 17px;
}
.navbtn {
position: fixed;
top: 40%;
left: 4%;
transform: translate(-40%, -4%);
height: 60px;
width: 60px;
border-radius: 50%;
border: #fff 2px solid;
transition: 300ms ease-in-out;
box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px;
}
.navbtn:nth-child(2) {
top: 50%;
left: 4.4%;
transform: translate(-50%, -4.4%);
}
.navbtn:nth-child(3) {
top: 60%;
left: 4.8%;
transform: translate(-60%, -4.8%);
}
.navbtn:hover {
background-color: black;
color: #fff;
border: #000 2px solid;
height: 65px;
width: 65px;
}
.input-checkbox {
margin-right: 10px;
}
.education-head {
font-weight: 700;
font-size: 17px;
}
footer {
-webkit-text-fill-color: white;
}
#f {
-webkit-text-fill-color: green;
}
.f {
-webkit-text-fill-color: red;
}
</style>
</head>
<body>
<div class="nav">
<button id="cmd" onclick="printpdf()" class="navbtn"><i class="fas fa-download fa-bounce"></i></button>
<form>
<input type="hidden" id="custinfo" name="custinfo">
<button class="navbtn"><i class="fas fa-save fa-shake"></i></button>
</form>
<button id="homeBtn" class="navbtn" href="index.html"><i class="fa-solid fa-home fa-beat-fade"></i></button>
</div>
<div class="resume" id="resume">
<section id="print">
<div class="head">
<div class="main">
<span class="name" contenteditable="true">YOUR</span> <span contenteditable="true">NAME</span>
<div class="post" contenteditable="true">YOUR JOB PROFILE</div>
</div>
<div class="contacts">
<span contenteditable="true" class="content">987-654-3210</span><span class="symbol"><i
class="fas fa-phone"></i></span><br>
<span contenteditable="true" class="content">example@gmail.com</span><span class="symbol"><i
class="fas fa-envelope"></i></span><br>
<span contenteditable="true" class="content">linkedin.com/in/username</span><span class="symbol"><i
class="fab fa-linkedin"></i></span><br>
<span contenteditable="true" class="content">github.com/username</span><span class="symbol"><i
class="fab fa-github"></i></span><br>
<span contenteditable="true" class="content">sample street-India</span><span class="symbol"> <i
class="fas fa-map-marker-alt"></i></span>
</div>
</div>
<hr class="mb-5 bg-dark">
<div class="mainbody">
<div class="leftside">
<span class="title">SKILLS</span><br><br>
<div>
<div class="skill">
<span><input type="checkbox" class="input-checkbox"></span><span
contenteditable="true">write your skill here</span>
</div>
<div id="skills"></div>
<button id="skilladd" type="button" class="btn btn-success" onclick="addskill()"><i
class="fas fa-plus-circle"></i> Skill</button> 
<button id="skillrem" type="button" class="btn btn-danger" onclick="remskill(event)"><i
class="fas fa-minus-circle"></i> Skill</button>
</div>
<br><br><span class="title">LANGUAGES</span><br><br>
<div>
<div class="language">
<span><input type="checkbox" class="input-checkbox"></span><span
contenteditable="true">LANGNAME</span>
</div>
<div id="languages"></div>
<button id="langadd" type="button" class="btn btn-success" onclick="addLang()"><i
class="fas fa-plus-circle"></i> Language</button> 
<button id="langrem" type="button" class="btn btn-danger" onclick="remLang(event)"><i
class="fas fa-minus-circle"></i> Language</button>
</div>
<br><br>
<span class="title">ACHIEVEMENTS</span>
<br><br>
<div>
<div class="achieve">
<span><input type="checkbox" class="input-checkbox"></span><span
contenteditable="true">Write your achievement</span>
</div>
<div id="achievement"></div>
<button id="achadd" type="button" class="btn btn-success" onclick="addAch()"><i
class="fas fa-plus-circle"></i> Achievement</button> 
<button id="achrem" type="button" class="btn btn-danger" onclick="remAch(event)"><i
class="fas fa-minus-circle"></i> Achievement</button>
</div>
<br><br>
<span class="title">INTERESTS</span><br><br>
<div>
<div class="achieve">
<span><input type="checkbox" class="input-checkbox"></span><span
contenteditable="true">Write interest</span>
</div>
<div id="interest"></div>
<button id="Intadd" type="button" class="btn btn-success" onclick="addInt()"><i
class="fas fa-plus-circle"></i> Interest</button> 
<button id="Intrem" type="button" class="btn btn-danger" onclick="remInt(event)"><i
class="fas fa-minus-circle"></i> Interest</button>
</div>
</div>
<div class="border"></div>
<div class="rightside">
<span class="title">PROFILE</span><br><br>
<div contenteditable="true">
Here u can write the basic information about your career like your forte,
something about yourself that you want your interviewer to know.
Try to keep it brief and only provide necessary information.
Do not include information which is already written in your resume in some other section.
</div>
<br><br>
<span class="title">EDUCATION</span><br><br>
<div>
<div id="education">
<div class="edublock">
<span><input type="checkbox" class="input-checkbox"></span><span class="education-head"
contenteditable="true">YOUR DEGREE</span>
<div>
<span contenteditable="true">Institute name</span> - <span
contenteditable="true">Passing Year</span>
</div>
</div>
</div>
<button id="eduadd" type="button" class="btn btn-success" onclick="addedu()"><i
class="fas fa-plus-circle"></i> Education</button> 
<button id="edurem" type="button" class="btn btn-danger" onclick="remedu(event)"><i
class="fas fa-minus-circle"></i> Education</button>
</div>
<br><br>
<div class="new-section-div">
<div>
<span><input type="checkbox" class="input-checkbox"></span><span class="title"
contenteditable="true">NEW SECTION</span><br><br>
<div contenteditable="true">
This is the description part of your new section. Try to stay within limit and write
something which has less than 400 characters.
The spaces and symbols you use will also be included so use them for an indentation
effect.
</div>
</div>
<div id="newsec"></div>
<button id="secadd" type="button" class="btn btn-success" onclick="addsec()"><i
class="fas fa-plus-circle"></i> Section</button> 
<button id="secrem" type="button" class="btn btn-danger" onclick="remsec(event)"><i
class="fas fa-minus-circle"></i> Section</button>
</div>
</div>
</div>
</section>
</div>
<footer class="container">
<p class="float-right"><a href="#" class="f">Back to top</a></p>
<p>© Copyright ResumeHub 2024. All Rights Reserved · <a href="#" id="f">Privacy</a> · <a href="#"
id="f">Terms</a></p>
</footer>
<script>
function printpdf() {
var content = document.getElementById("resume");
// Hide buttons and checkboxes before generating PDF
const allButtons = document.querySelectorAll("button");
allButtons.forEach(button => {
button.classList.add("none");
});
let allInputCheckboxes = content.querySelectorAll(".input-checkbox");
allInputCheckboxes.forEach(input => {
input.classList.add("none");
});
// Generate PDF
const pdfOptions = {
margin: 10,
filename: 'converted_document.pdf',
image: { type: 'jpeg', quality: 0.98 },
html2canvas: { scale: 2 },
jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' }
};
html2pdf(content, {
html2canvas: { scale: 1, logging: true, dpi: 500 }
}, pdfOptions);
}
function addedu() {
const head = document.createElement('div');
document.getElementById("education").appendChild(head);
head.innerHTML = ('<div class="edublock"><span><input type="checkbox" class="input-checkbox"></span><span class="education-head" contenteditable="true">YOUR DEGREE</span><div ><span contenteditable="true">Institute name</span> - <span contenteditable="true">Passing Year</span></div></div>');
saveresume();
}
function remedu(event) {
let val = 0;
let empty = true;
const allInputCheckboxes = event.target.parentElement.getElementsByClassName("input-checkbox");
const array = Array.from(allInputCheckboxes);
if (array.length === 0) {
alert("No fields are present to be deleted!")
}
else {
console.log(array);
array.forEach(element => {
if (element.checked === true) {
val = 1;
element.parentElement.parentElement.remove();
}
})
if (val === 0) alert("Please select the checkboxes to delete the required field!")
}
saveresume();
}
function addskill() {
const head = document.createElement('div');
document.getElementById("skills").appendChild(head);
head.innerHTML = ('<div class="skill"><span><input type="checkbox" class="input-checkbox"></span><span contenteditable="true">write your skill here</span></div>');
saveresume();
}
function remskill(event) {
let val = 0;
const allInputCheckboxes = event.target.parentElement.getElementsByClassName("input-checkbox");
const array = Array.from(allInputCheckboxes);
if (array.length === 0) {
alert("No fields are present to be deleted!")
}
else {
console.log(array);
array.forEach(element => {
if (element.checked === true) {
val = 1;
element.parentElement.parentElement.remove();
}
})
if (val === 0) alert("Please select the checkboxes to delete the required field!")
}
saveresume();
}
function addLang() {
const head = document.createElement('div');
document.getElementById("languages").appendChild(head);
head.innerHTML = ('<div class="language"><span><input type="checkbox" class="input-checkbox"></span><span contenteditable="true">LANGNAME</span></div>');
saveresume();
}
function remLang(event) {
let val = 0;
const allInputCheckboxes = event.target.parentElement.getElementsByClassName("input-checkbox");
const array = Array.from(allInputCheckboxes);
if (array.length === 0) {
alert("No fields are present to be deleted!")
}
else {
console.log(array);
array.forEach(element => {
if (element.checked === true) {
val = 1;
element.parentElement.parentElement.remove();
}
})
if (val === 0) alert("Please select the checkboxes to delete the required field!")
}
saveresume();
}
function addAch() {
const head = document.createElement('div');
document.getElementById("achievement").appendChild(head);
head.innerHTML = ('<div class="achieve" ><span><input type="checkbox" class="input-checkbox"></span><span contenteditable="true">Write your achievement</span></div>');
saveresume();
}
function remAch(event) {
let val = 0;
const allInputCheckboxes = event.target.parentElement.getElementsByClassName("input-checkbox");
const array = Array.from(allInputCheckboxes);
if (array.length === 0) {
alert("No fields are present to be deleted!")
}
else {
console.log(array);
array.forEach(element => {
if (element.checked === true) {
val = 1;
element.parentElement.parentElement.remove();
}
})
if (val === 0) alert("Please select the checkboxes to delete the required field!")
}
saveresume();
}
function addInt() {
const head = document.createElement('div');
document.getElementById("interest").appendChild(head);
head.innerHTML = ('<div class="achieve" ><span><input type="checkbox" class="input-checkbox"></span><span contenteditable="true">Write interest</span></div>');
saveresume();
}
function remInt(event) {
let val = 0;
const allInputCheckboxes = event.target.parentElement.getElementsByClassName("input-checkbox");
const array = Array.from(allInputCheckboxes);
if (array.length === 0) {
alert("No fields are present to be deleted!")
}
else {
array.forEach(element => {
if (element.checked === true) {
val = 1;
element.parentElement.parentElement.remove();
}
})
if (val === 0) alert("Please select the checkboxes to delete the required field!")
}
saveresume();
}
let maxNewSection = 1;
function addsec() {
if (maxNewSection < 2) {
const head = document.createElement('div');
document.getElementById("newsec").appendChild(head);
if (maxNewSection === 0) {
head.innerHTML = ('<div><span><input type="checkbox" class="input-checkbox"></span><span class="title" contenteditable="true">NEW SECTION</span><br><br><div contenteditable="true">This is the description part of your new section. Try to stay within limit and write something which has less than 400 characters. The spaces and symbols you use will also be included so use them for an indentation effect.</div></div>');
}
else {
head.innerHTML = ('<div><br><br><span><input type="checkbox" class="input-checkbox"></span><span class="title" contenteditable="true">NEW SECTION</span><br><br><div contenteditable="true">This is the description part of your new section. Try to stay within limit and write something which has less than 400 characters. The spaces and symbols you use will also be included so use them for an indentation effect.</div></div>');
}
maxNewSection = maxNewSection + 1;
}
else {
alert("Atmost 2 NEW SECTION can be added!")
}
saveresume();
}
function remsec(event) {
let val = 0;
const allInputCheckboxes = event.target.parentElement.getElementsByClassName("input-checkbox");
const array = Array.from(allInputCheckboxes);
if (array.length === 0) {
alert("No fields are present to be deleted!")
}
else {
console.log(array);
array.forEach(element => {
if (element.checked === true) {
val = 1;
maxNewSection = maxNewSection - 1;
element.parentElement.parentElement.remove();
}
})
if (val === 0) alert("Please select the checkboxes to delete the required field!")
}
saveresume();
}
function saveresume() {
var sec = document.getElementById("print");
value1 = sec.innerHTML;
var info = document.getElementById("custinfo");
info.value = value1;
}
// Function to navigate to home page
function navigateToHome() {
window.location.href = 'index.html'; // Replace 'index.html' with your home page URL
}
// Add event listener to the home button
document.getElementById('homeBtn').addEventListener('click', navigateToHome);
</script>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.8.0/html2pdf.bundle.min.js"></script>
</body>
</html>