diff --git a/README.md b/README.md index 3c4f281..ac31ee4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1 @@ -# Assignment-123 - +Assignment - 1,2.3 \ No newline at end of file diff --git a/contact.html b/contact.html index 3c28543..b7d75d8 100644 --- a/contact.html +++ b/contact.html @@ -6,125 +6,8 @@
Full Name: ${fullName}
-Email: ${email}
-Phone: ${phone}
-Gender: ${gender}
-Age: ${age}
-Education: ${education}
-Skills: ${skills}
-Experience: ${experience} years
-Current Role: ${currentRole}
- `; - } - - function submitForm() { - const data = { - fullName: document.getElementById('fullName').value, - email: document.getElementById('email').value, - phone: document.getElementById('phone').value, - gender: document.querySelector('input[name="gender"]:checked').value, - age: document.getElementById('age').value, - education: document.getElementById('education').value, - skills: Array.from(document.querySelectorAll('input[name="skills"]:checked')).map(el => el.value), - experience: document.getElementById('experience').value, - currentRole: document.getElementById('currentRole').value - }; - - localStorage.setItem('formData', JSON.stringify(data)); - document.getElementById('multiStepForm').style.display = 'none'; - document.getElementById('successMessage').style.display = 'block'; - } - -function exportData() { - const data = localStorage.getItem('formData'); - const blob = new Blob([data], { type: 'application/json' }); - const url = URL.createObjectURL(blob); - const a = document.createElement('a'); - a.href = url; - a.download = 'formData.json'; - document.body.appendChild(a); - a.click(); - document.body.removeChild(a); -} - - function clearForm() { - document.getElementById('multiStepForm').reset(); - localStorage.removeItem('formData'); - currentStep = 0; - showStep(currentStep); - document.getElementById('successMessage').style.display = 'none'; - } - - // Initialize the form - showStep(currentStep); - - - - - -