Spaces:
Running
Running
add link-to lynk.id
Browse files- index.html +33 -6
index.html
CHANGED
|
@@ -57,10 +57,34 @@
|
|
| 57 |
border-bottom: 1px solid #2b3139;
|
| 58 |
}
|
| 59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
.header-title {
|
| 61 |
font-size: 14px;
|
| 62 |
color: var(--text-muted);
|
| 63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
}
|
| 65 |
|
| 66 |
.balance-row {
|
|
@@ -184,7 +208,7 @@
|
|
| 184 |
border-color: var(--accent);
|
| 185 |
}
|
| 186 |
|
| 187 |
-
/* ====== Grafik utama
|
| 188 |
.chart-container {
|
| 189 |
flex: 1.8 1 0;
|
| 190 |
position: relative;
|
|
@@ -194,7 +218,7 @@
|
|
| 194 |
overflow: hidden;
|
| 195 |
}
|
| 196 |
|
| 197 |
-
/* ====== Grafik bawah
|
| 198 |
.subchart-container {
|
| 199 |
flex: 0.9 1 0;
|
| 200 |
position: relative;
|
|
@@ -286,7 +310,10 @@
|
|
| 286 |
|
| 287 |
<div class="phone-container">
|
| 288 |
<div class="header">
|
| 289 |
-
<div class="header-title">
|
|
|
|
|
|
|
|
|
|
| 290 |
<div class="balance-row">
|
| 291 |
<span class="balance-value" id="equity-val">1.000.000</span>
|
| 292 |
<span class="pnl-badge" id="pnl-pct" style="background: rgba(255,255,255,0.1);">+0.00%</span>
|
|
@@ -298,7 +325,7 @@
|
|
| 298 |
<div class="stat-val" id="cash-val">1.000.000</div>
|
| 299 |
</div>
|
| 300 |
<div class="stat-box">
|
| 301 |
-
<div class="stat-label">Nilai
|
| 302 |
<div class="stat-val" id="asset-val">0</div>
|
| 303 |
</div>
|
| 304 |
</div>
|
|
@@ -447,7 +474,7 @@
|
|
| 447 |
const TOTAL_BARS = 250; // jumlah candle yang disimulasikan
|
| 448 |
const END_INDEX = WARMUP_BARS + TOTAL_BARS; // 280
|
| 449 |
const VISIBLE_BARS = 30; // candle yang tampil di layar
|
| 450 |
-
const INTERVAL_TIME =
|
| 451 |
|
| 452 |
// === FEE: variabel agar bisa diubah dari UI ===
|
| 453 |
let feeBeli = 0.003; // 0.3%
|
|
|
|
| 57 |
border-bottom: 1px solid #2b3139;
|
| 58 |
}
|
| 59 |
|
| 60 |
+
/* ====== Baris judul: teks kiri + link kanan ====== */
|
| 61 |
+
.header-title-row {
|
| 62 |
+
display: flex;
|
| 63 |
+
justify-content: space-between;
|
| 64 |
+
align-items: center;
|
| 65 |
+
margin-bottom: 4px;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
.header-title {
|
| 69 |
font-size: 14px;
|
| 70 |
color: var(--text-muted);
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.mode-link {
|
| 74 |
+
font-size: 12px;
|
| 75 |
+
font-weight: 700;
|
| 76 |
+
color: var(--accent);
|
| 77 |
+
text-decoration: none;
|
| 78 |
+
padding: 2px 8px;
|
| 79 |
+
border: 1px solid var(--accent);
|
| 80 |
+
border-radius: 4px;
|
| 81 |
+
transition: background-color 0.2s, color 0.2s;
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
.mode-link:hover,
|
| 85 |
+
.mode-link:active {
|
| 86 |
+
background-color: var(--accent);
|
| 87 |
+
color: #000;
|
| 88 |
}
|
| 89 |
|
| 90 |
.balance-row {
|
|
|
|
| 208 |
border-color: var(--accent);
|
| 209 |
}
|
| 210 |
|
| 211 |
+
/* ====== Grafik utama ====== */
|
| 212 |
.chart-container {
|
| 213 |
flex: 1.8 1 0;
|
| 214 |
position: relative;
|
|
|
|
| 218 |
overflow: hidden;
|
| 219 |
}
|
| 220 |
|
| 221 |
+
/* ====== Grafik bawah ====== */
|
| 222 |
.subchart-container {
|
| 223 |
flex: 0.9 1 0;
|
| 224 |
position: relative;
|
|
|
|
| 310 |
|
| 311 |
<div class="phone-container">
|
| 312 |
<div class="header">
|
| 313 |
+
<div class="header-title-row">
|
| 314 |
+
<span class="header-title">Total Kekayaan (Equity)</span>
|
| 315 |
+
<a class="mode-link" href="https://lynk.id/readthefuture" target="_blank" rel="noopener noreferrer">MODE: PEMULA</a>
|
| 316 |
+
</div>
|
| 317 |
<div class="balance-row">
|
| 318 |
<span class="balance-value" id="equity-val">1.000.000</span>
|
| 319 |
<span class="pnl-badge" id="pnl-pct" style="background: rgba(255,255,255,0.1);">+0.00%</span>
|
|
|
|
| 325 |
<div class="stat-val" id="cash-val">1.000.000</div>
|
| 326 |
</div>
|
| 327 |
<div class="stat-box">
|
| 328 |
+
<div class="stat-label">Nilai Saham/Kripto</div>
|
| 329 |
<div class="stat-val" id="asset-val">0</div>
|
| 330 |
</div>
|
| 331 |
</div>
|
|
|
|
| 474 |
const TOTAL_BARS = 250; // jumlah candle yang disimulasikan
|
| 475 |
const END_INDEX = WARMUP_BARS + TOTAL_BARS; // 280
|
| 476 |
const VISIBLE_BARS = 30; // candle yang tampil di layar
|
| 477 |
+
const INTERVAL_TIME = 500; // ms per candle
|
| 478 |
|
| 479 |
// === FEE: variabel agar bisa diubah dari UI ===
|
| 480 |
let feeBeli = 0.003; // 0.3%
|