-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
54 lines (54 loc) · 2.31 KB
/
index.js
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
"use strict";
function createResume() {
document.querySelector(".form-container").style.display = "none";
const name = document.getElementById("name").value;
const father = document.getElementById("father").value;
const contact = document.getElementById("contact").value;
const email = document.getElementById("email").value;
const address = document.getElementById("address").value;
const college = document.getElementById("college").value;
const describe1 = document.getElementById("describe1").value;
const college2 = document.getElementById("college2").value;
const describe2 = document.getElementById("describe2").value;
const fieldOfStudy = document.getElementById("field_of_study").value;
const skills = document.getElementById("skills").value
.split(",")
.map(skill => skill.trim())
.join(", ");
const experience = document.getElementById("experience").value;
const resumeContainer = document.getElementById("resume");
resumeContainer.innerHTML = `
<div class="container">
<aside class="sidebar">
<div class="profile-info">
<h2>${name}</h2>
<p><strong>Father's Name:</strong> ${father}</p>
<section class="profile-details">
<h3>Profile</h3>
<p>${fieldOfStudy}</p>
</section>
<section class="contact-info">
<h3>Contact Me</h3>
<p><strong>📞</strong> ${contact}</p>
<p><strong>📧</strong> ${email}</p>
<p><strong>📍</strong> ${address}</p>
</section>
</div>
</aside>
<main class="main-content">
<section>
<h3>Education</h3>
<p><strong>${college}:</strong><br> ${describe1}</p>
<p><strong>${college2}:</strong><br> ${describe2}</p>
</section>
<section>
<h3>Skills</h3>
<p>${skills}</p>
</section>
<section>
<h3>Experience</h3>
<p>${experience}</p>
</section>
</main>
</div>`;
}