-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
180 lines (143 loc) · 6.9 KB
/
index.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
<!doctype html>
<html lang="en">
<head>
<title>CsCs-CryptoTrader</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
<!-- My stlyles -->
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/spinnerstyle.css">
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
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/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
</head>
<body>
<div class="row">
<!-- Bal oldal -->
<div class="col-sm-7">
<h1 class="display-4 p-3 bg-success text-white rounded">CsCs Kriptotrader</h1>
<!-- Balance -->
<div class="row ml-3">
<div class="card border-success" style="max-width: 18rem;">
<div class="card-header bg-success text-white text-uppercase font-weight-bold">Egyenleg</div>
<div class="card-body text-dark">
<ul class="list-group list-group-flush">
<li id="balanceAmount" class="list-group-item text-success">
Készpénz :
</li>
<li id="btc" class="list-group-item">
Bitcoin :
</li>
<li id="eth" class="list-group-item">
Ethereum :
</li>
<li id="xrp" class="list-group-item">
Ripple :
</li>
</ul>
</div>
</div>
<div class="card border-success ml-3 mt-5" style="width: 18rem; height: 10 rem;">
<div class="card-body">
<h5 class="card-title text-danger">Alaphelyzet</h5>
<p class="card-text">A gomb megnyomásával visszaállíthatja alaphelyzetbe az egyenlegét:</p>
<button id="resetButton" class="btn btn-outline-danger text-uppercase" type="submit" onclick="sendReset()">visszaállítás</button>
</div>
</div>
</div>
<!--Aktualis arfolyam -->
<div class="row-sm mt-3">
<h3 class="display-5 p-3 bg-success text-white font-weight-bold rounded">Kereskedés</h3>
</div>
<!-- Adas-Vetel -->
<div class="row ml-1">
<!-- Vetel -->
<div class="col-6 col-sm-6">
<div class="card border-success" style="max-width: 18rem;">
<div class="card-body bg-success text-white">
<div class="input-group">
<input type="text" id="purchaseAmount" class="form-control" placeholder="Mennyiség:" aria-label="Vásárolni kívánt valuta mennyisége"
aria-describedby="basic-addon2" required>
<div class="input-group-append">
<select id="purchaseDropdown" class="custom-select bg-success text-white text-uppercase font-weight-bold"></select>
</div>
</div>
</div>
<div class="card-footer bg-transparent border-success">
<button id="purchaseButton" class="btn btn-outline-success my-2 my-sm-0" type="submit" onclick="SendPurchaseRequest()">VÉTEL</button>
</div>
</div>
</div>
<!-- Eladas -->
<div class="col-6 col-sm-6">
<div class="card border-success" style="max-width: 18rem;">
<div class="card-body text-info bg-success">
<div class="input-group">
<input type="text" id="sellAmount" class="form-control" placeholder="Mennyiség:" aria-label="Eladni kívánt valuta mennyisége"
aria-describedby="basic-addon2" required>
<div class="input-group-append">
<select id="sellDropdown" class="custom-select bg-success text-white text-uppercase font-weight-bold"></select>
</div>
</div>
</div>
<div class="card-footer bg-transparent border-success">
<button id="sellButton" class="btn btn-outline-success my-2 my-sm-0" type="submit" onclick="SendSellRequest()">ELADÁS</button>
</div>
</div>
</div>
</div>
<!-- Tranzakcio Tortenet -->
<div class="row mt-3 ml-0">
<div class="accordion w-100" id="Trans_history_accordion">
<div class="card">
<div class="card-header bg-success" id="headingOne">
<h5 class="mb-0">
<button class="btn btn-outline-success btn-lg text-white" type="button" data-toggle="collapse"
data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Tranzakció történet
</button>
</h5>
</div>
<div id="collapseOne" class="collapse" aria-labelledby="headingOne" data-parent="#Trans_history_accordion">
<div class="card-body">
<div class="table-responsive-sm">
<table id="HistoryTable" class="table table-sm table-hover table-bordered">
<thead class="thead-light" id="HistoryTableHeader">
<th scope="col" id="createdAt">Dátum</th>
<th scope="col" id="type">Tranzakció típusa</th>
<th scope="col" id="symbol">Valuta</th>
<th scope="col" id="amount">Mennyiség</th>
<th scope="col" id="exchangeRate">USD értéke</th>
</thead>
<tbody id="HistoryTableBody">
<!-- Dinamikusan generált -->
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Jobb oldal -->
<div class="col">
<div id="chart">
</div>
</div>
</div>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/spinner.js"></script>
<script type="text/javascript" src="js/table.js"></script>
<script type="text/javascript" src="js/chart.js"></script>
</body>
</html>