-
Notifications
You must be signed in to change notification settings - Fork 1
/
confirmation.html
170 lines (158 loc) · 6.79 KB
/
confirmation.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html lang="en">
<head>
<!-- basic -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- mobile metas -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<!-- site metas -->
<title>Pitrustex</title>
<meta name="keywords" content="Pi Network, Pitrustex, Pi token, Leen-Co Tech, Leenco, Emlyn, Pi, Pi Exchanger, Pi Exchange,">
<meta name="description" content="Buy and Sell Pi Token, Buy and Sell your Pi,">
<meta name="author" content="Umar Abdulmalik, Umar Emlyn, Leen-Co Tech Ltd">
<!-- bootstrap css -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- style css -->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/styles.css">
<!-- responsive-->
<link rel="stylesheet" href="css/responsive.css">
<!-- awesome fontfamily -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->
</head>
<!-- body -->
<body class="main-layout">
<!-- loader
<div class="loader_bg">
<div class="loader"><img src="images/loading.gif" alt="" /></div>
</div>
--> <!-- end loader -->
<div id="mySidepanel" class="sidepanel">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<a class="active" href="index.html">Home</a>
<a href="about.html">About</a>
<a href="#">Blog</a>
<a href="#">Explore</a>
<a href="contact.html">Contact</a>
</div>
<!-- header -->
<header>
<!-- header inner -->
<div class="head-top">
<div class="container-fluid">
<div class="row d_flex">
<div class="col-sm-3">
<div class="logo">
<a href="index.html"><img src="images/logo.png" alt="" /></a>
</div>
</div>
<div class="col-sm-5">
<ul class="social_icon text_align_right d_none">
<li> <a href="Javascript:void(0)"><i class="fa fa-facebook-f"></i></a></li>
<li> <a href="Javascript:void(0)"><i class="fa fa-twitter"></i></a></li>
<li> <a href="Javascript:void(0)"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li>
<li> <a href="Javascript:void(0)"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
<li> <a href="Javascript:void(0)"><i class="fa fa-youtube-play" aria-hidden="true"></i></a></li>
</ul>
</div>
<div class="col-sm-4">
<ul class="email text_align_right">
<li>
<button class="openbtn" onclick="openNav()"><img src="images/menu_btn.png"></button>
</li>
</ul>
</div>
</div>
</div>
</div>
</header>
<!-- end header -->
<br>
<div class="login-wrap">
<div class="login-html">
<div id="purchaseDetails">
<h2 style="center">Here are your Purchase Details</h2>
<p id="amount"></p>
<p id="totalBuy"></p>
<p id="walletAddres"></p>
</div>
<br>
<div id="bankDetails">
<h2>Please pay to the below Company Bank Details</h2>
<p>Bank Name: XYZ Bank</p>
<p>Account Number: 1234567890</p>
<p>Account Name: Pirex Limited</p>
</div>
<br>
<p>If you have successfully paid, kindly press the button below and wait for confirmation... <br>
</p>
<div id="orderPaid">
<button id="submitButton">Confirm Payment</button>
</div>
</div>
</div>
<!-- footer -->
<footer>
<div class="footer">
<div class=" ">
<div class="row">
<div class="copyright text_align_center ">
<div class=" ">
<div class="row ">
<div class="col-md-12 ">
<p>© <a href="https://Leecotech.com/ "> Pitrustex</a> 2023</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</footer>
<!-- end footer -->
<!-- Javascript files-->
<script>
// Get the information of the user's purchase
let purchaseAmount = localStorage.getItem("Buyamount");
let totalBuy = localStorage.getItem("totalBuy");
let walletAddress = localStorage.getItem("walletAddres");
// Display the purchase details
document.getElementById("amount").innerHTML = "Pi Amount: " + purchaseAmount;
document.getElementById("totalBuy").innerHTML = "Total Price: " + totalBuy;
document.getElementById("walletAddres").innerHTML = "Your Recieving Pi Wallet: " + walletAddress;
// Get the submit button
let submitButton = document.getElementById("clickBuy");
// Add an event listener to the submit button
submitButton.addEventListener("clickBuy", function() {
// Get the user's details
//let walletAddress = document.getElementById("walletInput").value;
// Store the user's details
//localStorage.setItem("walletAddress", walletAddress);
// Redirect the user to the confirmation page
window.location.href = "confirmation.html";
});
const submit = document.getElementById("submitButton");
submit.addEventListener("submitButton", function(event) {
event.preventDefault();
const walletAddress = form.elements.walletAddress.value;
const transactionType = form.elements.transactionType.value;
let companyDetails;
if (transactionType === "buy") {
companyDetails = "Thank You for your Patronage \n\n Please wait as we confirm your payment \n Your Pi Coin will arrive shortly... \n If you encounter any issues please contact our support";
} else if (transactionType === "sell") {
companyDetails = "Company Wallet Address: \n\n 0x1234567890abcdef";
}
alert(`Wallet Address: ${walletAddress} \n\n Transaction Type: ${transactionType} \n\n ${companyDetails}`);
});
</script>
<script src="js/jquery.min.js "></script>
<script src="js/bootstrap.bundle.min.js "></script>
<script src="js/jquery-3.0.0.min.js "></script>
<script src="js/custom.js "></script>
</body>
</html>