-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexperience_table.js
44 lines (36 loc) · 1.76 KB
/
experience_table.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
var showExperienceTable = false
document.getElementById("experience_toggle").onclick = function() {
const experience_table = document.getElementById("experience_table")
showExperienceTable = !showExperienceTable
experience_table.style.display = showExperienceTable ? "block" : "none"
const experience_toggle = document.getElementById("experience_toggle")
experience_toggle.innerHTML = showExperienceTable ? "experience.kill()" : "./experience"
}
const experiences = [
{
title: 'Product Engineer at ASU',
description: 'Collaborated closely with marketing to produce devices and RPM kits based on market research and revenue-focused price points.'
},
{
title: 'Software Engineer at ASU',
description: 'Simplified device configuration with custom Android software helping save nearly 30 minutes of labor per device.'
},
{
title: 'Sales Associate at ASU',
description: 'Worked closely with customers to service their needs whether on the sales floor or at the cash wrap.'
},
]
tableElem = document.getElementById("experience_table")
for (var i = 0; i < experiences.length; i++) {
experienceRow = document.createElement('tr');
experienceRow.className = "experience-entry"
titleCol = document.createElement('td');
titleCol.className = "experience-title"
titleCol.appendChild(document.createTextNode(experiences[i].title)); //to print cell number
descriptionCol = document.createElement('td');
descriptionCol.className = "experience-desc"
descriptionCol.appendChild(document.createTextNode(experiences[i].description)); //to print cell number
experienceRow.appendChild(titleCol);
experienceRow.appendChild(descriptionCol);
tableElem.appendChild(experienceRow);
}