Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ function validateForm() {
if (isValid) return true;

// Else ask user if they want to proceed anyway
return confirm("Please correct the highlighted errors in the form before downloading your resume.");
else alert("Please correct the highlighted errors in the form before downloading your resume.");
return false;
}


Expand All @@ -245,8 +246,7 @@ document.getElementById("downloadBtn").addEventListener("click", () => {
if (!validateForm()) return;

// --- PDF Download Button ---

const content = document.querySelector('#resume-sections');
const content = document.querySelector('#resume-sections');
const options = {
margin: 0.5,
filename: 'resume.pdf',
Expand Down