-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path24h.html
More file actions
213 lines (186 loc) · 5.47 KB
/
Copy path24h.html
File metadata and controls
213 lines (186 loc) · 5.47 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
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
204
205
206
207
208
209
210
211
212
213
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="https://wichart.vn/favicon.svg" />
<title>Biểu đồ tài chính tùy chỉnh nâng cao</title>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script id="theme-script" src="https://code.highcharts.com/themes/brand-light.js"></script>
<link rel="stylesheet" type="text/css" href="loading.css">
<style>
#checkbox-container {
margin: 10px;
gap: 6px;
height: 400px;
overflow: auto;
}
#container {
height: 400px;
min-width: 500px;
width: 100%;
}
.controls {
margin: 10px;
}
.checkbox-container {
margin: 10px 0;
}
.main {
width: 100%;
border: 1px solid #9E9E9E;
height: 400px;
}
th {
border-bottom: 1px solid #9E9E9E;
}
body {
font-size: 14px;
line-height: 1.5em;
font-family: Roboto, Helvetica, Arial, sans-serif;
margin: 4px;
text-align: left;
background: #f0f0f0;
}
button {
background: var(--bgcolor);
color: var(--black);
padding: 4px;
border-radius: 4px;
border: 1px solid #ddd;
width: 180px
}
button:hover {
cursor: pointer;
}
input[type="text"],
input[type="number"] {
width: 80px;
padding: 4px;
border-radius: 4px;
}
input[type="text"] {
text-transform: uppercase;
}
select {
width: 100px;
padding: 4px;
border-radius: 4px;
}
.checkbox-container select {
width: 55px;
}
.controls {
display: flex;
}
.highcharts-tooltip table th {
padding-bottom: 0.2em;
border-bottom: 1px solid silver;
}
.selectOption {
display: flex;
justify-content: space-between;
width: 370px;
}
input[type="checkbox"] {
appearance: none;
width: 14px;
height: 14px;
border: 2px solid #ccc;
border-radius: 4px;
position: relative;
cursor: pointer;
}
input[type="checkbox"]:checked::before {
content: '\2714';
/* Biểu tượng checkmark */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 16px;
color: white;
}
input[type="checkbox"]:checked {
background-color: #4CAF50;
border-color: #4CAF50;
}
select {
border: 2px solid #4CAF50;
/* Green border */
border-radius: 5px;
background-color: #f9f9f9;
/* Light grey background */
appearance: none;
/* Removes default browser styles */
-webkit-appearance: none;
-moz-appearance: none;
color: #333;
/* Dark grey text */
cursor: pointer;
}
/* Custom arrow icon */
select::after {
content: '\25BC';
/* Downward arrow */
position: absolute;
top: 50%;
right: 10px;
transform: translateY(-50%);
pointer-events: none;
}
/* Change color when focused */
select:focus {
border-color: #45a049;
/* Darker green border */
outline: none;
}
label {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #11344f;
width: 200px;
}
</style>
</head>
<body>
<div class="controls">
<div id="load"></div>
<div>
<label for="stockSymbol">Nhập mã cổ phiếu:</label>
<input oninput="toUpperCase()" value="HPG" type="text" id="stockSymbol" placeholder="VD: MWG, AAPL">
</div>
<div>
<label for="reportType">Chọn loại báo cáo:</label>
<select id="reportType">
<option value="2">Kết quả kinh doanh</option>
<option value="1">Cân đối kế toán</option>
<option value="3">Lưu chuyển tiền tệ</option>
</select>
</div>
<button onclick="getStockData()">Lấy Dữ Liệu</button>
</div>
<table class="main">
<caption>
<h3>Biểu đồ tài chính nâng cao</h3>
</caption>
<thead>
</thead>
<tbody>
<tr>
<td>
<div id="container"></div>
</td>
<td>
<div class="selectOption" style="font-weight:600"><span>Khoản mục: </span><span>Kiểu/Trục/STD</span></div>
<div id="checkbox-container" class="checkbox-container"></div>
</td>
</tr>
</tbody>
</table>
</div>
<script src="app.js"></script>
</body>
</html>