-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
144 lines (141 loc) · 4.92 KB
/
index.html
File metadata and controls
144 lines (141 loc) · 4.92 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bank Account Simulator</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<h1>Bank Account Simulator</h1>
</header>
<div class="container">
<div class="form-container">
<h2>Create Account</h2>
<form id="create-account-form">
<div class="form-group">
<label for="account-type">Account Type:</label>
<select id="account-type">
<option value="savings">Savings</option>
<option value="checking">Checking</option>
<option value="business">Business</option>
</select>
</div>
<div class="form-group">
<label for="owner">Owner:</label>
<input
type="text"
id="owner"
placeholder="Enter owner's name"
required
/>
<div id="owner-error" class="error-message"></div>
</div>
<div class="form-group">
<label for="currency">Currency:</label>
<select id="currency">
<option value="EGP">EGP</option>
<option value="USD">USD</option>
<option value="EUR">EUR</option>
<option value="GBP">GBP</option>
<option value="JPY">JPY</option>
</select>
</div>
<div class="form-group">
<label for="pin">PIN:</label>
<input
type="text"
id="pin"
placeholder="Enter 4-digit PIN"
required
pattern="\d{4}"
/>
<div id="pin-error" class="error-message"></div>
</div>
<div class="form-group">
<label for="interest-rate">Interest Rate (%):</label>
<input
type="text"
id="interest-rate"
placeholder="Enter interest rate as a number"
/>
<div id="interest-rate-error" class="error-message"></div>
</div>
<div class="form-group">
<label for="withdrawal-limit">Withdrawal Limit:</label>
<input
type="text"
id="withdrawal-limit"
placeholder="Enter withdrawal limit"
/>
<div id="withdrawal-limit-error" class="error-message"></div>
</div>
<div class="form-group">
<label for="overdraft-limit">Overdraft Limit:</label>
<input
type="text"
id="overdraft-limit"
placeholder="Enter overdraft limit"
/>
<div id="overdraft-limit-error" class="error-message"></div>
</div>
<div class="form-group">
<label for="overdraft-fee">Overdraft Fee:</label>
<input
type="text"
id="overdraft-fee"
placeholder="Enter overdraft fee"
/>
<div id="overdraft-fee-error" class="error-message"></div>
</div>
<button type="button" onclick="createAccount()">
Create Account
</button>
</form>
</div>
<div class="actions-container">
<h2>Account Actions</h2>
<form id="account-actions-form">
<div class="form-group">
<label for="action">Action:</label>
<select id="action">
<option value="deposit">Deposit</option>
<option value="withdraw">Withdraw</option>
<option value="request-loan">Request Loan</option>
<option value="calculate-interest">Calculate Interest</option>
<option value="process-large-transaction">
Process Large Transaction
</option>
<option value="generate-report">Generate Report</option>
</select>
</div>
<div class="form-group">
<label for="amount">Amount:</label>
<input type="text" id="amount" placeholder="Enter amount" />
<div id="amount-error" class="error-message"></div>
</div>
<div class="form-group">
<label for="pin-action">PIN (for withdrawal/loan):</label>
<input
type="text"
id="pin-action"
placeholder="Enter PIN for action"
pattern="\d{4}"
/>
<div id="pin-action-error" class="error-message"></div>
</div>
<button type="button" onclick="performAction()">
Perform Action
</button>
</form>
<!-- Console output moved here -->
<div class="console-output" id="console-output"></div>
</div>
</div>
<footer>
<p>© 2024 Bank Simulator. All rights reserved.</p>
</footer>
<script src="script.js"></script>
</body>
</html>