Spaces:
Running
Running
Add 1 files
Browse files- index.html +329 -1333
index.html
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
<html lang="fr">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0
|
| 6 |
-
<title>Poker GTO Trainer</title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
<style>
|
|
@@ -22,1433 +22,429 @@
|
|
| 22 |
margin: 0;
|
| 23 |
padding: 0;
|
| 24 |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
| 25 |
-
-webkit-tap-highlight-color: transparent;
|
| 26 |
-
overscroll-behavior: none;
|
| 27 |
-
touch-action: manipulation;
|
| 28 |
-
}
|
| 29 |
-
|
| 30 |
-
.app-container {
|
| 31 |
-
position: fixed;
|
| 32 |
-
top: 0;
|
| 33 |
-
left: 0;
|
| 34 |
-
right: 0;
|
| 35 |
-
bottom: 0;
|
| 36 |
-
overflow: hidden;
|
| 37 |
background-color: var(--darker);
|
| 38 |
-
display: flex;
|
| 39 |
-
flex-direction: column;
|
| 40 |
-
max-width: 100%;
|
| 41 |
-
margin: 0 auto;
|
| 42 |
-
}
|
| 43 |
-
|
| 44 |
-
.status-bar {
|
| 45 |
-
height: 24px;
|
| 46 |
-
background-color: var(--dark);
|
| 47 |
-
display: flex;
|
| 48 |
-
justify-content: space-between;
|
| 49 |
-
align-items: center;
|
| 50 |
-
padding: 0 12px;
|
| 51 |
-
font-size: 12px;
|
| 52 |
-
color: var(--light);
|
| 53 |
-
}
|
| 54 |
-
|
| 55 |
-
.nav-bar {
|
| 56 |
-
height: 56px;
|
| 57 |
-
background-color: var(--dark);
|
| 58 |
-
display: flex;
|
| 59 |
-
justify-content: space-between;
|
| 60 |
-
align-items: center;
|
| 61 |
-
padding: 0 16px;
|
| 62 |
-
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
|
| 63 |
-
}
|
| 64 |
-
|
| 65 |
-
.nav-title {
|
| 66 |
-
font-weight: 600;
|
| 67 |
-
font-size: 18px;
|
| 68 |
-
color: var(--light);
|
| 69 |
-
}
|
| 70 |
-
|
| 71 |
-
.content {
|
| 72 |
-
flex: 1;
|
| 73 |
-
overflow-y: auto;
|
| 74 |
-
-webkit-overflow-scrolling: touch;
|
| 75 |
-
padding-bottom: 80px;
|
| 76 |
-
}
|
| 77 |
-
|
| 78 |
-
.tab-bar {
|
| 79 |
-
position: fixed;
|
| 80 |
-
bottom: 0;
|
| 81 |
-
left: 0;
|
| 82 |
-
right: 0;
|
| 83 |
-
height: 60px;
|
| 84 |
-
background-color: var(--dark);
|
| 85 |
-
display: flex;
|
| 86 |
-
justify-content: space-around;
|
| 87 |
-
align-items: center;
|
| 88 |
-
border-top: 1px solid rgba(255,255,255,0.1);
|
| 89 |
-
}
|
| 90 |
-
|
| 91 |
-
.tab-item {
|
| 92 |
-
display: flex;
|
| 93 |
-
flex-direction: column;
|
| 94 |
-
align-items: center;
|
| 95 |
-
justify-content: center;
|
| 96 |
-
color: #64748b;
|
| 97 |
-
font-size: 10px;
|
| 98 |
-
padding: 8px;
|
| 99 |
-
cursor: pointer;
|
| 100 |
-
}
|
| 101 |
-
|
| 102 |
-
.tab-item.active {
|
| 103 |
-
color: var(--primary);
|
| 104 |
-
}
|
| 105 |
-
|
| 106 |
-
.tab-icon {
|
| 107 |
-
font-size: 22px;
|
| 108 |
-
margin-bottom: 4px;
|
| 109 |
-
}
|
| 110 |
-
|
| 111 |
-
.card {
|
| 112 |
-
background-color: #334155;
|
| 113 |
-
border-radius: 12px;
|
| 114 |
-
padding: 16px;
|
| 115 |
-
margin: 16px;
|
| 116 |
-
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
| 117 |
-
}
|
| 118 |
-
|
| 119 |
-
.btn {
|
| 120 |
-
padding: 12px 24px;
|
| 121 |
-
border-radius: 8px;
|
| 122 |
-
font-weight: 600;
|
| 123 |
-
text-align: center;
|
| 124 |
-
display: block;
|
| 125 |
-
width: 100%;
|
| 126 |
-
border: none;
|
| 127 |
-
font-size: 16px;
|
| 128 |
-
transition: all 0.2s;
|
| 129 |
-
}
|
| 130 |
-
|
| 131 |
-
.btn-primary {
|
| 132 |
-
background-color: var(--primary);
|
| 133 |
-
color: white;
|
| 134 |
-
}
|
| 135 |
-
|
| 136 |
-
.btn-secondary {
|
| 137 |
-
background-color: #334155;
|
| 138 |
-
color: white;
|
| 139 |
-
}
|
| 140 |
-
|
| 141 |
-
.btn-success {
|
| 142 |
-
background-color: var(--success);
|
| 143 |
color: white;
|
| 144 |
}
|
| 145 |
|
| 146 |
-
.
|
| 147 |
-
background-color: var(--danger);
|
| 148 |
-
color: white;
|
| 149 |
-
}
|
| 150 |
-
|
| 151 |
-
.btn-warning {
|
| 152 |
-
background-color: var(--warning);
|
| 153 |
-
color: white;
|
| 154 |
-
}
|
| 155 |
-
|
| 156 |
-
.range-grid {
|
| 157 |
-
display: grid;
|
| 158 |
-
grid-template-columns: repeat(13, 1fr);
|
| 159 |
-
gap: 2px;
|
| 160 |
-
margin-top: 16px;
|
| 161 |
-
}
|
| 162 |
-
|
| 163 |
-
.range-cell {
|
| 164 |
-
aspect-ratio: 1;
|
| 165 |
-
display: flex;
|
| 166 |
-
justify-content: center;
|
| 167 |
-
align-items: center;
|
| 168 |
-
font-size: 10px;
|
| 169 |
-
font-weight: bold;
|
| 170 |
-
background-color: #475569;
|
| 171 |
-
color: white;
|
| 172 |
-
border-radius: 2px;
|
| 173 |
-
cursor: pointer;
|
| 174 |
-
transition: all 0.2s;
|
| 175 |
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
overflow: hidden;
|
|
|
|
|
|
|
| 177 |
}
|
| 178 |
|
| 179 |
-
.
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
.range-cell.pair {
|
| 184 |
-
background-color: #4338ca;
|
| 185 |
-
}
|
| 186 |
-
|
| 187 |
-
.range-cell.suited {
|
| 188 |
-
background-color: #075985;
|
| 189 |
-
}
|
| 190 |
-
|
| 191 |
-
.range-cell.offsuit {
|
| 192 |
-
background-color: #9d174d;
|
| 193 |
-
}
|
| 194 |
-
|
| 195 |
-
.range-header {
|
| 196 |
-
display: flex;
|
| 197 |
-
justify-content: center;
|
| 198 |
-
align-items: center;
|
| 199 |
-
font-size: 10px;
|
| 200 |
-
font-weight: bold;
|
| 201 |
-
color: white;
|
| 202 |
-
background-color: var(--dark);
|
| 203 |
-
border-radius: 2px;
|
| 204 |
-
padding: 4px;
|
| 205 |
}
|
| 206 |
|
| 207 |
-
.
|
| 208 |
position: absolute;
|
| 209 |
-
|
| 210 |
left: 0;
|
| 211 |
right: 0;
|
| 212 |
-
height: 3px;
|
| 213 |
-
background-color: rgba(255,255,255,0.3);
|
| 214 |
-
}
|
| 215 |
-
|
| 216 |
-
.range-percentage-fill {
|
| 217 |
-
height: 100%;
|
| 218 |
-
background-color: var(--warning);
|
| 219 |
-
}
|
| 220 |
-
|
| 221 |
-
.filter-chip {
|
| 222 |
-
display: inline-flex;
|
| 223 |
-
align-items: center;
|
| 224 |
-
padding: 6px 12px;
|
| 225 |
-
border-radius: 20px;
|
| 226 |
-
background-color: #475569;
|
| 227 |
-
color: white;
|
| 228 |
-
font-size: 12px;
|
| 229 |
-
margin-right: 8px;
|
| 230 |
-
margin-bottom: 8px;
|
| 231 |
-
cursor: pointer;
|
| 232 |
-
}
|
| 233 |
-
|
| 234 |
-
.filter-chip.active {
|
| 235 |
-
background-color: var(--primary);
|
| 236 |
-
}
|
| 237 |
-
|
| 238 |
-
.action-sheet {
|
| 239 |
-
position: fixed;
|
| 240 |
bottom: 0;
|
| 241 |
-
left: 0;
|
| 242 |
-
right: 0;
|
| 243 |
-
background-color: var(--dark);
|
| 244 |
-
border-radius: 16px 16px 0 0;
|
| 245 |
-
padding: 16px;
|
| 246 |
-
transform: translateY(100%);
|
| 247 |
-
transition: transform 0.3s ease-out;
|
| 248 |
-
z-index: 100;
|
| 249 |
-
box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
|
| 250 |
-
}
|
| 251 |
-
|
| 252 |
-
.action-sheet.show {
|
| 253 |
-
transform: translateY(0);
|
| 254 |
-
}
|
| 255 |
-
|
| 256 |
-
.action-sheet-title {
|
| 257 |
-
text-align: center;
|
| 258 |
-
font-weight: 600;
|
| 259 |
-
margin-bottom: 16px;
|
| 260 |
-
color: var(--light);
|
| 261 |
-
}
|
| 262 |
-
|
| 263 |
-
.action-sheet-button {
|
| 264 |
-
padding: 16px;
|
| 265 |
-
text-align: center;
|
| 266 |
-
font-weight: 600;
|
| 267 |
-
border-radius: 8px;
|
| 268 |
-
margin-bottom: 8px;
|
| 269 |
-
background-color: #334155;
|
| 270 |
-
color: white;
|
| 271 |
-
}
|
| 272 |
-
|
| 273 |
-
.action-sheet-cancel {
|
| 274 |
-
background-color: var(--danger);
|
| 275 |
-
}
|
| 276 |
-
|
| 277 |
-
.swipe-indicator {
|
| 278 |
-
width: 40px;
|
| 279 |
-
height: 4px;
|
| 280 |
-
background-color: rgba(255,255,255,0.3);
|
| 281 |
-
border-radius: 2px;
|
| 282 |
-
margin: 8px auto;
|
| 283 |
-
}
|
| 284 |
-
|
| 285 |
-
.blink {
|
| 286 |
-
animation: blink 1.5s infinite;
|
| 287 |
-
}
|
| 288 |
-
|
| 289 |
-
@keyframes blink {
|
| 290 |
-
0% { opacity: 1; }
|
| 291 |
-
50% { opacity: 0.7; }
|
| 292 |
-
100% { opacity: 1; }
|
| 293 |
-
}
|
| 294 |
-
|
| 295 |
-
.hand-details {
|
| 296 |
-
background-color: #475569;
|
| 297 |
-
border-radius: 8px;
|
| 298 |
-
padding: 12px;
|
| 299 |
-
margin-top: 12px;
|
| 300 |
-
}
|
| 301 |
-
|
| 302 |
-
.hand-details-row {
|
| 303 |
-
display: flex;
|
| 304 |
-
justify-content: space-between;
|
| 305 |
-
margin-bottom: 8px;
|
| 306 |
-
}
|
| 307 |
-
|
| 308 |
-
.hand-details-label {
|
| 309 |
-
color: #94a3b8;
|
| 310 |
-
font-size: 12px;
|
| 311 |
-
}
|
| 312 |
-
|
| 313 |
-
.hand-details-value {
|
| 314 |
-
color: white;
|
| 315 |
-
font-weight: 600;
|
| 316 |
-
font-size: 12px;
|
| 317 |
-
}
|
| 318 |
-
|
| 319 |
-
.slider-container {
|
| 320 |
-
width: 100%;
|
| 321 |
-
margin-top: 12px;
|
| 322 |
-
}
|
| 323 |
-
|
| 324 |
-
.slider {
|
| 325 |
-
-webkit-appearance: none;
|
| 326 |
-
width: 100%;
|
| 327 |
-
height: 6px;
|
| 328 |
-
border-radius: 3px;
|
| 329 |
-
background: #64748b;
|
| 330 |
-
outline: none;
|
| 331 |
-
}
|
| 332 |
-
|
| 333 |
-
.slider::-webkit-slider-thumb {
|
| 334 |
-
-webkit-appearance: none;
|
| 335 |
-
appearance: none;
|
| 336 |
-
width: 18px;
|
| 337 |
-
height: 18px;
|
| 338 |
-
border-radius: 50%;
|
| 339 |
-
background: var(--primary);
|
| 340 |
-
cursor: pointer;
|
| 341 |
-
}
|
| 342 |
-
|
| 343 |
-
/* Page styles */
|
| 344 |
-
.page {
|
| 345 |
-
display: none;
|
| 346 |
-
}
|
| 347 |
-
|
| 348 |
-
.page.active {
|
| 349 |
-
display: block;
|
| 350 |
-
}
|
| 351 |
-
|
| 352 |
-
/* Home page */
|
| 353 |
-
.home-stats {
|
| 354 |
-
display: grid;
|
| 355 |
-
grid-template-columns: repeat(2, 1fr);
|
| 356 |
-
gap: 16px;
|
| 357 |
-
margin: 16px;
|
| 358 |
-
}
|
| 359 |
-
|
| 360 |
-
.stat-card {
|
| 361 |
-
background-color: #334155;
|
| 362 |
-
border-radius: 12px;
|
| 363 |
-
padding: 16px;
|
| 364 |
-
text-align: center;
|
| 365 |
-
}
|
| 366 |
-
|
| 367 |
-
.stat-value {
|
| 368 |
-
font-size: 24px;
|
| 369 |
-
font-weight: 700;
|
| 370 |
-
color: white;
|
| 371 |
-
margin-bottom: 4px;
|
| 372 |
-
}
|
| 373 |
-
|
| 374 |
-
.stat-label {
|
| 375 |
-
font-size: 12px;
|
| 376 |
-
color: #94a3b8;
|
| 377 |
-
}
|
| 378 |
-
|
| 379 |
-
/* Scan page */
|
| 380 |
-
.scan-container {
|
| 381 |
display: flex;
|
| 382 |
flex-direction: column;
|
| 383 |
-
align-items: center;
|
| 384 |
justify-content: center;
|
| 385 |
-
|
| 386 |
-
|
| 387 |
}
|
| 388 |
|
| 389 |
-
.scan-
|
| 390 |
-
width:
|
| 391 |
height: 120px;
|
| 392 |
-
|
| 393 |
-
border-radius:
|
|
|
|
| 394 |
display: flex;
|
| 395 |
-
align-items: center;
|
| 396 |
justify-content: center;
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
/* Camera preview */
|
| 401 |
-
.camera-preview {
|
| 402 |
-
width: 100%;
|
| 403 |
-
max-width: 400px;
|
| 404 |
-
height: 300px;
|
| 405 |
-
background-color: #000;
|
| 406 |
-
border-radius: 12px;
|
| 407 |
-
overflow: hidden;
|
| 408 |
-
margin-bottom: 20px;
|
| 409 |
-
position: relative;
|
| 410 |
-
display: none;
|
| 411 |
-
}
|
| 412 |
-
|
| 413 |
-
.camera-preview video {
|
| 414 |
-
width: 100%;
|
| 415 |
-
height: 100%;
|
| 416 |
-
object-fit: cover;
|
| 417 |
-
}
|
| 418 |
-
|
| 419 |
-
.camera-preview canvas {
|
| 420 |
-
display: none;
|
| 421 |
}
|
| 422 |
|
| 423 |
.capture-btn {
|
| 424 |
position: absolute;
|
| 425 |
-
bottom:
|
| 426 |
left: 50%;
|
| 427 |
transform: translateX(-50%);
|
| 428 |
-
width:
|
| 429 |
-
height:
|
| 430 |
background-color: white;
|
| 431 |
border-radius: 50%;
|
| 432 |
border: 4px solid var(--primary);
|
| 433 |
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
| 434 |
}
|
| 435 |
|
| 436 |
.capture-btn::after {
|
| 437 |
content: '';
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
left: 50%;
|
| 441 |
-
transform: translate(-50%, -50%);
|
| 442 |
-
width: 40px;
|
| 443 |
-
height: 40px;
|
| 444 |
background-color: var(--primary);
|
| 445 |
border-radius: 50%;
|
| 446 |
}
|
| 447 |
|
| 448 |
-
.
|
| 449 |
-
width: 100%;
|
| 450 |
-
max-width: 400px;
|
| 451 |
-
height: 300px;
|
| 452 |
-
background-color: #000;
|
| 453 |
-
border-radius: 12px;
|
| 454 |
-
overflow: hidden;
|
| 455 |
-
margin-bottom: 20px;
|
| 456 |
-
display: none;
|
| 457 |
-
}
|
| 458 |
-
|
| 459 |
-
.scanned-image img {
|
| 460 |
-
width: 100%;
|
| 461 |
-
height: 100%;
|
| 462 |
-
object-fit: contain;
|
| 463 |
-
}
|
| 464 |
-
|
| 465 |
-
.analysis-result {
|
| 466 |
display: none;
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
background-color: #334155;
|
| 470 |
border-radius: 12px;
|
|
|
|
| 471 |
}
|
| 472 |
|
| 473 |
-
|
| 474 |
-
|
|
|
|
|
|
|
|
|
|
| 475 |
display: flex;
|
|
|
|
| 476 |
align-items: center;
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
|
|
|
| 481 |
}
|
| 482 |
|
| 483 |
-
.
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
align-items: center;
|
| 490 |
-
justify-content: center;
|
| 491 |
-
margin-right: 16px;
|
| 492 |
}
|
| 493 |
|
| 494 |
-
.
|
| 495 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 496 |
}
|
| 497 |
|
| 498 |
-
.
|
| 499 |
-
|
| 500 |
-
color: white;
|
| 501 |
-
margin-bottom: 4px;
|
| 502 |
}
|
| 503 |
|
| 504 |
-
.
|
| 505 |
-
|
| 506 |
-
color: #94a3b8;
|
| 507 |
}
|
| 508 |
|
| 509 |
-
|
| 510 |
-
.profile-header {
|
| 511 |
display: flex;
|
| 512 |
-
|
| 513 |
-
|
| 514 |
-
background-color: #334155;
|
| 515 |
-
margin-bottom: 16px;
|
| 516 |
}
|
| 517 |
|
| 518 |
-
.
|
| 519 |
-
|
| 520 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 521 |
background-color: var(--primary);
|
| 522 |
-
border-radius: 50%;
|
| 523 |
-
display: flex;
|
| 524 |
-
align-items: center;
|
| 525 |
-
justify-content: center;
|
| 526 |
-
margin-right: 16px;
|
| 527 |
-
font-size: 32px;
|
| 528 |
color: white;
|
| 529 |
}
|
| 530 |
|
| 531 |
-
.
|
| 532 |
-
|
|
|
|
|
|
|
| 533 |
}
|
| 534 |
|
| 535 |
-
.
|
| 536 |
-
|
| 537 |
color: white;
|
| 538 |
-
font-size: 18px;
|
| 539 |
-
margin-bottom: 4px;
|
| 540 |
}
|
| 541 |
|
| 542 |
-
.
|
| 543 |
-
|
| 544 |
-
color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 545 |
}
|
| 546 |
|
| 547 |
-
.
|
| 548 |
display: grid;
|
| 549 |
-
grid-template-columns: repeat(
|
| 550 |
-
gap:
|
| 551 |
-
margin:
|
| 552 |
}
|
| 553 |
|
| 554 |
-
.
|
| 555 |
-
|
|
|
|
| 556 |
border-radius: 8px;
|
| 557 |
-
padding: 12px;
|
| 558 |
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 559 |
}
|
| 560 |
</style>
|
| 561 |
</head>
|
| 562 |
<body>
|
| 563 |
-
<div class="
|
| 564 |
-
<!--
|
| 565 |
-
<div class="
|
| 566 |
-
<
|
| 567 |
-
<div>
|
| 568 |
-
<i class="fas fa-signal"></i>
|
| 569 |
-
<i class="fas fa-wifi ml-2"></i>
|
| 570 |
-
<i class="fas fa-battery-three-quarters ml-2"></i>
|
| 571 |
-
</div>
|
| 572 |
-
</div>
|
| 573 |
-
|
| 574 |
-
<!-- Navigation Bar -->
|
| 575 |
-
<div class="nav-bar">
|
| 576 |
-
<button id="backBtn" class="text-white">
|
| 577 |
<i class="fas fa-arrow-left"></i>
|
| 578 |
</button>
|
| 579 |
-
<
|
| 580 |
-
<
|
| 581 |
-
<i class="fas fa-sliders-h"></i>
|
| 582 |
-
</button>
|
| 583 |
</div>
|
| 584 |
|
| 585 |
-
<!-- Main Content -
|
| 586 |
-
<div class="
|
| 587 |
-
<!--
|
| 588 |
-
<div
|
| 589 |
-
<
|
| 590 |
-
|
| 591 |
-
<
|
| 592 |
-
<button class="btn btn-primary mb-4">
|
| 593 |
-
<i class="fas fa-play mr-2"></i>Démarrer l'entraînement
|
| 594 |
-
</button>
|
| 595 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 596 |
|
| 597 |
-
<div class="
|
| 598 |
-
<div class="
|
| 599 |
-
<
|
| 600 |
-
<div class="stat-label">Précision</div>
|
| 601 |
-
</div>
|
| 602 |
-
<div class="stat-card">
|
| 603 |
-
<div class="stat-value">24</div>
|
| 604 |
-
<div class="stat-label">Sessions</div>
|
| 605 |
</div>
|
| 606 |
-
<div class="
|
| 607 |
-
<
|
| 608 |
-
<div class="stat-label">Temps passé</div>
|
| 609 |
-
</div>
|
| 610 |
-
<div class="stat-card">
|
| 611 |
-
<div class="stat-value">A+</div>
|
| 612 |
-
<div class="stat-label">Niveau</div>
|
| 613 |
</div>
|
| 614 |
</div>
|
| 615 |
|
| 616 |
-
<div class="
|
| 617 |
-
<h3 class="
|
| 618 |
-
<
|
| 619 |
-
|
| 620 |
-
<
|
| 621 |
-
<span>Mer</span>
|
| 622 |
-
<span>Jeu</span>
|
| 623 |
-
<span>Ven</span>
|
| 624 |
-
<span>Sam</span>
|
| 625 |
-
<span>Dim</span>
|
| 626 |
</div>
|
| 627 |
-
<
|
| 628 |
-
|
| 629 |
-
|
| 630 |
-
|
| 631 |
-
|
| 632 |
-
|
| 633 |
-
<div class="
|
| 634 |
-
<div class="
|
|
|
|
|
|
|
| 635 |
</div>
|
| 636 |
</div>
|
| 637 |
|
| 638 |
-
<div class="
|
| 639 |
-
<
|
| 640 |
-
|
| 641 |
-
|
| 642 |
-
|
| 643 |
-
|
| 644 |
-
|
| 645 |
-
|
| 646 |
-
|
| 647 |
-
|
| 648 |
-
|
| 649 |
-
|
| 650 |
-
|
| 651 |
-
|
| 652 |
-
|
| 653 |
-
|
| 654 |
-
|
| 655 |
-
|
| 656 |
-
<div class="text-white font-medium">Call vs SB</div>
|
| 657 |
-
<div class="text-gray-400 text-xs">18 min - 88%</div>
|
| 658 |
-
</div>
|
| 659 |
-
<div class="text-green-400 text-sm font-bold">+3.7%</div>
|
| 660 |
-
</div>
|
| 661 |
-
</div>
|
| 662 |
-
</div>
|
| 663 |
-
|
| 664 |
-
<!-- Ranges Page -->
|
| 665 |
-
<div id="rangesPage" class="page">
|
| 666 |
-
<!-- Position Filter -->
|
| 667 |
-
<div class="card">
|
| 668 |
-
<div class="text-gray-300 text-sm mb-3">Position</div>
|
| 669 |
-
<div class="flex flex-wrap">
|
| 670 |
-
<div class="filter-chip position-filter active" data-position="all">Toutes</div>
|
| 671 |
-
<div class="filter-chip position-filter" data-position="utg">UTG</div>
|
| 672 |
-
<div class="filter-chip position-filter" data-position="mp">MP</div>
|
| 673 |
-
<div class="filter-chip position-filter" data-position="co">CO</div>
|
| 674 |
-
<div class="filter-chip position-filter" data-position="btn">BTN</div>
|
| 675 |
-
<div class="filter-chip position-filter" data-position="sb">SB</div>
|
| 676 |
-
<div class="filter-chip position-filter" data-position="bb">BB</div>
|
| 677 |
-
</div>
|
| 678 |
-
</div>
|
| 679 |
-
|
| 680 |
-
<!-- Action Filter -->
|
| 681 |
-
<div class="card">
|
| 682 |
-
<div class="text-gray-300 text-sm mb-3">Action</div>
|
| 683 |
-
<div class="flex flex-wrap">
|
| 684 |
-
<div class="filter-chip action-filter active" data-action="open">Open Raise</div>
|
| 685 |
-
<div class="filter-chip action-filter" data-action="3bet">3-Bet</div>
|
| 686 |
-
<div class="filter-chip action-filter" data-action="4bet">4-Bet</div>
|
| 687 |
-
<div class="filter-chip action-filter" data-action="call">Call</div>
|
| 688 |
-
<div class="filter-chip action-filter" data-action="squeeze">Squeeze</div>
|
| 689 |
-
</div>
|
| 690 |
-
</div>
|
| 691 |
-
|
| 692 |
-
<!-- Stack Size Slider -->
|
| 693 |
-
<div class="card">
|
| 694 |
-
<div class="flex justify-between items-center mb-2">
|
| 695 |
-
<div class="text-gray-300 text-sm">Taille de stack</div>
|
| 696 |
-
<div class="text-white text-sm font-medium" id="stackSizeValue">20BB</div>
|
| 697 |
-
</div>
|
| 698 |
-
<div class="slider-container">
|
| 699 |
-
<input type="range" min="10" max="200" value="20" class="slider" id="stackSizeSlider">
|
| 700 |
-
</div>
|
| 701 |
-
<div class="flex justify-between text-xs text-gray-400 mt-1">
|
| 702 |
-
<span>10BB</span>
|
| 703 |
-
<span>100BB</span>
|
| 704 |
-
<span>200BB</span>
|
| 705 |
-
</div>
|
| 706 |
-
</div>
|
| 707 |
-
|
| 708 |
-
<!-- Range Grid -->
|
| 709 |
-
<div class="card">
|
| 710 |
-
<div class="flex justify-between items-center mb-3">
|
| 711 |
-
<div class="text-gray-300 text-sm">Range: <span id="rangePercentage" class="text-white font-medium">15.2%</span></div>
|
| 712 |
-
<button id="selectHandsBtn" class="text-blue-400 text-sm font-medium">Sélectionner mains</button>
|
| 713 |
-
</div>
|
| 714 |
-
|
| 715 |
-
<div class="range-grid" id="rangeGrid"></div>
|
| 716 |
-
|
| 717 |
-
<!-- Hand Details -->
|
| 718 |
-
<div class="hand-details" id="handDetails" style="display: none;">
|
| 719 |
-
<div class="hand-details-row">
|
| 720 |
-
<span class="hand-details-label">Main:</span>
|
| 721 |
-
<span class="hand-details-value" id="handName">A♠ K♥</span>
|
| 722 |
-
</div>
|
| 723 |
-
<div class="hand-details-row">
|
| 724 |
-
<span class="hand-details-label">Type:</span>
|
| 725 |
-
<span class="hand-details-value" id="handType">Suited</span>
|
| 726 |
-
</div>
|
| 727 |
-
<div class="hand-details-row">
|
| 728 |
-
<span class="hand-details-label">Fréquence:</span>
|
| 729 |
-
<span class="hand-details-value" id="handFrequency">72%</span>
|
| 730 |
-
</div>
|
| 731 |
-
<div class="hand-details-row">
|
| 732 |
-
<span class="hand-details-label">Équité:</span>
|
| 733 |
-
<span class="hand-details-value" id="handEquity">48.5%</span>
|
| 734 |
-
</div>
|
| 735 |
-
<div class="hand-details-row">
|
| 736 |
-
<span class="hand-details-label">EV:</span>
|
| 737 |
-
<span class="hand-details-value" id="handEv">+1.2BB</span>
|
| 738 |
-
</div>
|
| 739 |
-
</div>
|
| 740 |
-
</div>
|
| 741 |
-
|
| 742 |
-
<!-- Range Actions -->
|
| 743 |
-
<div class="grid grid-cols-2 gap-3 mx-4 mt-4 mb-16">
|
| 744 |
-
<button id="saveRangeBtn" class="btn btn-secondary">
|
| 745 |
-
<i class="fas fa-save mr-2"></i>Sauvegarder
|
| 746 |
-
</button>
|
| 747 |
-
<button id="practiceRangeBtn" class="btn btn-primary">
|
| 748 |
-
<i class="fas fa-dumbbell mr-2"></i>Pratiquer
|
| 749 |
-
</button>
|
| 750 |
-
</div>
|
| 751 |
-
</div>
|
| 752 |
-
|
| 753 |
-
<!-- Scan Page -->
|
| 754 |
-
<div id="scanPage" class="page">
|
| 755 |
-
<div class="scan-container">
|
| 756 |
-
<div class="scan-icon">
|
| 757 |
-
<i class="fas fa-camera text-white text-4xl"></i>
|
| 758 |
-
</div>
|
| 759 |
-
<h2 class="text-white text-xl font-bold mb-2">Scanner une main</h2>
|
| 760 |
-
<p class="text-gray-300 text-sm mb-6">Prenez une photo de vos cartes pour obtenir une analyse GTO instantanée</p>
|
| 761 |
-
|
| 762 |
-
<!-- Camera Preview -->
|
| 763 |
-
<div class="camera-preview" id="cameraPreview">
|
| 764 |
-
<video id="cameraVideo" autoplay playsinline></video>
|
| 765 |
-
<canvas id="cameraCanvas"></canvas>
|
| 766 |
-
<div class="capture-btn" id="captureBtn"></div>
|
| 767 |
-
</div>
|
| 768 |
-
|
| 769 |
-
<!-- Scanned Image -->
|
| 770 |
-
<div class="scanned-image" id="scannedImage">
|
| 771 |
-
<img id="scannedImagePreview" src="" alt="Scanned cards">
|
| 772 |
-
</div>
|
| 773 |
-
|
| 774 |
-
<!-- Analysis Result -->
|
| 775 |
-
<div class="analysis-result" id="analysisResult">
|
| 776 |
-
<h3 class="text-white font-bold mb-3">Résultat de l'analyse</h3>
|
| 777 |
-
<div class="flex items-center mb-4">
|
| 778 |
-
<div class="w-12 h-16 bg-blue-900 rounded-md flex items-center justify-center mr-3">
|
| 779 |
-
<span class="text-white font-bold" id="scannedCards">A♠ K♥</span>
|
| 780 |
-
</div>
|
| 781 |
-
<div>
|
| 782 |
-
<div class="text-white font-medium" id="scannedAction">UTG Open Raise</div>
|
| 783 |
-
<div class="text-gray-400 text-xs" id="scannedFrequency">92% de fréquence recommandée</div>
|
| 784 |
-
</div>
|
| 785 |
-
</div>
|
| 786 |
-
</div>
|
| 787 |
-
|
| 788 |
-
<button class="btn btn-primary mb-4" id="scanBtn">
|
| 789 |
-
<i class="fas fa-camera mr-2"></i>Scanner
|
| 790 |
-
</button>
|
| 791 |
-
<button class="btn btn-secondary mb-4" id="uploadBtn" style="display: none;">
|
| 792 |
-
<i class="fas fa-upload mr-2"></i>Analyser l'image
|
| 793 |
-
</button>
|
| 794 |
-
<button class="btn btn-danger mb-4" id="cancelScanBtn" style="display: none;">
|
| 795 |
-
<i class="fas fa-times mr-2"></i>Annuler
|
| 796 |
-
</button>
|
| 797 |
-
<p class="text-gray-400 text-xs">Ou sélectionnez une image depuis votre galerie</p>
|
| 798 |
-
</div>
|
| 799 |
-
|
| 800 |
-
<div class="card">
|
| 801 |
-
<h3 class="text-white font-bold mb-3">Dernières analyses</h3>
|
| 802 |
-
<div class="flex items-center mb-4">
|
| 803 |
-
<div class="w-12 h-16 bg-blue-900 rounded-md flex items-center justify-center mr-3">
|
| 804 |
-
<span class="text-white font-bold">A♠ K♥</span>
|
| 805 |
-
</div>
|
| 806 |
-
<div>
|
| 807 |
-
<div class="text-white font-medium">UTG Open Raise</div>
|
| 808 |
-
<div class="text-gray-400 text-xs">92% de fréquence recommandée</div>
|
| 809 |
-
</div>
|
| 810 |
-
</div>
|
| 811 |
-
<div class="flex items-center mb-4">
|
| 812 |
-
<div class="w-12 h-16 bg-blue-900 rounded-md flex items-center justify-center mr-3">
|
| 813 |
-
<span class="text-white font-bold">Q♦ Q♣</span>
|
| 814 |
-
</div>
|
| 815 |
-
<div>
|
| 816 |
-
<div class="text-white font-medium">3-Bet vs CO</div>
|
| 817 |
-
<div class="text-gray-400 text-xs">100% de fréquence recommandée</div>
|
| 818 |
-
</div>
|
| 819 |
-
</div>
|
| 820 |
-
<div class="flex items-center">
|
| 821 |
-
<div class="w-12 h-16 bg-blue-900 rounded-md flex items-center justify-center mr-3">
|
| 822 |
-
<span class="text-white font-bold">J♠ T♠</span>
|
| 823 |
-
</div>
|
| 824 |
-
<div>
|
| 825 |
-
<div class="text-white font-medium">Call vs BTN</div>
|
| 826 |
-
<div class="text-gray-400 text-xs">65% de fréquence recommandée</div>
|
| 827 |
-
</div>
|
| 828 |
-
</div>
|
| 829 |
-
</div>
|
| 830 |
-
</div>
|
| 831 |
-
|
| 832 |
-
<!-- Learn Page -->
|
| 833 |
-
<div id="learnPage" class="page">
|
| 834 |
-
<div class="card">
|
| 835 |
-
<h2 class="text-white text-lg font-bold mb-4">Apprendre le poker GTO</h2>
|
| 836 |
-
<p class="text-gray-300 text-sm mb-4">Parcourez nos leçons pour maîtriser la théorie des jeux optimale.</p>
|
| 837 |
-
<div class="flex overflow-x-auto pb-2 -mx-2">
|
| 838 |
-
<div class="px-2">
|
| 839 |
-
<div class="filter-chip active">Tous</div>
|
| 840 |
-
</div>
|
| 841 |
-
<div class="px-2">
|
| 842 |
-
<div class="filter-chip">Préflop</div>
|
| 843 |
-
</div>
|
| 844 |
-
<div class="px-2">
|
| 845 |
-
<div class="filter-chip">Postflop</div>
|
| 846 |
-
</div>
|
| 847 |
-
<div class="px-2">
|
| 848 |
-
<div class="filter-chip">Ranges</div>
|
| 849 |
-
</div>
|
| 850 |
-
<div class="px-2">
|
| 851 |
-
<div class="filter-chip">Blind Wars</div>
|
| 852 |
-
</div>
|
| 853 |
-
<div class="px-2">
|
| 854 |
-
<div class="filter-chip">ICM</div>
|
| 855 |
-
</div>
|
| 856 |
-
</div>
|
| 857 |
-
</div>
|
| 858 |
-
|
| 859 |
-
<div class="lesson-card">
|
| 860 |
-
<div class="lesson-icon">
|
| 861 |
-
<i class="fas fa-play text-white"></i>
|
| 862 |
-
</div>
|
| 863 |
-
<div class="lesson-info">
|
| 864 |
-
<div class="lesson-title">Open Raise UTG</div>
|
| 865 |
-
<div class="lesson-desc">Maîtrisez les ranges optimales en première position</div>
|
| 866 |
-
</div>
|
| 867 |
-
<div class="text-blue-400">
|
| 868 |
-
<i class="fas fa-lock-open"></i>
|
| 869 |
-
</div>
|
| 870 |
-
</div>
|
| 871 |
-
|
| 872 |
-
<div class="lesson-card">
|
| 873 |
-
<div class="lesson-icon">
|
| 874 |
-
<i class="fas fa-play text-white"></i>
|
| 875 |
-
</div>
|
| 876 |
-
<div class="lesson-info">
|
| 877 |
-
<div class="lesson-title">3-Bet vs Late Position</div>
|
| 878 |
-
<div class="lesson-desc">Apprenez à défendre votre range contre les opens tardifs</div>
|
| 879 |
-
</div>
|
| 880 |
-
<div class="text-blue-400">
|
| 881 |
-
<i class="fas fa-lock-open"></i>
|
| 882 |
-
</div>
|
| 883 |
-
</div>
|
| 884 |
-
|
| 885 |
-
<div class="lesson-card">
|
| 886 |
-
<div class="lesson-icon">
|
| 887 |
-
<i class="fas fa-crown text-white"></i>
|
| 888 |
-
</div>
|
| 889 |
-
<div class="lesson-info">
|
| 890 |
-
<div class="lesson-title">4-Bet Bluff au BTN</div>
|
| 891 |
-
<div class="lesson-desc">Techniques avancées de bluff en 4-bet</div>
|
| 892 |
-
</div>
|
| 893 |
-
<div class="text-gray-400">
|
| 894 |
-
<i class="fas fa-lock"></i>
|
| 895 |
-
</div>
|
| 896 |
-
</div>
|
| 897 |
-
|
| 898 |
-
<div class="lesson-card">
|
| 899 |
-
<div class="lesson-icon">
|
| 900 |
-
<i class="fas fa-play text-white"></i>
|
| 901 |
-
</div>
|
| 902 |
-
<div class="lesson-info">
|
| 903 |
-
<div class="lesson-title">Call vs SB Squeeze</div>
|
| 904 |
-
<div class="lesson-desc">Quand caller face à un squeeze de la SB</div>
|
| 905 |
-
</div>
|
| 906 |
-
<div class="text-blue-400">
|
| 907 |
-
<i class="fas fa-lock-open"></i>
|
| 908 |
-
</div>
|
| 909 |
-
</div>
|
| 910 |
-
|
| 911 |
-
<div class="lesson-card">
|
| 912 |
-
<div class="lesson-icon">
|
| 913 |
-
<i class="fas fa-crown text-white"></i>
|
| 914 |
-
</div>
|
| 915 |
-
<div class="lesson-info">
|
| 916 |
-
<div class="lesson-title">Postflop C-bet</div>
|
| 917 |
-
<div class="lesson-desc">Stratégies optimales de continuation bet</div>
|
| 918 |
-
</div>
|
| 919 |
-
<div class="text-gray-400">
|
| 920 |
-
<i class="fas fa-lock"></i>
|
| 921 |
-
</div>
|
| 922 |
-
</div>
|
| 923 |
-
</div>
|
| 924 |
-
|
| 925 |
-
<!-- Profile Page -->
|
| 926 |
-
<div id="profilePage" class="page">
|
| 927 |
-
<div class="profile-header">
|
| 928 |
-
<div class="profile-avatar">JD</div>
|
| 929 |
-
<div class="profile-info">
|
| 930 |
-
<div class="profile-name">John Doe</div>
|
| 931 |
-
<div class="profile-level">Niveau Expert · 1520 points</div>
|
| 932 |
-
</div>
|
| 933 |
-
</div>
|
| 934 |
-
|
| 935 |
-
<div class="profile-stats">
|
| 936 |
-
<div class="profile-stat">
|
| 937 |
-
<div class="stat-value">87%</div>
|
| 938 |
-
<div class="stat-label">Précision</div>
|
| 939 |
-
</div>
|
| 940 |
-
<div class="profile-stat">
|
| 941 |
-
<div class="stat-value">24</div>
|
| 942 |
-
<div class="stat-label">Sessions</div>
|
| 943 |
-
</div>
|
| 944 |
-
<div class="profile-stat">
|
| 945 |
-
<div class="stat-value">15h</div>
|
| 946 |
-
<div class="stat-label">Pratique</div>
|
| 947 |
-
</div>
|
| 948 |
-
</div>
|
| 949 |
-
|
| 950 |
-
<div class="card">
|
| 951 |
-
<h3 class="text-white font-bold mb-3">Progression</h3>
|
| 952 |
-
<div class="flex items-center justify-between mb-4">
|
| 953 |
-
<div>
|
| 954 |
-
<div class="text-white font-medium">Open Raise</div>
|
| 955 |
-
<div class="text-gray-400 text-xs">92% de précision</div>
|
| 956 |
-
</div>
|
| 957 |
-
<div class="w-24 bg-gray-700 rounded-full h-2.5">
|
| 958 |
-
<div class="bg-green-400 h-2.5 rounded-full" style="width: 92%"></div>
|
| 959 |
-
</div>
|
| 960 |
-
</div>
|
| 961 |
-
<div class="flex items-center justify-between mb-4">
|
| 962 |
-
<div>
|
| 963 |
-
<div class="text-white font-medium">3-Bet</div>
|
| 964 |
-
<div class="text-gray-400 text-xs">85% de précision</div>
|
| 965 |
-
</div>
|
| 966 |
-
<div class="w-24 bg-gray-700 rounded-full h-2.5">
|
| 967 |
-
<div class="bg-yellow-400 h-2.5 rounded-full" style="width: 85%"></div>
|
| 968 |
-
</div>
|
| 969 |
-
</div>
|
| 970 |
-
<div class="flex items-center justify-between">
|
| 971 |
-
<div>
|
| 972 |
-
<div class="text-white font-medium">Call vs 3-Bet</div>
|
| 973 |
-
<div class="text-gray-400 text-xs">78% de précision</div>
|
| 974 |
-
</div>
|
| 975 |
-
<div class="w-24 bg-gray-700 rounded-full h-2.5">
|
| 976 |
-
<div class="bg-red-400 h-2.5 rounded-full" style="width: 78%"></div>
|
| 977 |
-
</div>
|
| 978 |
-
</div>
|
| 979 |
-
</div>
|
| 980 |
-
|
| 981 |
-
<div class="card">
|
| 982 |
-
<h3 class="text-white font-bold mb-3">Paramètres</h3>
|
| 983 |
-
<div class="flex items-center justify-between py-3 border-b border-gray-700">
|
| 984 |
-
<div class="text-white">Notifications</div>
|
| 985 |
-
<div class="relative inline-block w-10 mr-2 align-middle select-none">
|
| 986 |
-
<input type="checkbox" id="toggle" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
|
| 987 |
-
<label for="toggle" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 cursor-pointer"></label>
|
| 988 |
-
</div>
|
| 989 |
-
</div>
|
| 990 |
-
<div class="flex items-center justify-between py-3 border-b border-gray-700">
|
| 991 |
-
<div class="text-white">Mode sombre</div>
|
| 992 |
-
<div class="relative inline-block w-10 mr-2 align-middle select-none">
|
| 993 |
-
<input type="checkbox" id="darkMode" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer" checked/>
|
| 994 |
-
<label for="darkMode" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 cursor-pointer"></label>
|
| 995 |
</div>
|
| 996 |
-
</div>
|
| 997 |
-
<div class="flex items-center justify-between py-3">
|
| 998 |
-
<div class="text-white">Langue</div>
|
| 999 |
-
<div class="text-gray-400">Français</div>
|
| 1000 |
-
</div>
|
| 1001 |
</div>
|
| 1002 |
-
|
| 1003 |
-
<div class="grid grid-cols-2 gap-3 mx-4 mt-4 mb-16">
|
| 1004 |
-
<button class="btn btn-secondary">
|
| 1005 |
-
<i class="fas fa-cog mr-2"></i>Paramètres
|
| 1006 |
-
</button>
|
| 1007 |
-
<button class="btn btn-danger">
|
| 1008 |
-
<i class="fas fa-sign-out-alt mr-2"></i>Déconnexion
|
| 1009 |
-
</button>
|
| 1010 |
-
</div>
|
| 1011 |
-
</div>
|
| 1012 |
-
</div>
|
| 1013 |
-
|
| 1014 |
-
<!-- Tab Bar -->
|
| 1015 |
-
<div class="tab-bar">
|
| 1016 |
-
<div class="tab-item" data-page="homePage">
|
| 1017 |
-
<div class="tab-icon"><i class="fas fa-home"></i></div>
|
| 1018 |
-
<div>Accueil</div>
|
| 1019 |
-
</div>
|
| 1020 |
-
<div class="tab-item active" data-page="rangesPage">
|
| 1021 |
-
<div class="tab-icon"><i class="fas fa-table"></i></div>
|
| 1022 |
-
<div>Ranges</div>
|
| 1023 |
-
</div>
|
| 1024 |
-
<div class="tab-item" data-page="scanPage">
|
| 1025 |
-
<div class="tab-icon"><i class="fas fa-camera"></i></div>
|
| 1026 |
-
<div>Scan</div>
|
| 1027 |
-
</div>
|
| 1028 |
-
<div class="tab-item" data-page="learnPage">
|
| 1029 |
-
<div class="tab-icon"><i class="fas fa-book"></i></div>
|
| 1030 |
-
<div>Apprendre</div>
|
| 1031 |
-
</div>
|
| 1032 |
-
<div class="tab-item" data-page="profilePage">
|
| 1033 |
-
<div class="tab-icon"><i class="fas fa-user"></i></div>
|
| 1034 |
-
<div>Profil</div>
|
| 1035 |
-
</div>
|
| 1036 |
-
</div>
|
| 1037 |
|
| 1038 |
-
<
|
| 1039 |
-
|
| 1040 |
-
|
| 1041 |
-
|
| 1042 |
-
|
| 1043 |
-
|
| 1044 |
-
|
| 1045 |
-
|
| 1046 |
-
|
| 1047 |
-
|
| 1048 |
-
|
| 1049 |
-
|
| 1050 |
-
|
| 1051 |
-
|
| 1052 |
-
|
| 1053 |
-
|
| 1054 |
-
|
| 1055 |
-
|
| 1056 |
-
|
| 1057 |
-
|
| 1058 |
-
|
| 1059 |
-
|
| 1060 |
-
|
| 1061 |
-
|
| 1062 |
-
|
| 1063 |
-
|
| 1064 |
-
|
| 1065 |
-
|
| 1066 |
-
|
| 1067 |
-
|
| 1068 |
-
|
| 1069 |
-
|
| 1070 |
-
|
| 1071 |
-
|
| 1072 |
-
|
| 1073 |
-
|
| 1074 |
-
|
| 1075 |
-
|
| 1076 |
-
|
| 1077 |
-
|
| 1078 |
-
|
| 1079 |
-
|
| 1080 |
-
|
| 1081 |
-
|
| 1082 |
-
|
| 1083 |
-
|
| 1084 |
-
|
| 1085 |
-
|
| 1086 |
-
|
| 1087 |
-
|
| 1088 |
-
|
| 1089 |
-
|
| 1090 |
-
|
| 1091 |
-
|
| 1092 |
-
|
| 1093 |
-
|
| 1094 |
-
|
| 1095 |
-
|
| 1096 |
-
|
| 1097 |
-
|
| 1098 |
-
|
| 1099 |
-
|
| 1100 |
-
|
| 1101 |
-
|
| 1102 |
-
|
| 1103 |
-
|
| 1104 |
-
|
| 1105 |
-
|
| 1106 |
-
|
| 1107 |
-
|
| 1108 |
-
|
| 1109 |
-
|
| 1110 |
-
|
| 1111 |
-
|
| 1112 |
-
|
| 1113 |
-
|
| 1114 |
-
|
| 1115 |
-
|
| 1116 |
-
|
| 1117 |
-
|
| 1118 |
-
|
| 1119 |
-
|
| 1120 |
-
|
| 1121 |
-
|
| 1122 |
-
|
| 1123 |
-
|
| 1124 |
-
|
| 1125 |
-
|
| 1126 |
-
|
| 1127 |
-
|
| 1128 |
-
|
| 1129 |
-
|
| 1130 |
-
|
| 1131 |
-
|
| 1132 |
-
|
| 1133 |
-
|
| 1134 |
-
|
| 1135 |
-
|
| 1136 |
-
|
| 1137 |
-
|
| 1138 |
-
|
| 1139 |
-
|
| 1140 |
-
|
| 1141 |
-
|
| 1142 |
-
|
| 1143 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1144 |
});
|
| 1145 |
-
|
| 1146 |
-
rangeGrid.appendChild(cell);
|
| 1147 |
-
}
|
| 1148 |
-
}
|
| 1149 |
-
}
|
| 1150 |
-
|
| 1151 |
-
// Show hand details
|
| 1152 |
-
function showHandDetails(hand, percentage) {
|
| 1153 |
-
const handDetails = document.getElementById('handDetails');
|
| 1154 |
-
const handName = document.getElementById('handName');
|
| 1155 |
-
const handType = document.getElementById('handType');
|
| 1156 |
-
const handFrequency = document.getElementById('handFrequency');
|
| 1157 |
-
const handEquity = document.getElementById('handEquity');
|
| 1158 |
-
const handEv = document.getElementById('handEv');
|
| 1159 |
-
|
| 1160 |
-
// Determine hand type
|
| 1161 |
-
let type = 'Paire';
|
| 1162 |
-
if (hand.endsWith('s')) type = 'Suited';
|
| 1163 |
-
if (hand.endsWith('o')) type = 'Offsuit';
|
| 1164 |
-
|
| 1165 |
-
// Update details
|
| 1166 |
-
handName.textContent = hand.replace('s', '').replace('o', '') + (type === 'Paire' ? '' : (type === 'Suited' ? 's' : 'o'));
|
| 1167 |
-
handType.textContent = type;
|
| 1168 |
-
handFrequency.textContent = percentage.toFixed(1) + '%';
|
| 1169 |
-
handEquity.textContent = (40 + Math.random() * 20).toFixed(1) + '%';
|
| 1170 |
-
handEv.textContent = '+' + (0.5 + Math.random() * 2).toFixed(1) + 'BB';
|
| 1171 |
-
|
| 1172 |
-
// Show details
|
| 1173 |
-
handDetails.style.display = 'block';
|
| 1174 |
-
|
| 1175 |
-
// Highlight selected hand in grid
|
| 1176 |
-
document.querySelectorAll('.range-cell').forEach(cell => {
|
| 1177 |
-
cell.classList.remove('selected');
|
| 1178 |
-
if (cell.dataset.hand === hand) {
|
| 1179 |
-
cell.classList.add('selected');
|
| 1180 |
-
}
|
| 1181 |
-
});
|
| 1182 |
-
}
|
| 1183 |
-
|
| 1184 |
-
// Update stack size display
|
| 1185 |
-
function updateStackSize() {
|
| 1186 |
-
const slider = document.getElementById('stackSizeSlider');
|
| 1187 |
-
const valueDisplay = document.getElementById('stackSizeValue');
|
| 1188 |
-
|
| 1189 |
-
valueDisplay.textContent = slider.value + 'BB';
|
| 1190 |
-
|
| 1191 |
-
// Regenerate grid with new stack size
|
| 1192 |
-
generateRangeGrid();
|
| 1193 |
-
}
|
| 1194 |
-
|
| 1195 |
-
// Toggle filter action sheet
|
| 1196 |
-
function toggleFilterActionSheet() {
|
| 1197 |
-
const actionSheet = document.getElementById('filterActionSheet');
|
| 1198 |
-
actionSheet.classList.toggle('show');
|
| 1199 |
-
}
|
| 1200 |
-
|
| 1201 |
-
// Switch between pages
|
| 1202 |
-
function switchPage(pageId) {
|
| 1203 |
-
// Hide all pages
|
| 1204 |
-
document.querySelectorAll('.page').forEach(page => {
|
| 1205 |
-
page.classList.remove('active');
|
| 1206 |
-
});
|
| 1207 |
-
|
| 1208 |
-
// Show selected page
|
| 1209 |
-
document.getElementById(pageId).classList.add('active');
|
| 1210 |
-
|
| 1211 |
-
// Update tab bar
|
| 1212 |
-
document.querySelectorAll('.tab-item').forEach(tab => {
|
| 1213 |
-
tab.classList.remove('active');
|
| 1214 |
-
if (tab.dataset.page === pageId) {
|
| 1215 |
-
tab.classList.add('active');
|
| 1216 |
-
}
|
| 1217 |
-
});
|
| 1218 |
-
|
| 1219 |
-
// Update page title
|
| 1220 |
-
const pageTitle = document.getElementById('pageTitle');
|
| 1221 |
-
switch(pageId) {
|
| 1222 |
-
case 'homePage':
|
| 1223 |
-
pageTitle.textContent = 'Accueil';
|
| 1224 |
-
break;
|
| 1225 |
-
case 'rangesPage':
|
| 1226 |
-
pageTitle.textContent = 'Ranges GTO';
|
| 1227 |
-
generateRangeGrid();
|
| 1228 |
-
break;
|
| 1229 |
-
case 'scanPage':
|
| 1230 |
-
pageTitle.textContent = 'Scanner';
|
| 1231 |
-
// Reset scan UI when switching to scan page
|
| 1232 |
-
resetScanUI();
|
| 1233 |
-
break;
|
| 1234 |
-
case 'learnPage':
|
| 1235 |
-
pageTitle.textContent = 'Apprendre';
|
| 1236 |
-
break;
|
| 1237 |
-
case 'profilePage':
|
| 1238 |
-
pageTitle.textContent = 'Profil';
|
| 1239 |
-
break;
|
| 1240 |
-
}
|
| 1241 |
-
}
|
| 1242 |
-
|
| 1243 |
-
// Scan functionality
|
| 1244 |
-
let stream = null;
|
| 1245 |
-
|
| 1246 |
-
// Start camera
|
| 1247 |
-
async function startCamera() {
|
| 1248 |
-
try {
|
| 1249 |
-
const video = document.getElementById('cameraVideo');
|
| 1250 |
-
stream = await navigator.mediaDevices.getUserMedia({
|
| 1251 |
-
video: {
|
| 1252 |
-
facingMode: 'environment',
|
| 1253 |
-
width: { ideal: 1280 },
|
| 1254 |
-
height: { ideal: 720 }
|
| 1255 |
-
},
|
| 1256 |
-
audio: false
|
| 1257 |
-
});
|
| 1258 |
-
video.srcObject = stream;
|
| 1259 |
-
document.getElementById('cameraPreview').style.display = 'block';
|
| 1260 |
-
document.getElementById('scanBtn').style.display = 'none';
|
| 1261 |
-
document.getElementById('uploadBtn').style.display = 'none';
|
| 1262 |
-
document.getElementById('cancelScanBtn').style.display = 'block';
|
| 1263 |
-
document.getElementById('scannedImage').style.display = 'none';
|
| 1264 |
-
document.getElementById('analysisResult').style.display = 'none';
|
| 1265 |
-
} catch (err) {
|
| 1266 |
-
console.error("Error accessing camera:", err);
|
| 1267 |
-
alert("Impossible d'accéder à la caméra. Veuillez vérifier les permissions.");
|
| 1268 |
-
}
|
| 1269 |
-
}
|
| 1270 |
-
|
| 1271 |
-
// Capture photo from camera
|
| 1272 |
-
function capturePhoto() {
|
| 1273 |
-
const video = document.getElementById('cameraVideo');
|
| 1274 |
-
const canvas = document.getElementById('cameraCanvas');
|
| 1275 |
-
const scannedImage = document.getElementById('scannedImagePreview');
|
| 1276 |
-
|
| 1277 |
-
canvas.width = video.videoWidth;
|
| 1278 |
-
canvas.height = video.videoHeight;
|
| 1279 |
-
canvas.getContext('2d').drawImage(video, 0, 0, canvas.width, canvas.height);
|
| 1280 |
-
|
| 1281 |
-
// Convert canvas to image
|
| 1282 |
-
scannedImage.src = canvas.toDataURL('image/png');
|
| 1283 |
-
|
| 1284 |
-
// Show scanned image and hide camera preview
|
| 1285 |
-
document.getElementById('cameraPreview').style.display = 'none';
|
| 1286 |
-
document.getElementById('scannedImage').style.display = 'block';
|
| 1287 |
-
document.getElementById('uploadBtn').style.display = 'block';
|
| 1288 |
-
document.getElementById('cancelScanBtn').style.display = 'block';
|
| 1289 |
-
|
| 1290 |
-
// Stop camera
|
| 1291 |
-
stopCamera();
|
| 1292 |
-
}
|
| 1293 |
-
|
| 1294 |
-
// Stop camera
|
| 1295 |
-
function stopCamera() {
|
| 1296 |
-
if (stream) {
|
| 1297 |
-
stream.getTracks().forEach(track => track.stop());
|
| 1298 |
-
stream = null;
|
| 1299 |
-
}
|
| 1300 |
-
}
|
| 1301 |
-
|
| 1302 |
-
// Reset scan UI
|
| 1303 |
-
function resetScanUI() {
|
| 1304 |
-
stopCamera();
|
| 1305 |
-
document.getElementById('cameraPreview').style.display = 'none';
|
| 1306 |
-
document.getElementById('scannedImage').style.display = 'none';
|
| 1307 |
-
document.getElementById('analysisResult').style.display = 'none';
|
| 1308 |
-
document.getElementById('scanBtn').style.display = 'block';
|
| 1309 |
-
document.getElementById('uploadBtn').style.display = 'none';
|
| 1310 |
-
document.getElementById('cancelScanBtn').style.display = 'none';
|
| 1311 |
-
}
|
| 1312 |
-
|
| 1313 |
-
// Analyze image (simulated)
|
| 1314 |
-
function analyzeImage() {
|
| 1315 |
-
// Simulate image analysis
|
| 1316 |
-
const hands = [
|
| 1317 |
-
{ cards: "A♠ K♥", action: "UTG Open Raise", frequency: "92%" },
|
| 1318 |
-
{ cards: "Q♦ Q♣", action: "3-Bet vs CO", frequency: "100%" },
|
| 1319 |
-
{ cards: "J♠ T♠", action: "Call vs BTN", frequency: "65%" }
|
| 1320 |
-
];
|
| 1321 |
-
|
| 1322 |
-
const randomHand = hands[Math.floor(Math.random() * hands.length)];
|
| 1323 |
-
|
| 1324 |
-
document.getElementById('scannedCards').textContent = randomHand.cards;
|
| 1325 |
-
document.getElementById('scannedAction').textContent = randomHand.action;
|
| 1326 |
-
document.getElementById('scannedFrequency').textContent = randomHand.frequency + " de fréquence recommandée";
|
| 1327 |
-
|
| 1328 |
-
document.getElementById('analysisResult').style.display = 'block';
|
| 1329 |
-
document.getElementById('uploadBtn').style.display = 'none';
|
| 1330 |
-
}
|
| 1331 |
-
|
| 1332 |
-
// Handle file upload
|
| 1333 |
-
function handleFileUpload(event) {
|
| 1334 |
-
const file = event.target.files[0];
|
| 1335 |
-
if (file) {
|
| 1336 |
-
const reader = new FileReader();
|
| 1337 |
-
reader.onload = function(e) {
|
| 1338 |
-
const scannedImage = document.getElementById('scannedImagePreview');
|
| 1339 |
-
scannedImage.src = e.target.result;
|
| 1340 |
-
document.getElementById('scannedImage').style.display = 'block';
|
| 1341 |
-
document.getElementById('uploadBtn').style.display = 'block';
|
| 1342 |
-
document.getElementById('scanBtn').style.display = 'none';
|
| 1343 |
-
document.getElementById('cancelScanBtn').style.display = 'block';
|
| 1344 |
-
};
|
| 1345 |
-
reader.readAsDataURL(file);
|
| 1346 |
-
}
|
| 1347 |
-
}
|
| 1348 |
-
|
| 1349 |
-
// Initialize app
|
| 1350 |
-
document.addEventListener('DOMContentLoaded', function() {
|
| 1351 |
-
generateRangeGrid();
|
| 1352 |
-
|
| 1353 |
-
// Stack size slider event
|
| 1354 |
-
document.getElementById('stackSizeSlider').addEventListener('input', updateStackSize);
|
| 1355 |
-
|
| 1356 |
-
// Position filter chips
|
| 1357 |
-
document.querySelectorAll('.position-filter').forEach(chip => {
|
| 1358 |
-
chip.addEventListener('click', function() {
|
| 1359 |
-
document.querySelectorAll('.position-filter').forEach(c => c.classList.remove('active'));
|
| 1360 |
-
this.classList.add('active');
|
| 1361 |
-
generateRangeGrid();
|
| 1362 |
-
});
|
| 1363 |
-
});
|
| 1364 |
-
|
| 1365 |
-
// Action filter chips
|
| 1366 |
-
document.querySelectorAll('.action-filter').forEach(chip => {
|
| 1367 |
-
chip.addEventListener('click', function() {
|
| 1368 |
-
document.querySelectorAll('.action-filter').forEach(c => c.classList.remove('active'));
|
| 1369 |
-
this.classList.add('active');
|
| 1370 |
-
generateRangeGrid();
|
| 1371 |
-
});
|
| 1372 |
-
});
|
| 1373 |
-
|
| 1374 |
-
// Filter button events
|
| 1375 |
-
document.getElementById('filterBtn').addEventListener('click', toggleFilterActionSheet);
|
| 1376 |
-
document.getElementById('cancelFilterActionSheet').addEventListener('click', toggleFilterActionSheet);
|
| 1377 |
-
document.getElementById('applyFiltersBtn').addEventListener('click', toggleFilterActionSheet);
|
| 1378 |
-
|
| 1379 |
-
// Back button
|
| 1380 |
-
document.getElementById('backBtn').addEventListener('click', function() {
|
| 1381 |
-
alert("Retour à l'accueil - Cette fonctionnalité sera implémentée dans la navigation complète");
|
| 1382 |
-
});
|
| 1383 |
-
|
| 1384 |
-
// Practice button
|
| 1385 |
-
document.getElementById('practiceRangeBtn').addEventListener('click', function() {
|
| 1386 |
-
alert("Mode pratique activé - Vous serez testé sur cette range");
|
| 1387 |
-
});
|
| 1388 |
-
|
| 1389 |
-
// Save button
|
| 1390 |
-
document.getElementById('saveRangeBtn').addEventListener('click', function() {
|
| 1391 |
-
alert("Range sauvegardée dans votre profil");
|
| 1392 |
-
});
|
| 1393 |
-
|
| 1394 |
-
// Select hands button
|
| 1395 |
-
document.getElementById('selectHandsBtn').addEventListener('click', function() {
|
| 1396 |
-
alert("Mode sélection activé - Choisissez les mains à inclure dans votre range personnalisée");
|
| 1397 |
-
});
|
| 1398 |
-
|
| 1399 |
-
// Antes slider
|
| 1400 |
-
document.getElementById('antesSlider').addEventListener('input', function() {
|
| 1401 |
-
document.getElementById('antesValue').textContent = this.value + '%';
|
| 1402 |
-
});
|
| 1403 |
-
|
| 1404 |
-
// Format filter chips
|
| 1405 |
-
document.querySelectorAll('.format-filter').forEach(chip => {
|
| 1406 |
-
chip.addEventListener('click', function() {
|
| 1407 |
-
document.querySelectorAll('.format-filter').forEach(c => c.classList.remove('active'));
|
| 1408 |
-
this.classList.add('active');
|
| 1409 |
-
});
|
| 1410 |
-
});
|
| 1411 |
-
|
| 1412 |
-
// Player type filter chips
|
| 1413 |
-
document.querySelectorAll('.player-type-filter').forEach(chip => {
|
| 1414 |
-
chip.addEventListener('click', function() {
|
| 1415 |
-
document.querySelectorAll('.player-type-filter').forEach(c => c.classList.remove('active'));
|
| 1416 |
-
this.classList.add('active');
|
| 1417 |
-
});
|
| 1418 |
-
});
|
| 1419 |
-
|
| 1420 |
-
// Tab bar navigation
|
| 1421 |
-
document.querySelectorAll('.tab-item').forEach(tab => {
|
| 1422 |
-
tab.addEventListener('click', function() {
|
| 1423 |
-
switchPage(this.dataset.page);
|
| 1424 |
-
});
|
| 1425 |
-
});
|
| 1426 |
-
|
| 1427 |
-
// Scan button
|
| 1428 |
-
document.getElementById('scanBtn').addEventListener('click', startCamera);
|
| 1429 |
-
|
| 1430 |
-
// Capture button
|
| 1431 |
-
document.getElementById('captureBtn').addEventListener('click', capturePhoto);
|
| 1432 |
-
|
| 1433 |
-
// Upload button (analyze)
|
| 1434 |
-
document.getElementById('uploadBtn').addEventListener('click', analyzeImage);
|
| 1435 |
-
|
| 1436 |
-
// Cancel scan button
|
| 1437 |
-
document.getElementById('cancelScanBtn').addEventListener('click', resetScanUI);
|
| 1438 |
-
|
| 1439 |
-
// File input for gallery upload
|
| 1440 |
-
const fileInput = document.createElement('input');
|
| 1441 |
-
fileInput.type = 'file';
|
| 1442 |
-
fileInput.accept = 'image/*';
|
| 1443 |
-
fileInput.style.display = 'none';
|
| 1444 |
-
fileInput.addEventListener('change', handleFileUpload);
|
| 1445 |
-
document.body.appendChild(fileInput);
|
| 1446 |
-
|
| 1447 |
-
// Click on "select from gallery" text
|
| 1448 |
-
document.querySelector('.scan-container p.text-xs').addEventListener('click', function() {
|
| 1449 |
-
fileInput.click();
|
| 1450 |
-
});
|
| 1451 |
-
});
|
| 1452 |
-
</script>
|
| 1453 |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=NeverBlufff/teambpc" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 1454 |
</html>
|
|
|
|
| 2 |
<html lang="fr">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Poker GTO Trainer - Scanner</title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
<style>
|
|
|
|
| 22 |
margin: 0;
|
| 23 |
padding: 0;
|
| 24 |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
background-color: var(--darker);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
color: white;
|
| 27 |
}
|
| 28 |
|
| 29 |
+
.camera-container {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
position: relative;
|
| 31 |
+
width: 100%;
|
| 32 |
+
max-width: 500px;
|
| 33 |
+
margin: 0 auto;
|
| 34 |
+
height: 70vh;
|
| 35 |
overflow: hidden;
|
| 36 |
+
border-radius: 12px;
|
| 37 |
+
background-color: black;
|
| 38 |
}
|
| 39 |
|
| 40 |
+
.camera-preview {
|
| 41 |
+
width: 100%;
|
| 42 |
+
height: 100%;
|
| 43 |
+
object-fit: cover;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
}
|
| 45 |
|
| 46 |
+
.scan-overlay {
|
| 47 |
position: absolute;
|
| 48 |
+
top: 0;
|
| 49 |
left: 0;
|
| 50 |
right: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
bottom: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
display: flex;
|
| 53 |
flex-direction: column;
|
|
|
|
| 54 |
justify-content: center;
|
| 55 |
+
align-items: center;
|
| 56 |
+
background-color: rgba(0, 0, 0, 0.5);
|
| 57 |
}
|
| 58 |
|
| 59 |
+
.scan-guide {
|
| 60 |
+
width: 80%;
|
| 61 |
height: 120px;
|
| 62 |
+
border: 2px dashed var(--primary);
|
| 63 |
+
border-radius: 8px;
|
| 64 |
+
margin-bottom: 20px;
|
| 65 |
display: flex;
|
|
|
|
| 66 |
justify-content: center;
|
| 67 |
+
align-items: center;
|
| 68 |
+
color: white;
|
| 69 |
+
font-weight: bold;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
}
|
| 71 |
|
| 72 |
.capture-btn {
|
| 73 |
position: absolute;
|
| 74 |
+
bottom: 30px;
|
| 75 |
left: 50%;
|
| 76 |
transform: translateX(-50%);
|
| 77 |
+
width: 70px;
|
| 78 |
+
height: 70px;
|
| 79 |
background-color: white;
|
| 80 |
border-radius: 50%;
|
| 81 |
border: 4px solid var(--primary);
|
| 82 |
cursor: pointer;
|
| 83 |
+
display: flex;
|
| 84 |
+
justify-content: center;
|
| 85 |
+
align-items: center;
|
| 86 |
}
|
| 87 |
|
| 88 |
.capture-btn::after {
|
| 89 |
content: '';
|
| 90 |
+
width: 50px;
|
| 91 |
+
height: 50px;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
background-color: var(--primary);
|
| 93 |
border-radius: 50%;
|
| 94 |
}
|
| 95 |
|
| 96 |
+
.result-container {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
display: none;
|
| 98 |
+
padding: 20px;
|
| 99 |
+
background-color: var(--dark);
|
|
|
|
| 100 |
border-radius: 12px;
|
| 101 |
+
margin-top: 20px;
|
| 102 |
}
|
| 103 |
|
| 104 |
+
.card-display {
|
| 105 |
+
width: 80px;
|
| 106 |
+
height: 120px;
|
| 107 |
+
background-color: white;
|
| 108 |
+
border-radius: 8px;
|
| 109 |
display: flex;
|
| 110 |
+
justify-content: center;
|
| 111 |
align-items: center;
|
| 112 |
+
font-size: 24px;
|
| 113 |
+
font-weight: bold;
|
| 114 |
+
color: black;
|
| 115 |
+
margin: 0 auto;
|
| 116 |
+
position: relative;
|
| 117 |
}
|
| 118 |
|
| 119 |
+
.card-display::before {
|
| 120 |
+
content: attr(data-suit);
|
| 121 |
+
position: absolute;
|
| 122 |
+
top: 5px;
|
| 123 |
+
left: 5px;
|
| 124 |
+
font-size: 16px;
|
|
|
|
|
|
|
|
|
|
| 125 |
}
|
| 126 |
|
| 127 |
+
.card-display::after {
|
| 128 |
+
content: attr(data-suit);
|
| 129 |
+
position: absolute;
|
| 130 |
+
bottom: 5px;
|
| 131 |
+
right: 5px;
|
| 132 |
+
font-size: 16px;
|
| 133 |
+
transform: rotate(180deg);
|
| 134 |
}
|
| 135 |
|
| 136 |
+
.heart, .diamond {
|
| 137 |
+
color: red;
|
|
|
|
|
|
|
| 138 |
}
|
| 139 |
|
| 140 |
+
.spade, .club {
|
| 141 |
+
color: black;
|
|
|
|
| 142 |
}
|
| 143 |
|
| 144 |
+
.action-buttons {
|
|
|
|
| 145 |
display: flex;
|
| 146 |
+
gap: 10px;
|
| 147 |
+
margin-top: 20px;
|
|
|
|
|
|
|
| 148 |
}
|
| 149 |
|
| 150 |
+
.btn {
|
| 151 |
+
padding: 12px 20px;
|
| 152 |
+
border-radius: 8px;
|
| 153 |
+
font-weight: bold;
|
| 154 |
+
border: none;
|
| 155 |
+
cursor: pointer;
|
| 156 |
+
flex: 1;
|
| 157 |
+
text-align: center;
|
| 158 |
+
}
|
| 159 |
+
|
| 160 |
+
.btn-primary {
|
| 161 |
background-color: var(--primary);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
color: white;
|
| 163 |
}
|
| 164 |
|
| 165 |
+
.btn-secondary {
|
| 166 |
+
background-color: var(--dark);
|
| 167 |
+
color: white;
|
| 168 |
+
border: 1px solid var(--primary);
|
| 169 |
}
|
| 170 |
|
| 171 |
+
.btn-danger {
|
| 172 |
+
background-color: var(--danger);
|
| 173 |
color: white;
|
|
|
|
|
|
|
| 174 |
}
|
| 175 |
|
| 176 |
+
.accuracy-meter {
|
| 177 |
+
height: 10px;
|
| 178 |
+
background-color: #334155;
|
| 179 |
+
border-radius: 5px;
|
| 180 |
+
margin-top: 10px;
|
| 181 |
+
overflow: hidden;
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
.accuracy-fill {
|
| 185 |
+
height: 100%;
|
| 186 |
+
background-color: var(--success);
|
| 187 |
+
width: 90%;
|
| 188 |
}
|
| 189 |
|
| 190 |
+
.card-grid {
|
| 191 |
display: grid;
|
| 192 |
+
grid-template-columns: repeat(4, 1fr);
|
| 193 |
+
gap: 10px;
|
| 194 |
+
margin-top: 20px;
|
| 195 |
}
|
| 196 |
|
| 197 |
+
.card-option {
|
| 198 |
+
padding: 10px;
|
| 199 |
+
border: 1px solid #334155;
|
| 200 |
border-radius: 8px;
|
|
|
|
| 201 |
text-align: center;
|
| 202 |
+
cursor: pointer;
|
| 203 |
+
transition: all 0.2s;
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
.card-option:hover {
|
| 207 |
+
background-color: #334155;
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
.card-option.selected {
|
| 211 |
+
background-color: var(--primary);
|
| 212 |
+
border-color: var(--primary);
|
| 213 |
}
|
| 214 |
</style>
|
| 215 |
</head>
|
| 216 |
<body>
|
| 217 |
+
<div class="min-h-screen flex flex-col">
|
| 218 |
+
<!-- Header -->
|
| 219 |
+
<div class="bg-dark p-4 flex items-center justify-between">
|
| 220 |
+
<button class="text-white">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 221 |
<i class="fas fa-arrow-left"></i>
|
| 222 |
</button>
|
| 223 |
+
<h1 class="text-xl font-bold">Scanner des cartes</h1>
|
| 224 |
+
<div class="w-6"></div> <!-- Spacer for balance -->
|
|
|
|
|
|
|
| 225 |
</div>
|
| 226 |
|
| 227 |
+
<!-- Main Content -->
|
| 228 |
+
<div class="flex-1 p-4">
|
| 229 |
+
<!-- Camera Preview -->
|
| 230 |
+
<div class="camera-container" id="cameraContainer">
|
| 231 |
+
<video id="cameraPreview" class="camera-preview" autoplay playsinline></video>
|
| 232 |
+
<div class="scan-overlay">
|
| 233 |
+
<div class="scan-guide">Placez les cartes dans ce cadre</div>
|
|
|
|
|
|
|
|
|
|
| 234 |
</div>
|
| 235 |
+
<button class="capture-btn" id="captureBtn"></button>
|
| 236 |
+
</div>
|
| 237 |
+
|
| 238 |
+
<!-- Result Display -->
|
| 239 |
+
<div class="result-container" id="resultContainer">
|
| 240 |
+
<h2 class="text-xl font-bold mb-4">Résultat de l'analyse</h2>
|
| 241 |
|
| 242 |
+
<div class="flex items-center justify-center gap-4 mb-6">
|
| 243 |
+
<div class="card-display" id="card1" data-rank="A" data-suit="♠">
|
| 244 |
+
A<span class="spade">♠</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
</div>
|
| 246 |
+
<div class="card-display" id="card2" data-rank="K" data-suit="♥">
|
| 247 |
+
K<span class="heart">♥</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 248 |
</div>
|
| 249 |
</div>
|
| 250 |
|
| 251 |
+
<div class="bg-slate-700 p-4 rounded-lg">
|
| 252 |
+
<h3 class="font-bold mb-2">Action recommandée</h3>
|
| 253 |
+
<p class="text-green-400 font-bold text-lg mb-2">Open Raise (92%)</p>
|
| 254 |
+
<div class="accuracy-meter">
|
| 255 |
+
<div class="accuracy-fill"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 256 |
</div>
|
| 257 |
+
<p class="text-sm text-slate-300 mt-2">Confiance de l'analyse: 90%</p>
|
| 258 |
+
</div>
|
| 259 |
+
|
| 260 |
+
<div class="mt-6">
|
| 261 |
+
<h3 class="font-bold mb-2">Autres options possibles</h3>
|
| 262 |
+
<div class="card-grid">
|
| 263 |
+
<div class="card-option">Call (8%)</div>
|
| 264 |
+
<div class="card-option">Fold (0%)</div>
|
| 265 |
+
<div class="card-option">3-Bet (45%)</div>
|
| 266 |
+
<div class="card-option">4-Bet (12%)</div>
|
| 267 |
</div>
|
| 268 |
</div>
|
| 269 |
|
| 270 |
+
<div class="action-buttons mt-6">
|
| 271 |
+
<button class="btn btn-secondary" id="rescanBtn">
|
| 272 |
+
<i class="fas fa-redo mr-2"></i>Rescanner
|
| 273 |
+
</button>
|
| 274 |
+
<button class="btn btn-primary" id="saveResultBtn">
|
| 275 |
+
<i class="fas fa-save mr-2"></i>Sauvegarder
|
| 276 |
+
</button>
|
| 277 |
+
</div>
|
| 278 |
+
</div>
|
| 279 |
+
|
| 280 |
+
<!-- Alternative Upload -->
|
| 281 |
+
<div class="mt-6 text-center">
|
| 282 |
+
<p class="text-slate-400 mb-3">Ou sélectionnez une image depuis votre galerie</p>
|
| 283 |
+
<button class="btn btn-secondary" id="uploadBtn">
|
| 284 |
+
<i class="fas fa-upload mr-2"></i>Choisir une image
|
| 285 |
+
</button>
|
| 286 |
+
<input type="file" id="fileInput" accept="image/*" class="hidden">
|
| 287 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 288 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 289 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 290 |
|
| 291 |
+
<script>
|
| 292 |
+
// Camera and scan functionality
|
| 293 |
+
let stream = null;
|
| 294 |
+
const cameraContainer = document.getElementById('cameraContainer');
|
| 295 |
+
const cameraPreview = document.getElementById('cameraPreview');
|
| 296 |
+
const captureBtn = document.getElementById('captureBtn');
|
| 297 |
+
const resultContainer = document.getElementById('resultContainer');
|
| 298 |
+
const rescanBtn = document.getElementById('rescanBtn');
|
| 299 |
+
const saveResultBtn = document.getElementById('saveResultBtn');
|
| 300 |
+
const uploadBtn = document.getElementById('uploadBtn');
|
| 301 |
+
const fileInput = document.getElementById('fileInput');
|
| 302 |
+
|
| 303 |
+
// Start camera
|
| 304 |
+
async function startCamera() {
|
| 305 |
+
try {
|
| 306 |
+
stream = await navigator.mediaDevices.getUserMedia({
|
| 307 |
+
video: {
|
| 308 |
+
facingMode: 'environment',
|
| 309 |
+
width: { ideal: 1280 },
|
| 310 |
+
height: { ideal: 720 }
|
| 311 |
+
},
|
| 312 |
+
audio: false
|
| 313 |
+
});
|
| 314 |
+
cameraPreview.srcObject = stream;
|
| 315 |
+
cameraContainer.style.display = 'block';
|
| 316 |
+
resultContainer.style.display = 'none';
|
| 317 |
+
} catch (err) {
|
| 318 |
+
console.error("Error accessing camera:", err);
|
| 319 |
+
alert("Impossible d'accéder à la caméra. Veuillez vérifier les permissions.");
|
| 320 |
+
// Fallback to upload
|
| 321 |
+
uploadBtn.click();
|
| 322 |
+
}
|
| 323 |
+
}
|
| 324 |
+
|
| 325 |
+
// Capture photo
|
| 326 |
+
function capturePhoto() {
|
| 327 |
+
const canvas = document.createElement('canvas');
|
| 328 |
+
canvas.width = cameraPreview.videoWidth;
|
| 329 |
+
canvas.height = cameraPreview.videoHeight;
|
| 330 |
+
const ctx = canvas.getContext('2d');
|
| 331 |
+
|
| 332 |
+
// Draw image with crop to guide area
|
| 333 |
+
const guideSize = Math.min(cameraPreview.videoWidth * 0.8, cameraPreview.videoHeight * 0.5);
|
| 334 |
+
const x = (cameraPreview.videoWidth - guideSize) / 2;
|
| 335 |
+
const y = (cameraPreview.videoHeight - guideSize) / 2;
|
| 336 |
+
|
| 337 |
+
ctx.drawImage(cameraPreview, x, y, guideSize, guideSize, 0, 0, canvas.width, canvas.height);
|
| 338 |
+
|
| 339 |
+
// Stop camera
|
| 340 |
+
stopCamera();
|
| 341 |
+
|
| 342 |
+
// Show result
|
| 343 |
+
analyzeImage(canvas.toDataURL('image/jpeg'));
|
| 344 |
+
}
|
| 345 |
+
|
| 346 |
+
// Stop camera
|
| 347 |
+
function stopCamera() {
|
| 348 |
+
if (stream) {
|
| 349 |
+
stream.getTracks().forEach(track => track.stop());
|
| 350 |
+
stream = null;
|
| 351 |
+
}
|
| 352 |
+
}
|
| 353 |
+
|
| 354 |
+
// Analyze image (simulated with better card recognition)
|
| 355 |
+
function analyzeImage(imageData) {
|
| 356 |
+
// Hide camera and show result
|
| 357 |
+
cameraContainer.style.display = 'none';
|
| 358 |
+
resultContainer.style.display = 'block';
|
| 359 |
+
|
| 360 |
+
// Simulate card recognition with more realistic results
|
| 361 |
+
const sampleCards = [
|
| 362 |
+
{ rank: 'A', suit: '♠', suitClass: 'spade' },
|
| 363 |
+
{ rank: 'K', suit: '♥', suitClass: 'heart' },
|
| 364 |
+
{ rank: 'Q', suit: '♦', suitClass: 'diamond' },
|
| 365 |
+
{ rank: 'J', suit: '♣', suitClass: 'club' },
|
| 366 |
+
{ rank: 'T', suit: '♠', suitClass: 'spade' },
|
| 367 |
+
{ rank: '9', suit: '♥', suitClass: 'heart' }
|
| 368 |
+
];
|
| 369 |
+
|
| 370 |
+
// Randomly select two different cards
|
| 371 |
+
const card1 = sampleCards[Math.floor(Math.random() * sampleCards.length)];
|
| 372 |
+
let card2;
|
| 373 |
+
do {
|
| 374 |
+
card2 = sampleCards[Math.floor(Math.random() * sampleCards.length)];
|
| 375 |
+
} while (card1.rank === card2.rank && card1.suit === card2.suit);
|
| 376 |
+
|
| 377 |
+
// Update card displays
|
| 378 |
+
document.getElementById('card1').setAttribute('data-rank', card1.rank);
|
| 379 |
+
document.getElementById('card1').setAttribute('data-suit', card1.suit);
|
| 380 |
+
document.getElementById('card1').innerHTML = `${card1.rank}<span class="${card1.suitClass}">${card1.suit}</span>`;
|
| 381 |
+
|
| 382 |
+
document.getElementById('card2').setAttribute('data-rank', card2.rank);
|
| 383 |
+
document.getElementById('card2').setAttribute('data-suit', card2.suit);
|
| 384 |
+
document.getElementById('card2').innerHTML = `${card2.rank}<span class="${card2.suitClass}">${card2.suit}</span>`;
|
| 385 |
+
|
| 386 |
+
// Determine action based on cards (simplified poker logic)
|
| 387 |
+
let action, percentage;
|
| 388 |
+
if (card1.rank === 'A' || card2.rank === 'A') {
|
| 389 |
+
action = "Open Raise";
|
| 390 |
+
percentage = "92%";
|
| 391 |
+
} else if (card1.rank === card2.rank) {
|
| 392 |
+
action = "3-Bet";
|
| 393 |
+
percentage = "85%";
|
| 394 |
+
} else if (card1.suitClass === card2.suitClass) {
|
| 395 |
+
action = "Call";
|
| 396 |
+
percentage = "75%";
|
| 397 |
+
} else {
|
| 398 |
+
action = "Fold";
|
| 399 |
+
percentage = "60%";
|
| 400 |
+
}
|
| 401 |
+
|
| 402 |
+
document.querySelector('.text-green-400').textContent = `${action} (${percentage})`;
|
| 403 |
+
}
|
| 404 |
+
|
| 405 |
+
// Handle file upload
|
| 406 |
+
function handleFileUpload(event) {
|
| 407 |
+
const file = event.target.files[0];
|
| 408 |
+
if (file) {
|
| 409 |
+
const reader = new FileReader();
|
| 410 |
+
reader.onload = function(e) {
|
| 411 |
+
// Hide camera and show result
|
| 412 |
+
cameraContainer.style.display = 'none';
|
| 413 |
+
resultContainer.style.display = 'block';
|
| 414 |
+
|
| 415 |
+
// Analyze the uploaded image
|
| 416 |
+
analyzeImage(e.target.result);
|
| 417 |
+
};
|
| 418 |
+
reader.readAsDataURL(file);
|
| 419 |
+
}
|
| 420 |
+
}
|
| 421 |
+
|
| 422 |
+
// Initialize app
|
| 423 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 424 |
+
// Start camera automatically
|
| 425 |
+
startCamera();
|
| 426 |
+
|
| 427 |
+
// Capture button
|
| 428 |
+
captureBtn.addEventListener('click', capturePhoto);
|
| 429 |
+
|
| 430 |
+
// Rescan button
|
| 431 |
+
rescanBtn.addEventListener('click', function() {
|
| 432 |
+
startCamera();
|
| 433 |
+
});
|
| 434 |
+
|
| 435 |
+
// Save result button
|
| 436 |
+
saveResultBtn.addEventListener('click', function() {
|
| 437 |
+
alert("Résultat sauvegardé dans votre historique");
|
| 438 |
+
});
|
| 439 |
+
|
| 440 |
+
// Upload button
|
| 441 |
+
uploadBtn.addEventListener('click', function() {
|
| 442 |
+
fileInput.click();
|
| 443 |
+
});
|
| 444 |
+
|
| 445 |
+
// File input change
|
| 446 |
+
fileInput.addEventListener('change', handleFileUpload);
|
| 447 |
});
|
| 448 |
+
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 449 |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=NeverBlufff/teambpc" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 450 |
</html>
|