-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2459 from divyansh-2005/resume-builder-2
resume builder 2
- Loading branch information
Showing
4 changed files
with
489 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>Resume Builder</title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css"/> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
<div class="nav"> | ||
<button id="cmd" onclick="printpdf()" class="navbtn"><i class="fas fa-download"></i></button> | ||
<form> | ||
<input type="hidden" id="custinfo" name="custinfo"> | ||
<button class="navbtn"><i class="fas fa-save"></i></button> | ||
</form> | ||
<button class="navbtn" href=""><i class="fas fa-home"></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">231-3212-2132</span><span class="symbol"> <i class="fas fa-phone"></i></span><br> | ||
<span contenteditable="true" class="content">[email protected]</span><span class="symbol"> <i class="fas fa-envelope"></i></span><br> | ||
<span contenteditable="true" class="content">linkedin/username.com</span><span class="symbol"> <i class="fab fa-linkedin"></i></span><br> | ||
<span contenteditable="true" class="content">sample street-India</span><span class="symbol"> <i class="fas fa-map-marker-alt"></i></i></span> | ||
</div> | ||
</div> | ||
|
||
<div class="line"></div> | ||
<div class="mainbody"> | ||
<div class="leftside"> | ||
<span class="title">MY SKILLS</span><br><br><div> | ||
<div class="skill"><span><input type="checkbox" class="input-checkbox"></span><span><i class="fas fa-chevron-circle-right"></i></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> - <span contenteditable="true">level u know</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)" style="margin-top: 0;"><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> | ||
</body> | ||
|
||
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.8.0/html2pdf.bundle.min.js"></script> | ||
<script src="script.js"></script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "Resume Builder", | ||
"short_name": "Resume", | ||
"description": "A simple web application to build and customize resumes.", | ||
"version": "1.0", | ||
"manifest_version": 2, | ||
"start_url": "/", | ||
"display": "standalone", | ||
"background_color": "#ffffff", | ||
"theme_color": "#007bff", | ||
"icons": [ | ||
{ | ||
"src": "icons/icon-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "icons/icon-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
], | ||
"permissions": [], | ||
"offline_enabled": true | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,212 @@ | ||
function printpdf() { | ||
var content = document.getElementById("resume"); | ||
|
||
const allButtons = document.querySelectorAll("#print button"); | ||
allButtons.forEach((button) => { | ||
button.classList.add("none"); | ||
}); | ||
let allInputCheckboxes = document.querySelectorAll(".input-checkbox"); | ||
allInputCheckboxes.forEach((input) => { | ||
input.classList.add("none"); | ||
}); | ||
|
||
allButtons.forEach((button) => { | ||
button.classList.remove("none"); | ||
}); | ||
allInputCheckboxes.forEach((input) => { | ||
input.classList.remove("none"); | ||
}); | ||
|
||
html2pdf(content, { | ||
html2canvas: { scale: 1, logging: true, dpi: 500 }, | ||
}); | ||
} | ||
|
||
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><i class="fas fa-chevron-circle-right"></i></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> - <span contenteditable="true">level u know</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; | ||
} |
Oops, something went wrong.