-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
620 lines (531 loc) · 23.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>Balatrolator – A Balatro score calculator</title>
<link rel="stylesheet" href="./src/ui/css/styles.css">
</head>
<body>
<main class="main-content">
<div class="stack">
<h1>Balatrolator 🃏🧮</h1>
<div class="panel">
<p>Balatrolator is a score calculator for <a href="https://www.playbalatro.com/">Balatro</a>. Go, buy the game!</p>
<p>Please, <a href="https://github.com/kleinfreund/balatrolator/issues/new/choose">report any bugs you encounter</a>. Want to <a href="https://github.com/kleinfreund/balatrolator">contribute</a>?</p>
<p>Made with love by <a href="https://kleinfreund.de">kleinfreund</a>. ❤️</p>
</div>
<form class="form" method="POST" enctype="multipart/form-data" data-form>
<div class="form__hands panel">
<div class="stack">
<header class="panel-header">
<h2>Levels</h2>
</header>
<div class="stack" data-h-container></div>
</div>
</div>
<div class="form__round panel">
<div class="stack">
<header class="panel-header">
<h2>Round data</h2>
</header>
<div class="list">
<div class="card">
<label class="r-hands text-control --flat">
<span class="label truncate">Hands</span>
<input class="r-hands-input text-input" name="hands" type="number" min="0" value="0" data-r-hands>
<span class="secondary-label">Influences: Acrobat</span>
</label>
</div>
<div class="card">
<label class="r-discards text-control --flat">
<span class="label truncate">Discards</span>
<input class="r-discards-input text-input" name="discards" type="number" min="0" value="0" data-r-discards>
<span class="secondary-label">Influences: Banner, Mystic Summit</span>
</label>
</div>
<div class="card">
<label class="r-money text-control --flat">
<span class="label truncate">Money</span>
<input class="r-money-input text-input" name="money" type="number" value="0" data-r-money>
<span class="secondary-label">Influences: Bull, Bootstraps</span>
</label>
</div>
<div class="card">
<div class="stack">
<label class="r-blind-name select-control --flat">
<span class="label truncate">Blind</span>
<select class="r-blind-name-input select" data-r-blind-name>
<option value="Small Blind" selected>Small Blind</option>
<option value="Big Blind">Big Blind</option>
<option value="The Hook">The Hook</option>
<option value="The Ox">The Ox</option>
<option value="The House">The House</option>
<option value="The Wall">The Wall</option>
<option value="The Wheel">The Wheel</option>
<option value="The Arm">The Arm</option>
<option value="The Club">The Club</option>
<option value="The Fish">The Fish</option>
<option value="The Psychic">The Psychic</option>
<option value="The Goad">The Goad</option>
<option value="The Water">The Water</option>
<option value="The Window">The Window</option>
<option value="The Manacle">The Manacle</option>
<option value="The Eye">The Eye</option>
<option value="The Mouth">The Mouth</option>
<option value="The Plant">The Plant</option>
<option value="The Serpent">The Serpent</option>
<option value="The Pillar">The Pillar</option>
<option value="The Needle">The Needle</option>
<option value="The Head">The Head</option>
<option value="The Tooth">The Tooth</option>
<option value="The Flint">The Flint</option>
<option value="The Mark">The Mark</option>
<option value="Amber Acorn">Amber Acorn</option>
<option value="Verdant Leaf">Verdant Leaf</option>
<option value="Violet Vessel">Violet Vessel</option>
<option value="Crimson Heart">Crimson Heart</option>
<option value="Cerulean Bell">Cerulean Bell</option>
</select>
<span class="secondary-label">Influences: Debuffed cards, scoring</span>
</label>
<label class="r-blind-is-active checkbox-control">
<input class="r-blind-is-active-input checkbox" type="checkbox" value="is-active" checked data-r-blind-is-active>
<span class="label">Active?</span>
</label>
</div>
</div>
<div class="card">
<label class="r-deck select-control --flat">
<span class="label truncate">Deck</span>
<select class="r-deck-input select" data-r-deck>
<option value="Red Deck" selected>Red Deck</option>
<option value="Blue Deck">Blue Deck</option>
<option value="Yellow Deck">Yellow Deck</option>
<option value="Green Deck">Green Deck</option>
<option value="Black Deck">Black Deck</option>
<option value="Magic Deck">Magic Deck</option>
<option value="Nebula Deck">Nebula Deck</option>
<option value="Ghost Deck">Ghost Deck</option>
<option value="Abandoned Deck">Abandoned Deck</option>
<option value="Checkered Deck">Checkered Deck</option>
<option value="Zodiac Deck">Zodiac Deck</option>
<option value="Painted Deck">Painted Deck</option>
<option value="Anaglyph Deck">Anaglyph Deck</option>
<option value="Plasma Deck">Plasma Deck</option>
<option value="Erratic Deck">Erratic Deck</option>
<option value="Challenge Deck">Challenge Deck</option>
</select>
<span class="secondary-label">Influences: Scoring with Plasma Deck</span>
</label>
</div>
<div class="card">
<label class="r-joker-slots text-control --flat">
<span class="label truncate">Joker slots</span>
<input class="r-joker-slots-input text-input" name="joker-slots" type="number" value="5" data-r-joker-slots>
<span class="secondary-label">Influences: Joker Stencil</span>
</label>
</div>
<div class="card">
<label class="r-observatory multiselect-control --flat">
<span class="label truncate">Observatory</span>
<select class="r-observatory-input multiselect" multiple data-r-observatory>
<option value="Pluto">Pluto</option>
<option value="Mercury">Mercury</option>
<option value="Uranus">Uranus</option>
<option value="Venus">Venus</option>
<option value="Saturn">Saturn</option>
<option value="Flush">Flush</option>
<option value="Earth">Earth</option>
<option value="Mars">Mars</option>
<option value="Neptune">Neptune</option>
<option value="Planet X">Planet X</option>
<option value="Ceres">Ceres</option>
<option value="Eris">Eris</option>
</select>
</label>
</div>
</div>
</div>
</div>
<div class="form__jokers panel">
<div class="stack">
<header class="panel-header">
<h2>Jokers</h2>
<button class="add-joker-button button --icon" type="button" data-j-add-button>
<span class="visually-hidden">Add</span>
<svg class="icon" role="img" viewBox="0 0 24 24" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
<title>Plus icon</title>
<path d="M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z" fill="currentColor"></path>
</svg>
</button>
</header>
<div class="list" data-j-container data-drop-zone></div>
</div>
</div>
<div class="form__cards panel">
<div class="stack">
<header class="panel-header">
<h2>Hand</h2>
<button class="add-card-button button --icon" type="button" data-c-add-button>
<span class="visually-hidden">Add</span>
<svg class="icon" role="img" viewBox="0 0 24 24" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
<title>Plus icon</title>
<path d="M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z" fill="currentColor"></path>
</svg>
</button>
</header>
<div class="list" data-c-container data-drop-zone></div>
</div>
</div>
<div class="form__score panel">
<div class="stack">
<button class="button" type="submit">Submit</button>
<p>Hand: <b data-sc-played-hand>—</b></p>
<div class="list" data-sc-container></div>
</div>
</div>
</form>
</div>
</main>
<template id="hand-level">
<p><span data-h-name></span></p>
<div class="stack">
<div class="input-list">
<label class="h-level text-control --flat">
<span class="label">lvl</span>
<input class="h-level-input text-input" type="number" value="1" min="1" data-h-level>
</label>
<label class="h-plays text-control --flat">
<span class="label">#<span class="visually-hidden">Plays</span></span>
<input class="h-plays-input text-input" type="number" value="0" min="0" data-h-plays>
</label>
</div>
</div>
</template>
<template id="joker-card">
<div class="stack">
<div class="action-list">
<label class="j-name select-control">
<span class="visually-hidden">Joker name</span>
<select class="j-name-input select" data-j-name>
<option value="8 Ball" selected>8 Ball</option>
<option value="Abstract Joker">Abstract Joker</option>
<option value="Acrobat">Acrobat</option>
<option value="Ancient Joker">Ancient Joker</option>
<option value="Arrowhead">Arrowhead</option>
<option value="Astronomer">Astronomer</option>
<option value="Banner">Banner</option>
<option value="Baron">Baron</option>
<option value="Baseball Card">Baseball Card</option>
<option value="Blackboard">Blackboard</option>
<option value="Bloodstone">Bloodstone</option>
<option value="Blue Joker">Blue Joker</option>
<option value="Blueprint">Blueprint</option>
<option value="Bootstraps">Bootstraps</option>
<option value="Brainstorm">Brainstorm</option>
<option value="Bull">Bull</option>
<option value="Burglar">Burglar</option>
<option value="Burnt Joker">Burnt Joker</option>
<option value="Business Card">Business Card</option>
<option value="Campfire">Campfire</option>
<option value="Canio">Canio</option>
<option value="Card Sharp">Card Sharp</option>
<option value="Cartomancer">Cartomancer</option>
<option value="Castle">Castle</option>
<option value="Cavendish">Cavendish</option>
<option value="Ceremonial Dagger">Ceremonial Dagger</option>
<option value="Certificate">Certificate</option>
<option value="Chaos the Clown">Chaos the Clown</option>
<option value="Chicot">Chicot</option>
<option value="Clever Joker">Clever Joker</option>
<option value="Cloud 9">Cloud 9</option>
<option value="Constellation">Constellation</option>
<option value="Crafty Joker">Crafty Joker</option>
<option value="Crazy Joker">Crazy Joker</option>
<option value="Credit Card">Credit Card</option>
<option value="Delayed Gratification">Delayed Gratification</option>
<option value="Devious Joker">Devious Joker</option>
<option value="Diet Cola">Diet Cola</option>
<option value="DNA">DNA</option>
<option value="Driver's license">Driver's license</option>
<option value="Droll Joker">Droll Joker</option>
<option value="Drunkard">Drunkard</option>
<option value="Dusk">Dusk</option>
<option value="Egg">Egg</option>
<option value="Erosion">Erosion</option>
<option value="Even Steven">Even Steven</option>
<option value="Faceless Joker">Faceless Joker</option>
<option value="Fibonacci">Fibonacci</option>
<option value="Flash Card">Flash Card</option>
<option value="Flower Pot">Flower Pot</option>
<option value="Fortune Teller">Fortune Teller</option>
<option value="Four Fingers">Four Fingers</option>
<option value="Gift Card">Gift Card</option>
<option value="Glass Joker">Glass Joker</option>
<option value="Gluttonous Joker">Gluttonous Joker</option>
<option value="Golden Joker">Golden Joker</option>
<option value="Golden Ticket">Golden Ticket</option>
<option value="Greedy Joker">Greedy Joker</option>
<option value="Green Joker">Green Joker</option>
<option value="Gros Michel">Gros Michel</option>
<option value="Hack">Hack</option>
<option value="Half Joker">Half Joker</option>
<option value="Hallucination">Hallucination</option>
<option value="Hanging Chad">Hanging Chad</option>
<option value="Hiker">Hiker</option>
<option value="Hit the Road">Hit the Road</option>
<option value="Hologram">Hologram</option>
<option value="Ice Cream">Ice Cream</option>
<option value="Invisible Joker">Invisible Joker</option>
<option value="Joker Stencil">Joker Stencil</option>
<option value="Joker">Joker</option>
<option value="Jolly Joker">Jolly Joker</option>
<option value="Juggler">Juggler</option>
<option value="Loyalty Card">Loyalty Card</option>
<option value="Luchador">Luchador</option>
<option value="Lucky Cat">Lucky Cat</option>
<option value="Lusty Joker">Lusty Joker</option>
<option value="Mad Joker">Mad Joker</option>
<option value="Madness">Madness</option>
<option value="Mail-in Rebate">Mail-in Rebate</option>
<option value="Marble Joker">Marble Joker</option>
<option value="Matador">Matador</option>
<option value="Merry Andy">Merry Andy</option>
<option value="Midas Mask">Midas Mask</option>
<option value="Mime">Mime</option>
<option value="Misprint">Misprint</option>
<option value="Mr. Bones">Mr. Bones</option>
<option value="Mystic Summit">Mystic Summit</option>
<option value="Obelisk">Obelisk</option>
<option value="Odd Todd">Odd Todd</option>
<option value="Onyx Agate">Onyx Agate</option>
<option value="Oops! All 6s">Oops! All 6s</option>
<option value="Pareidolia">Pareidolia</option>
<option value="Perkeo">Perkeo</option>
<option value="Photograph">Photograph</option>
<option value="Popcorn">Popcorn</option>
<option value="Raised Fist">Raised Fist</option>
<option value="Ramen">Ramen</option>
<option value="Red Card">Red Card</option>
<option value="Reserved Parking">Reserved Parking</option>
<option value="Ride the Bus">Ride the Bus</option>
<option value="Riff-Raff">Riff-Raff</option>
<option value="Rocket">Rocket</option>
<option value="Rough Gem">Rough Gem</option>
<option value="Runner">Runner</option>
<option value="Satellite">Satellite</option>
<option value="Scary Face">Scary Face</option>
<option value="Scholar">Scholar</option>
<option value="Séance">Séance</option>
<option value="Seeing Double">Seeing Double</option>
<option value="Seltzer">Seltzer</option>
<option value="Shoot the Moon">Shoot the Moon</option>
<option value="Shortcut">Shortcut</option>
<option value="Showman">Showman</option>
<option value="Sixth Sense">Sixth Sense</option>
<option value="Sly Joker">Sly Joker</option>
<option value="Smeared Joker">Smeared Joker</option>
<option value="Smiley Face">Smiley Face</option>
<option value="Sock and Buskin">Sock and Buskin</option>
<option value="Space Joker">Space Joker</option>
<option value="Spare Trousers">Spare Trousers</option>
<option value="Splash">Splash</option>
<option value="Square Joker">Square Joker</option>
<option value="Steel Joker">Steel Joker</option>
<option value="Stone Joker">Stone Joker</option>
<option value="Stuntman">Stuntman</option>
<option value="Supernova">Supernova</option>
<option value="Superposition">Superposition</option>
<option value="Swashbuckler">Swashbuckler</option>
<option value="The Duo">The Duo</option>
<option value="The Family">The Family</option>
<option value="The Idol">The Idol</option>
<option value="The Order">The Order</option>
<option value="The Tribe">The Tribe</option>
<option value="The Trio">The Trio</option>
<option value="Throwback">Throwback</option>
<option value="To Do List">To Do List</option>
<option value="To the Moon">To the Moon</option>
<option value="Trading Card">Trading Card</option>
<option value="Triboulet">Triboulet</option>
<option value="Troubador">Troubador</option>
<option value="Turtle Bean">Turtle Bean</option>
<option value="Vagabond">Vagabond</option>
<option value="Vampire">Vampire</option>
<option value="Walkie Talkie">Walkie Talkie</option>
<option value="Wee Joker">Wee Joker</option>
<option value="Wily Joker">Wily Joker</option>
<option value="Wrathful Joker">Wrathful Joker</option>
<option value="Yorick">Yorick</option>
<option value="Zany Joker">Zany Joker</option>
</select>
</label>
<button class="j-remove-button button --icon" type="button" data-remove-button>
<span class="visually-hidden">Remove</span>
<svg class="icon" role="img" viewBox="0 0 24 24" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
<title>Trash bin icon</title>
<path d="M7 21C6.45 21 5.97917 20.8042 5.5875 20.4125C5.19583 20.0208 5 19.55 5 19V6H4V4H9V3H15V4H20V6H19V19C19 19.55 18.8042 20.0208 18.4125 20.4125C18.0208 20.8042 17.55 21 17 21H7ZM17 6H7V19H17V6ZM9" fill="currentColor"></path>
</svg>
</button>
</div>
<label class="j-edition select-control --flat">
<span class="label truncate">Edition</span>
<select class="j-edition-input select" data-j-edition>
<option value="base" selected>Base</option>
<option value="foil">Foil</option>
<option value="holographic">Holographic</option>
<option value="polychrome">Polychrome</option>
<option value="negative">Negative</option>
</select>
</label>
<div class="joker-effects stack">
<label class="j-plus-chips text-control --flat">
<span class="label truncate">+Chips</span>
<input class="j-plus-chips-input text-input" type="number" value="0" min="0" data-j-plus-chips>
</label>
<label class="j-plus-multiplier text-control --flat">
<span class="label truncate">+Mult</span>
<input class="j-plus-multiplier-input text-input" type="number" value="0" min="0" data-j-plus-multiplier>
</label>
<label class="j-times-multiplier text-control --flat">
<span class="label truncate">xMult</span>
<input class="j-times-multiplier-input text-input" type="number" value="1" min="1" step="0.25" data-j-times-multiplier>
</label>
<label class="j-is-active checkbox-control">
<input class="j-is-active-input checkbox" type="checkbox" value="is-active" checked data-j-is-active>
<span class="label">Active?</span>
</label>
<div class="input-list j-card">
<label class="j-rank text-control">
<span class="visually-hidden">Rank</span>
<select class="j-rank-input select" data-j-rank>
<option value="Ace" selected>Ace</option>
<option value="King">King</option>
<option value="Queen">Queen</option>
<option value="Jack">Jack</option>
<option value="10">10</option>
<option value="9">9</option>
<option value="8">8</option>
<option value="7">7</option>
<option value="6">6</option>
<option value="5">5</option>
<option value="4">4</option>
<option value="3">3</option>
<option value="2">2</option>
</select>
</label>
<span class="j-card-of">of</span>
<label class="j-suit text-control">
<span class="visually-hidden">Suit</span>
<select class="j-suit-input select" data-j-suit>
<option value="Clubs" selected>Clubs</option>
<option value="Spades">Spades</option>
<option value="Hearts">Hearts</option>
<option value="Diamonds">Diamonds</option>
</select>
</label>
</div>
</div>
</div>
</template>
<template id="playing-card">
<div class="stack">
<div class="action-list">
<label class="c-is-played checkbox-control">
<input class="c-is-played-input checkbox" type="checkbox" value="is-played" checked data-c-is-played>
<span class="label">Play?</span>
</label>
<button class="c-remove-button button --icon push-left" type="button" data-remove-button>
<span class="visually-hidden">Remove</span>
<svg class="icon" role="img" viewBox="0 0 24 24" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
<title>Trash bin icon</title>
<path d="M7 21C6.45 21 5.97917 20.8042 5.5875 20.4125C5.19583 20.0208 5 19.55 5 19V6H4V4H9V3H15V4H20V6H19V19C19 19.55 18.8042 20.0208 18.4125 20.4125C18.0208 20.8042 17.55 21 17 21H7ZM17 6H7V19H17V6ZM9" fill="currentColor"></path>
</svg>
</button>
</div>
<label class="c-is-debuffed checkbox-control">
<input class="c-is-debuffed-input checkbox" type="checkbox" value="is-debuffed" data-c-is-debuffed>
<span class="label">Debuffed?</span>
</label>
<div class="input-list">
<label class="c-rank text-control">
<span class="visually-hidden">Rank</span>
<select class="c-rank-input select" data-c-rank>
<option value="Ace" selected>Ace</option>
<option value="King">King</option>
<option value="Queen">Queen</option>
<option value="Jack">Jack</option>
<option value="10">10</option>
<option value="9">9</option>
<option value="8">8</option>
<option value="7">7</option>
<option value="6">6</option>
<option value="5">5</option>
<option value="4">4</option>
<option value="3">3</option>
<option value="2">2</option>
</select>
</label>
of
<label class="c-suit text-control">
<span class="visually-hidden">Suit</span>
<select class="c-suit-input select" data-c-suit>
<option value="Clubs" selected>Clubs</option>
<option value="Spades">Spades</option>
<option value="Hearts">Hearts</option>
<option value="Diamonds">Diamonds</option>
</select>
</label>
</div>
<label class="c-edition select-control --flat">
<span class="label truncate">Edition</span>
<select class="c-edition-input select" data-c-edition>
<option value="base" selected>Base</option>
<option value="foil">Foil</option>
<option value="holographic">Holographic</option>
<option value="polychrome">Polychrome</option>
</select>
</label>
<label class="c-enhancement select-control --flat">
<span class="label truncate">Enhancement</span>
<select class="c-enhancement-input select" data-c-enhancement>
<option value="none" selected>None</option>
<option value="bonus">Bonus</option>
<option value="mult">Mult</option>
<option value="wild">Wild</option>
<option value="glass">Glass</option>
<option value="steel">Steel</option>
<option value="stone">Stone</option>
<option value="gold">Gold</option>
<option value="lucky">Lucky</option>
</select>
</label>
<label class="c-seal select-control --flat">
<span class="label truncate">Seal</span>
<select class="c-seal-input select" data-c-seal>
<option value="none" selected>None</option>
<option value="gold">Gold</option>
<option value="red">Red</option>
<option value="blue">Blue</option>
<option value="purple">Purple</option>
</select>
</label>
</div>
</template>
<template id="score-card">
<div class="card score-card">
<div class="stack">
<div class="score-entry">
<b data-sc-formatted-score></b>
<div class="badge">Luck: <b data-sc-luck></b></div>
</div>
<p class="exact-score">
Exact: <b data-sc-score></b>
</p>
</div>
</div>
</template>
<script src="./src/ui/main.ts" type="module"></script>
</body>
</html>