-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.html
136 lines (128 loc) · 5.72 KB
/
next.html
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>Document</title>
</head>
<style>
main{
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
</style>
<body>
<!-- <center>
<h2>Form Data</h2>
<div>First name: <br><span id="first-name"></span></div>
<div>Last name: <br><span id="last-name"></span></div>
<div class="">
<h5>NAME: <span id="fullName"></span></h5>
<h5>EMAIL: <span id="email"></span></h5>
<h5>AGE: <span id="age"></span></h5>
<h5>GENDER: <span id="gender"></span></h5>
<h5>ROLE: <span id="role"></span></h5>
<h5>COUNTRY: <span id="country"></span></h5>
<h5>PHONE: <span id="phone"></span></h5>
<h5>COURSES: <span id="checkbox"></span></h5>
<h5>COMMENT: <span id="comment"></span></h5>
<h5>PASSWORD-1: <span id="pass1"></span></h5>
<h5>PASSWORD-2: <span id="pass2"></span></h5>
</div>
</center> -->
<main>
<div class="container">
<div class="row">
<div class="col-lg-7 mx-auto ">
<h3 class="text-center mb-3">FORM OUTPUT DATA:</h3>
<table class="table table-bordered table-hover ">
<thead>
<tr>
<th scope="col">NAME:</th>
<td id="fullName"></td>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">EMAIL:</th>
<td id="email"></td>
</tr>
<tr>
<th scope="row">AGE</th>
<td id="age"></td>
</tr>
<tr>
<th scope="row">GENDER</th>
<td id="gender"></td>
</tr>
<tr>
<th scope="row">ROLE:</th>
<td id="role"></td>
</tr>
<tr>
<th scope="row">COUNTRY</th>
<td id="country"></td>
</tr>
<tr>
<th scope="row">PHONE NUMBER:</th>
<td id="phone"></td>
</tr>
<tr>
<th scope="row">COURSES</th>
<td id="checkbox"></td>
</tr>
<tr>
<th scope="row">COMENTS:</th>
<td id="comment"></td>
</tr>
<tr>
<th scope="row">PASSWORD:</th>
<td id="pass1"></td>
</tr>
<tr>
<th scope="row">CONFIRM PASSWORD:</th>
<td id="pass2"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</main>
<script>
const firstname = localStorage.getItem("first-name")
const lastname = localStorage.getItem("last-name")
const email = localStorage.getItem("email-value")
const age = localStorage.getItem("age-value")
var gender = localStorage.getItem("gender-value")
const role = localStorage.getItem("role-value")
const country = localStorage.getItem("country-value")
const phone = localStorage.getItem("phone-value")
const check = localStorage.getItem("inp-value")
const comment = localStorage.getItem("comment-value")
const firstpass = localStorage.getItem("pass1-value")
const secondpass = localStorage.getItem("pass2-value")
// document.getElementById("first-name").textContent=firstname
// document.getElementById("last-name").textContent=lastname
const fullname = firstname.concat(lastname)
document.getElementById("fullName").textContent = fullname
document.getElementById("email").textContent = email
document.getElementById("age").textContent = age
document.getElementById("gender").textContent = gender
document.getElementById("role").textContent = role
document.getElementById("country").textContent = country
document.getElementById("phone").textContent = phone
document.getElementById("checkbox").textContent = check
document.getElementById("comment").textContent = comment
document.getElementById("pass1").textContent = firstpass
document.getElementById("pass2").textContent = secondpass
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
</body>
</html>