-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
49 lines (48 loc) · 1.76 KB
/
script.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
var Name,DOB,gender,address,graduation;
var number;
var mail,skill;
function get()
{
Name=document.forms["form"]["firstName"].value+" "+document.forms["form"]["lastName"].value;
number=document.forms["form"]["Number"].value;
DOB=document.forms["form"]["DOB"].value;
gender=document.forms["form"]["Gender"].value;
graduation=document.forms["form"]["Graduation"].value;
mail=document.forms["form"]["Mail"].value;
address=document.forms["form"]["Address"].value;
skill=document.forms["form"]["skills"].value;
localStorage.setItem("name",Name);
localStorage.setItem("number",number);
localStorage.setItem("dob",DOB);
localStorage.setItem("gender",gender);
localStorage.setItem("graduation",graduation);
localStorage.setItem("mail",mail);
localStorage.setItem("address",address);
localStorage.setItem("skill",skill);
window.open("resume.html","_blank");
}
function put(){
Name=localStorage.getItem("name");
number=localStorage.getItem("number");
DOB=localStorage.getItem("dob");
gender=localStorage.getItem("gender");
graduation=localStorage.getItem("graduation");
mail=localStorage.getItem("mail");
address=localStorage.getItem("address");
skill=localStorage.getItem("skill");
var x=document.getElementsByClassName("setName");
var i;
for (i =0; i < x.length; i++) {
x[i].innerHTML=Name;
}
document.getElementById("setNumber").innerHTML=number;
document.getElementById("setDOB").innerHTML=DOB;
document.getElementById("setGender").innerHTML=gender;
document.getElementById("setGraduation").innerHTML=graduation;
document.getElementById("setMail").innerHTML=mail;
document.getElementById("setSkills").innerHTML=skill;
var y=document.getElementsByClassName("setAddress");
for (i =0; i < y.length; i++) {
y[i].innerHTML=address;
}
}