-
Notifications
You must be signed in to change notification settings - Fork 3
/
payment.html
56 lines (53 loc) · 1.56 KB
/
payment.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="payment.css">
</head>
<body>
<div class="container">
<div>
<div class="first">
<div></div>
<div></div>
<div></div>
</div>
<div class="sec">
<div><img src="kfc-logo-profile.jpg" alt=""></div>
<div id="customer"></div>
<p>Log Out</p>
</div>
<div class="thir">
<a href="order_history.html"><p>Order History</p></a>
<a href="payment.html"><p>Payment</p></a>
<p>Account Settings</p>
</div>
</div>
<div class="box">
<div><h2>PAYMENTS</h2></div>
<p>You haven’t created any methods of payment yet</p>
<div>
<button>Pick Store to Add Payment</button>
</div>
</div>
</div>
</body>
</html>
<script>
var details=JSON.parse(localStorage.getItem("registrationData"))
var name=details.name;
var st=""
for(var i=0;i<name.length;i++)
{
st+=name[i];
if(name[i]==" ")
break;
}
var cname=document.createElement("h1")
cname.innerText="Howdy! "+st;
document.querySelector("#customer").append(cname)
console.log(st)
</script>