-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccount.html
203 lines (175 loc) · 7.96 KB
/
account.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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Account</title>
<link rel="icon"
type="image/x-icon"
href="/favicon.png">
<link rel="stylesheet" href="css/bootstrap.css">
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha384-xBuQ/xzmlsLoJpyjoggmTEz8OWUFM0/RC5BsqQBDX2v5cMvDHcMakNTNrHIW2I5f" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?version=3.52.1&features=fetch"></script>
<script src="https://js.stripe.com/v3/"></script>
<script src="js/checkout.js"></script>
<script src="js/account.js"></script>
<script defer src="js/page.js"></script>
<script defer src="js/history.js"></script>
<link rel="stylesheet" href="css/site.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid" style="justify-content: normal">
<img src="logo.png" width="32px" style="margin-right: 5px"/>
<a class="navbar-brand" href="#">GRLC Shop</a>
<div>
<ul class="nav navbar-nav" id="navbarColor02">
<li class="nav-item">
<a class="nav-link" href="index.html">Home
</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="#">Account
<span class="visually-hidden">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact Us</a>
</li>
</ul>
</div>
</div>
</div>
</nav>
<div class="mainDiv">
<div class="card border-success mb-4 card-margin" name="bodyCard">
<div class="card-header">Account Details</div>
<div class="card-body">
<div>
<h4 class="card-title">Your current balances and details</h4>
<p class="card-text">
<input id="usrName" type="text" class="form-control" placeholder="Username"></br>
<input id="usrEmail" type="email" class="form-control" placeholder="Email"></br>
<input id="usrOutAddress" type="text" class="form-control" placeholder="Pay Out Address"></br>
<input id="usrPassword" type="password" class="form-control" placeholder="New Password"></br>
Balance: <span class="badge bg-success"><u><a id="balVal">0.0</a></u> GRLC</span>
</p>
<div class="alert alert-dismissible alert-warning" id="updateErrorBox" style="display: none">
<button type="button" class="btn-close" onclick="HideUpdateError()"></button>
<strong>An Error Has Occurred</strong> <p id="updateError"></p>
</div>
<div class="bottomdiv">
<button type="button" class="btn btn-success" id="SaveUserDetails" onclick="SaveUserDetails()">Update</button>
</div>
</div>
</div>
</div>
<div class="card border-info mb-4 card-margin" name="bodyCard">
<div class="card-header">Withdrawal</div>
<div class="card-body">
<div>
<h4 class="card-title">Withdrawing From your Account</h4>
<form>
<fieldset>
<div>
<div class="form-group">
<input id="withdrawAddr" type="text" class="form-control" placeholder="Withdrawal Address"></br>
<input id="withdrawAmount" type="number" class="form-control" placeholder="Withdrawal Amount" step="0.1" max="10" min="0"></br>
<button type="button" class="btn btn-info btn-sm" onclick="SetWithDrawToAll()" style="justify-self: right">Use All Balance</button>
</div>
</br>
<div class="alert alert-danger" style="display: none;" id="WithdrawErrorBox">
<strong>Oh Shucks!</strong> <a id="WithdrawError"></a>
</div>
</br>
</div>
</fieldset>
</form>
</div>
<div class="alert alert-dismissible alert-info" id="outTxIdBox" style="display: none;">
<button type="button" class="btn-close" onclick="HideWithdrawTx()"></button>
<strong>Transaction Id: </strong> <p id="outTxId"></p>
</div>
<div class="bottomdiv">
<div id="WithdrawConfirm" style="display: none" >
<div class="alert alert-warning">
<strong>Be Aware!</strong> Any incurred transaction fees will be subtracted from your withdrawal amount. Remember to <strong>Check Your Address</strong>, miss-directed payments will be lost.
</div>
<button type="button" class="btn btn-info" id="WithdrawYesButton" onclick="WithdrawAmount()">Confirm</button>
<button type="button" class="btn btn-dark" id="WithdrawCancelButton" onclick="WithdrawCancel()">Cancel</button>
</div>
<button type="button" class="btn btn-info" id="WithdrawButton" onclick="WithdrawConfirmation()">Withdraw</button>
</div>
</div>
</div>
<div class="card border-primary mb-6 card-margin" name="bodyCard">
<div class="card-header">Buy Crypto</div>
<div class="card-body">
<div>
<h4 class="card-title">Stats</h4>
<p class="card-text">Current Price: <span class="badge bg-primary"><u>$<a id="curPrice">0</a> / GRLC</u></span></p>
<p class="card-text">Available to Buy: <span class="badge bg-primary"><u><a id="sellableBalance">0</a> GRLC</u></span></p>
<input id="purchaseAmount" type="number" class="form-control" placeholder="Amount Of GRLC" oninput="BuyChanged()" step="1">
</br>
<p class="card-text">
Crypto Value: <span class="badge bg-danger"><u>$<a id="cryptoPrice">0</a></u></span></br>
Fee: <span class="badge bg-danger"><u>$<a id="fee">0</a></u></span></br>
Total: <span class="badge bg-danger"><u>$<a id="totPrice">0</a></u></span>
</p>
<p>Please Read Our <a href="tos.html" target="_blank">Terms Of Service & Privacy Policy</a>.</br>Take note of our 15 minute balance reservation policy.</p>
<div class="alert alert-dismissible alert-warning" id="shopErrorBox" style="display: none">
<button type="button" class="btn-close" onclick="HideShopError()"></button>
<strong>An Error Has Occurred</strong> <p id="shopError"></p>
</div>
</div>
<div class="bottomdiv">
<button type="button" class="btn btn-primary" onclick="CheckOut()">Checkout</button>
</div>
</div>
</div>
</div>
</br>
<div class="mainDiv">
<div class="card border-dark mb-4 card-margin" name="bodyCard">
<div class="card-header">Purchase History</div>
<div class="card-body">
<div>
<h4 class="card-title">Your Purchase's Through Us</h4>
<table class="table table-hover">
<thead>
<tr>
<th scope="col">When</th>
<th scope="col">Crypto</th>
<th scope="col">Cost</th>
<th scope="col">Approved</th>
<th scope="col">Bal Paid</th>
</tr>
</thead>
<tbody id="PurchaseTable">
</tbody>
</table>
</div>
</div>
</div>
<div class="card border-light mb-4 card-margin" name="bodyCard">
<div class="card-header">Transaction History</div>
<div class="card-body">
<div>
<h4 class="card-title">Your Transaction's Through Us</h4>
<table class="table table-hover">
<thead>
<tr>
<th scope="col">When</th>
<th scope="col">Crypto Flow</th>
<th scope="col">TxId</th>
</tr>
</thead>
<tbody id="TransactionTable">
</tbody>
</table>
</div>
</div>
</div>
</div>
</body>
</html>