-
Notifications
You must be signed in to change notification settings - Fork 0
/
resume.js
77 lines (53 loc) · 1.89 KB
/
resume.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
function printiL() {
var textarea = document.getElementById("wefield");
var listItem = "<li></li>";
textarea.value +=listItem;
}
function printli() {
var textarea = document.getElementById("aqfield");
var listItem = "<li></li>";
textarea.value +=listItem;
}
// generating cv
function generateCV(){
// console.log("generating CV");
let nameField=document.getElementById("nameField").value;
let nameT1=document.getElementById("nameT1");
nameT1.innerHTML = nameField;
//direct
document.getElementById("nameT2").innerHTML=nameField
// contact
let contactField=document.getElementById("contactField").value;
contactT.innerHTML=contactField;
//Adderss
let AdderssField=document.getElementById("AddressField").value;
addressT.innerHTML=AdderssField;
//facebook
document.getElementById("fbT").innerHTML=document.getElementById("fbField").value;
// insta
document.getElementById("instaT").innerHTML=document.getElementById("InstaField").value;
// linkin
document.getElementById("linkT").innerHTML=document.getElementById("LinkField").value;
// objective
document.getElementById("objectiveT").innerHTML=document.getElementById("objectiveField").value;
// we
document.getElementById("weT").innerHTML=document.getElementById("wefield").value;
// aq
document.getElementById("aqT").innerHTML=document.getElementById("aqfield").value;
// profile photo code
let file=document.getElementById('imgfield').files[0]
console.log(file);
let reader=new FileReader();
reader.readAsDataURL(file);
console.log(reader.result);
// set the img to template
reader.onloadend=function() {
document.getElementById('imgT').src = reader.result;
};
document.getElementById("cv-form").style.display="none"
document.getElementById("CV-Tmplat").style.display="block"
}
// print cv
function printCV() {
window.print();
}