This page was made as a personal project in connection with an educational exercise.
This is NOT the official site of the company or brand identified on the page. The creator of this page is NOT affiliated with the company or brand in any way. DO NOT enter any personal information (such as logins, passwords or credit card numbers) on this site.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathContactDetails.html
118 lines (117 loc) · 3.19 KB
/
ContactDetails.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
<!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>Contact Details</title>
<style>
#contDetails {
width: 40%;
margin: auto;
margin-top: 40px;
}
#contDetails > img {
width: 50%;
margin-left: 27%;
}
#contDetails > h1 {
font-size: 170%;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
color: rgb(105, 105, 105);
}
label {
font-size: 130%;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
color: rgb(65, 65, 65);
}
input {
width: 90%;
padding: 10px 10px;
font-size: 20px;
margin-bottom: 15px;
border-radius: 5px;
}
input:hover {
border: 2px solid rgb(250, 114, 136);
}
#check1,
#check2 {
width: auto;
padding: 5px;
}
button {
padding: 8px;
background-color: rgb(252, 152, 169);
border: transparent;
border-radius: 7px 10px;
font-weight: bold;
font-size: 20px;
color: rgb(19, 19, 19);
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
cursor: pointer;
}
</style>
</head>
<body>
<div id="contDetails">
<img
src="https://cdn.shopify.com/s/files/1/0361/8553/8692/files/Dot_Key_Logo.png?138922"
alt="DotandKey"
/>
<h1>Add Contact Details</h1>
<label for="">Email Address</label><br />
<input
type="email"
placeholder="Add your Email"
id="email"
required
/><br />
<label for="">Address</label><br />
<input
type="text"
placeholder="Add your Shipping Address"
id="add"
required
/><br />
<label for="">Mobile Number</label><br />
<input
type="text"
placeholder="Add your Mobile number"
id="num"
required
/><br />
<input type="checkbox" id="check1" /><label for="">Cash on shipment</label
><br />
<input type="checkbox" id="check2" /><label for=""
>Instant Payment using Card</label
><br />
<hr
style="
width: 92%;
margin-left: 0px;
border: 2px solid rgb(255, 175, 188);
"
/>
<button>Submit Contact Details</button>
</div>
</body>
</html>
<script>
// document.querySelector("#check1").addEventListener("click", function () {
// window.location.href = "PaymentPage.html";
// });
document.querySelector("#check2").addEventListener("click", function () {
window.location.href = "AddCard.html";
});
</script>
<script>
document.querySelector("button").addEventListener("click", function () {
let Email = document.querySelector("#email").value;
let Add = document.querySelector("#add").value;
let Num = document.querySelector("#num").value;
let ContactDetails = [Email, Add, Num];
localStorage.setItem("ContactDetails", JSON.stringify(ContactDetails));
window.location.href = "PaymentPage.html";
});
</script>