XnOwO commited on
Commit
6e67e1b
·
verified ·
1 Parent(s): 5595238

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +675 -19
index.html CHANGED
@@ -1,19 +1,675 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Crypto Binary Options</title>
7
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
8
+ <style>
9
+ * {
10
+ margin: 0;
11
+ padding: 0;
12
+ box-sizing: border-box;
13
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
14
+ }
15
+
16
+ :root {
17
+ --primary: #2563eb;
18
+ --primary-dark: #1d4ed8;
19
+ --success: #10b981;
20
+ --danger: #ef4444;
21
+ --dark: #1f2937;
22
+ --darker: #111827;
23
+ --light: #f8fafc;
24
+ --gray: #6b7280;
25
+ --border: #374151;
26
+ }
27
+
28
+ body {
29
+ background: linear-gradient(135deg, var(--darker), var(--dark));
30
+ color: var(--light);
31
+ min-height: 100vh;
32
+ padding: 20px;
33
+ }
34
+
35
+ .container {
36
+ max-width: 1200px;
37
+ margin: 0 auto;
38
+ }
39
+
40
+ header {
41
+ display: flex;
42
+ justify-content: space-between;
43
+ align-items: center;
44
+ padding: 20px 0;
45
+ border-bottom: 1px solid var(--border);
46
+ margin-bottom: 30px;
47
+ flex-wrap: wrap;
48
+ }
49
+
50
+ .logo {
51
+ display: flex;
52
+ align-items: center;
53
+ gap: 10px;
54
+ font-size: 1.5rem;
55
+ font-weight: 700;
56
+ }
57
+
58
+ .logo i {
59
+ color: var(--primary);
60
+ }
61
+
62
+ .built-with {
63
+ font-size: 0.8rem;
64
+ color: var(--gray);
65
+ text-decoration: none;
66
+ transition: color 0.3s;
67
+ }
68
+
69
+ .built-with:hover {
70
+ color: var(--primary);
71
+ }
72
+
73
+ .main-content {
74
+ display: grid;
75
+ grid-template-columns: 1fr 350px;
76
+ gap: 20px;
77
+ }
78
+
79
+ @media (max-width: 768px) {
80
+ .main-content {
81
+ grid-template-columns: 1fr;
82
+ }
83
+ }
84
+
85
+ .chart-container {
86
+ background: var(--dark);
87
+ border-radius: 12px;
88
+ padding: 20px;
89
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
90
+ border: 1px solid var(--border);
91
+ }
92
+
93
+ .chart-header {
94
+ display: flex;
95
+ justify-content: space-between;
96
+ align-items: center;
97
+ margin-bottom: 20px;
98
+ flex-wrap: wrap;
99
+ gap: 10px;
100
+ }
101
+
102
+ .coin-selector {
103
+ display: flex;
104
+ gap: 10px;
105
+ }
106
+
107
+ .coin-option {
108
+ padding: 8px 16px;
109
+ background: var(--darker);
110
+ border-radius: 8px;
111
+ cursor: pointer;
112
+ transition: all 0.3s;
113
+ border: 1px solid transparent;
114
+ }
115
+
116
+ .coin-option.active {
117
+ background: var(--primary);
118
+ border-color: var(--primary);
119
+ }
120
+
121
+ .timeframe-selector {
122
+ display: flex;
123
+ gap: 5px;
124
+ }
125
+
126
+ .timeframe {
127
+ padding: 6px 12px;
128
+ background: var(--darker);
129
+ border-radius: 6px;
130
+ cursor: pointer;
131
+ font-size: 0.8rem;
132
+ transition: all 0.3s;
133
+ }
134
+
135
+ .timeframe.active {
136
+ background: var(--primary);
137
+ }
138
+
139
+ .chart-placeholder {
140
+ height: 400px;
141
+ background: var(--darker);
142
+ border-radius: 8px;
143
+ display: flex;
144
+ align-items: center;
145
+ justify-content: center;
146
+ position: relative;
147
+ overflow: hidden;
148
+ }
149
+
150
+ .chart-placeholder::before {
151
+ content: "";
152
+ position: absolute;
153
+ width: 100%;
154
+ height: 2px;
155
+ background: var(--border);
156
+ top: 50%;
157
+ left: 0;
158
+ transform: translateY(-50%);
159
+ }
160
+
161
+ .chart-placeholder::after {
162
+ content: "Crypto Chart Visualization";
163
+ position: relative;
164
+ background: var(--darker);
165
+ padding: 0 20px;
166
+ color: var(--gray);
167
+ font-size: 1.2rem;
168
+ }
169
+
170
+ .options-panel {
171
+ background: var(--dark);
172
+ border-radius: 12px;
173
+ padding: 20px;
174
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
175
+ border: 1px solid var(--border);
176
+ }
177
+
178
+ .panel-title {
179
+ font-size: 1.2rem;
180
+ margin-bottom: 20px;
181
+ display: flex;
182
+ align-items: center;
183
+ gap: 10px;
184
+ }
185
+
186
+ .panel-title i {
187
+ color: var(--primary);
188
+ }
189
+
190
+ .option-type-selector {
191
+ display: grid;
192
+ grid-template-columns: 1fr 1fr;
193
+ gap: 10px;
194
+ margin-bottom: 20px;
195
+ }
196
+
197
+ .option-type {
198
+ padding: 12px;
199
+ background: var(--darker);
200
+ border-radius: 8px;
201
+ text-align: center;
202
+ cursor: pointer;
203
+ transition: all 0.3s;
204
+ border: 1px solid transparent;
205
+ }
206
+
207
+ .option-type.active {
208
+ background: var(--primary);
209
+ border-color: var(--primary);
210
+ }
211
+
212
+ .input-group {
213
+ margin-bottom: 15px;
214
+ }
215
+
216
+ .input-label {
217
+ display: block;
218
+ margin-bottom: 8px;
219
+ font-size: 0.9rem;
220
+ color: var(--gray);
221
+ }
222
+
223
+ .input-field {
224
+ width: 100%;
225
+ padding: 12px;
226
+ background: var(--darker);
227
+ border: 1px solid var(--border);
228
+ border-radius: 8px;
229
+ color: var(--light);
230
+ font-size: 1rem;
231
+ }
232
+
233
+ .input-field:focus {
234
+ outline: none;
235
+ border-color: var(--primary);
236
+ }
237
+
238
+ .duration-selector {
239
+ display: grid;
240
+ grid-template-columns: repeat(3, 1fr);
241
+ gap: 8px;
242
+ margin-bottom: 20px;
243
+ }
244
+
245
+ .duration-option {
246
+ padding: 10px;
247
+ background: var(--darker);
248
+ border-radius: 6px;
249
+ text-align: center;
250
+ cursor: pointer;
251
+ transition: all 0.3s;
252
+ border: 1px solid transparent;
253
+ }
254
+
255
+ .duration-option.active {
256
+ background: var(--primary);
257
+ border-color: var(--primary);
258
+ }
259
+
260
+ .trade-button {
261
+ width: 100%;
262
+ padding: 14px;
263
+ background: var(--primary);
264
+ color: white;
265
+ border: none;
266
+ border-radius: 8px;
267
+ font-size: 1rem;
268
+ font-weight: 600;
269
+ cursor: pointer;
270
+ transition: background 0.3s;
271
+ margin-bottom: 20px;
272
+ }
273
+
274
+ .trade-button:hover {
275
+ background: var(--primary-dark);
276
+ }
277
+
278
+ .trade-button.up {
279
+ background: var(--success);
280
+ }
281
+
282
+ .trade-button.down {
283
+ background: var(--danger);
284
+ }
285
+
286
+ .trade-history {
287
+ margin-top: 30px;
288
+ }
289
+
290
+ .history-title {
291
+ font-size: 1rem;
292
+ margin-bottom: 15px;
293
+ display: flex;
294
+ align-items: center;
295
+ gap: 10px;
296
+ }
297
+
298
+ .history-list {
299
+ max-height: 200px;
300
+ overflow-y: auto;
301
+ }
302
+
303
+ .history-item {
304
+ display: flex;
305
+ justify-content: space-between;
306
+ padding: 12px;
307
+ background: var(--darker);
308
+ border-radius: 8px;
309
+ margin-bottom: 8px;
310
+ border-left: 4px solid var(--success);
311
+ }
312
+
313
+ .history-item.down {
314
+ border-left-color: var(--danger);
315
+ }
316
+
317
+ .history-coin {
318
+ font-weight: 600;
319
+ }
320
+
321
+ .history-direction {
322
+ display: flex;
323
+ align-items: center;
324
+ gap: 5px;
325
+ }
326
+
327
+ .history-direction.up {
328
+ color: var(--success);
329
+ }
330
+
331
+ .history-direction.down {
332
+ color: var(--danger);
333
+ }
334
+
335
+ .history-amount {
336
+ font-weight: 600;
337
+ }
338
+
339
+ .history-result {
340
+ font-weight: 600;
341
+ }
342
+
343
+ .history-result.win {
344
+ color: var(--success);
345
+ }
346
+
347
+ .history-result.loss {
348
+ color: var(--danger);
349
+ }
350
+
351
+ .balance-card {
352
+ background: var(--darker);
353
+ border-radius: 10px;
354
+ padding: 20px;
355
+ margin-bottom: 20px;
356
+ display: flex;
357
+ justify-content: space-between;
358
+ align-items: center;
359
+ }
360
+
361
+ .balance-amount {
362
+ font-size: 1.5rem;
363
+ font-weight: 700;
364
+ }
365
+
366
+ .balance-label {
367
+ color: var(--gray);
368
+ font-size: 0.9rem;
369
+ }
370
+
371
+ .stats-grid {
372
+ display: grid;
373
+ grid-template-columns: 1fr 1fr;
374
+ gap: 15px;
375
+ margin-top: 20px;
376
+ }
377
+
378
+ .stat-card {
379
+ background: var(--darker);
380
+ border-radius: 8px;
381
+ padding: 15px;
382
+ text-align: center;
383
+ }
384
+
385
+ .stat-value {
386
+ font-size: 1.2rem;
387
+ font-weight: 700;
388
+ margin-bottom: 5px;
389
+ }
390
+
391
+ .stat-label {
392
+ font-size: 0.8rem;
393
+ color: var(--gray);
394
+ }
395
+
396
+ footer {
397
+ text-align: center;
398
+ margin-top: 40px;
399
+ padding: 20px 0;
400
+ color: var(--gray);
401
+ font-size: 0.9rem;
402
+ border-top: 1px solid var(--border);
403
+ }
404
+
405
+ /* Scrollbar Styling */
406
+ ::-webkit-scrollbar {
407
+ width: 6px;
408
+ }
409
+
410
+ ::-webkit-scrollbar-track {
411
+ background: var(--darker);
412
+ border-radius: 10px;
413
+ }
414
+
415
+ ::-webkit-scrollbar-thumb {
416
+ background: var(--primary);
417
+ border-radius: 10px;
418
+ }
419
+
420
+ /* Animation for price changes */
421
+ @keyframes pulseUp {
422
+ 0% { background-color: var(--darker); }
423
+ 50% { background-color: rgba(16, 185, 129, 0.2); }
424
+ 100% { background-color: var(--darker); }
425
+ }
426
+
427
+ @keyframes pulseDown {
428
+ 0% { background-color: var(--darker); }
429
+ 50% { background-color: rgba(239, 68, 68, 0.2); }
430
+ 100% { background-color: var(--darker); }
431
+ }
432
+
433
+ .price-up {
434
+ animation: pulseUp 1s ease;
435
+ }
436
+
437
+ .price-down {
438
+ animation: pulseDown 1s ease;
439
+ }
440
+ </style>
441
+ </head>
442
+ <body>
443
+ <div class="container">
444
+ <header>
445
+ <div class="logo">
446
+ <i class="fas fa-chart-line"></i>
447
+ <span>CryptoBinary</span>
448
+ </div>
449
+ <a href="https://huggingface.co/spaces/akhaliq/anycoder" class="built-with">Built with anycoder</a>
450
+ </header>
451
+
452
+ <div class="balance-card">
453
+ <div>
454
+ <div class="balance-label">Account Balance</div>
455
+ <div class="balance-amount">$10,245.75</div>
456
+ </div>
457
+ <div>
458
+ <div class="balance-label">Active Trades</div>
459
+ <div class="balance-amount">3</div>
460
+ </div>
461
+ </div>
462
+
463
+ <div class="main-content">
464
+ <div class="chart-container">
465
+ <div class="chart-header">
466
+ <div class="coin-selector">
467
+ <div class="coin-option active" data-coin="BTC">BTC/USD</div>
468
+ <div class="coin-option" data-coin="ETH">ETH/USD</div>
469
+ <div class="coin-option" data-coin="ADA">ADA/USD</div>
470
+ <div class="coin-option" data-coin="DOT">DOT/USD</div>
471
+ </div>
472
+ <div class="timeframe-selector">
473
+ <div class="timeframe active">1m</div>
474
+ <div class="timeframe">5m</div>
475
+ <div class="timeframe">15m</div>
476
+ <div class="timeframe">1h</div>
477
+ <div class="timeframe">4h</div>
478
+ </div>
479
+ </div>
480
+ <div class="chart-placeholder" id="chart">
481
+ <!-- Chart would be rendered here with a real charting library -->
482
+ </div>
483
+ </div>
484
+
485
+ <div class="options-panel">
486
+ <h2 class="panel-title"><i class="fas fa-exchange-alt"></i> Place Trade</h2>
487
+
488
+ <div class="option-type-selector">
489
+ <div class="option-type active" data-type="up">
490
+ <i class="fas fa-arrow-up"></i> Up
491
+ </div>
492
+ <div class="option-type" data-type="down">
493
+ <i class="fas fa-arrow-down"></i> Down
494
+ </div>
495
+ </div>
496
+
497
+ <div class="input-group">
498
+ <label class="input-label">Investment Amount ($)</label>
499
+ <input type="number" class="input-field" id="amount" value="100" min="10" max="1000">
500
+ </div>
501
+
502
+ <div class="input-group">
503
+ <label class="input-label">Payout (%)</label>
504
+ <input type="text" class="input-field" id="payout" value="85%" readonly>
505
+ </div>
506
+
507
+ <div class="input-group">
508
+ <label class="input-label">Expiry Time</label>
509
+ <div class="duration-selector">
510
+ <div class="duration-option active" data-duration="1">1 min</div>
511
+ <div class="duration-option" data-duration="5">5 min</div>
512
+ <div class="duration-option" data-duration="15">15 min</div>
513
+ </div>
514
+ </div>
515
+
516
+ <button class="trade-button up" id="trade-button">
517
+ <i class="fas fa-arrow-up"></i> BUY UP
518
+ </button>
519
+
520
+ <div class="trade-history">
521
+ <h3 class="history-title"><i class="fas fa-history"></i> Recent Trades</h3>
522
+ <div class="history-list" id="history-list">
523
+ <div class="history-item">
524
+ <div class="history-coin">BTC/USD</div>
525
+ <div class="history-direction up"><i class="fas fa-arrow-up"></i> UP</div>
526
+ <div class="history-amount">$100</div>
527
+ <div class="history-result win">+$85</div>
528
+ </div>
529
+ <div class="history-item down">
530
+ <div class="history-coin">ETH/USD</div>
531
+ <div class="history-direction down"><i class="fas fa-arrow-down"></i> DOWN</div>
532
+ <div class="history-amount">$50</div>
533
+ <div class="history-result loss">-$50</div>
534
+ </div>
535
+ <div class="history-item">
536
+ <div class="history-coin">ADA/USD</div>
537
+ <div class="history-direction up"><i class="fas fa-arrow-up"></i> UP</div>
538
+ <div class="history-amount">$75</div>
539
+ <div class="history-result win">+$63.75</div>
540
+ </div>
541
+ </div>
542
+ </div>
543
+
544
+ <div class="stats-grid">
545
+ <div class="stat-card">
546
+ <div class="stat-value">68%</div>
547
+ <div class="stat-label">Win Rate</div>
548
+ </div>
549
+ <div class="stat-card">
550
+ <div class="stat-value">24</div>
551
+ <div class="stat-label">Total Trades</div>
552
+ </div>
553
+ </div>
554
+ </div>
555
+ </div>
556
+
557
+ <footer>
558
+ <p>CryptoBinary &copy; 2023 | High risk investment. Trade responsibly.</p>
559
+ </footer>
560
+ </div>
561
+
562
+ <script>
563
+ document.addEventListener('DOMContentLoaded', function() {
564
+ // Coin selection
565
+ const coinOptions = document.querySelectorAll('.coin-option');
566
+ coinOptions.forEach(option => {
567
+ option.addEventListener('click', function() {
568
+ coinOptions.forEach(opt => opt.classList.remove('active'));
569
+ this.classList.add('active');
570
+
571
+ // Update chart placeholder text
572
+ const chart = document.getElementById('chart');
573
+ chart.classList.remove('price-up', 'price-down');
574
+ chart.classList.add('price-up');
575
+
576
+ // Simulate price movement animation
577
+ setTimeout(() => {
578
+ chart.classList.remove('price-up');
579
+ }, 1000);
580
+ });
581
+ });
582
+
583
+ // Timeframe selection
584
+ const timeframes = document.querySelectorAll('.timeframe');
585
+ timeframes.forEach(timeframe => {
586
+ timeframe.addEventListener('click', function() {
587
+ timeframes.forEach(tf => tf.classList.remove('active'));
588
+ this.classList.add('active');
589
+ });
590
+ });
591
+
592
+ // Option type selection
593
+ const optionTypes = document.querySelectorAll('.option-type');
594
+ const tradeButton = document.getElementById('trade-button');
595
+
596
+ optionTypes.forEach(type => {
597
+ type.addEventListener('click', function() {
598
+ optionTypes.forEach(t => t.classList.remove('active'));
599
+ this.classList.add('active');
600
+
601
+ const optionType = this.getAttribute('data-type');
602
+ if (optionType === 'up') {
603
+ tradeButton.classList.remove('down');
604
+ tradeButton.classList.add('up');
605
+ tradeButton.innerHTML = '<i class="fas fa-arrow-up"></i> BUY UP';
606
+ } else {
607
+ tradeButton.classList.remove('up');
608
+ tradeButton.classList.add('down');
609
+ tradeButton.innerHTML = '<i class="fas fa-arrow-down"></i> BUY DOWN';
610
+ }
611
+ });
612
+ });
613
+
614
+ // Duration selection
615
+ const durationOptions = document.querySelectorAll('.duration-option');
616
+ durationOptions.forEach(option => {
617
+ option.addEventListener('click', function() {
618
+ durationOptions.forEach(opt => opt.classList.remove('active'));
619
+ this.classList.add('active');
620
+ });
621
+ });
622
+
623
+ // Trade button functionality
624
+ tradeButton.addEventListener('click', function() {
625
+ const amount = document.getElementById('amount').value;
626
+ const activeCoin = document.querySelector('.coin-option.active').textContent;
627
+ const optionType = document.querySelector('.option-type.active').getAttribute('data-type');
628
+
629
+ if (!amount || amount < 10) {
630
+ alert('Please enter a valid amount (minimum $10)');
631
+ return;
632
+ }
633
+
634
+ // Simulate trade execution
635
+ const historyList = document.getElementById('history-list');
636
+ const newTrade = document.createElement('div');
637
+ newTrade.className = `history-item ${optionType === 'up' ? '' : 'down'}`;
638
+
639
+ // Randomize win/loss for demo purposes
640
+ const isWin = Math.random() > 0.4;
641
+ const payout = optionType === 'up' ? 'up' : 'down';
642
+
643
+ newTrade.innerHTML = `
644
+ <div class="history-coin">${activeCoin}</div>
645
+ <div class="history-direction ${payout}"><i class="fas fa-arrow-${payout}"></i> ${payout.toUpperCase()}</div>
646
+ <div class="history-amount">$${amount}</div>
647
+ <div class="history-result ${isWin ? 'win' : 'loss'}">${isWin ? `+$${amount * 0.85}` : `-$${amount}`}</div>
648
+ `;
649
+
650
+ historyList.insertBefore(newTrade, historyList.firstChild);
651
+
652
+ // Show confirmation
653
+ alert(`Trade placed successfully!\n${activeCoin} - ${optionType.toUpperCase()} - $${amount}`);
654
+ });
655
+
656
+ // Simulate price changes
657
+ setInterval(() => {
658
+ const chart = document.getElementById('chart');
659
+ const isUp = Math.random() > 0.5;
660
+
661
+ chart.classList.remove('price-up', 'price-down');
662
+ if (isUp) {
663
+ chart.classList.add('price-up');
664
+ } else {
665
+ chart.classList.add('price-down');
666
+ }
667
+
668
+ setTimeout(() => {
669
+ chart.classList.remove('price-up', 'price-down');
670
+ }, 1000);
671
+ }, 5000);
672
+ });
673
+ </script>
674
+ </body>
675
+ </html>