-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
111 lines (96 loc) · 3.88 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
<!DOCTYPE html>
<html lang="en" x-data>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0"
/>
<title>Pokemon TCG Pocket Draw Simulator</title>
<!-- Meta Properties -->
<meta property="og:title" content="TCG Pocket Draw Simulator" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="Simulate drawing and playing specific combinations of cards in Pokemon TCG Pocket" />
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Shippori+Mincho&display=swap" rel="stylesheet" />
<!-- Simple.css for base styling-->
<link rel="stylesheet" href="./vendor/simple-css/simple.min.css">
<!-- choices.js styles -->
<link rel="stylesheet" href="./vendor/choices-js/choices.min.css" />
<!-- Custom app styles -->
<link rel="stylesheet" href="./css/app.css" />
<!-- Alpine.js -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js" defer></script>
<!-- choices.js -->
<script src="./vendor/choices-js/choices.min.js"></script>
<!-- Our App JS (the simulator) -->
<script src="./js/app.js"></script>
</head>
<body>
<hgroup>
<h1>TCG Pocket Draw Simulator</h1>
<p class="subheader">Simulate drawing and playing specific combinations of cards in Pokemon TCG Pocket</p>
</hgroup>
<article>
<b>Instructions</b>
<ul>
<li>Choose up to 20 cards (the simulator will fill in to make a full deck).</li>
<li>Inlcude <i>all</i> basic pokemon and draw-related trainer cards.</li>
<li>Choose the cards you're targetting to play (i.e. <kbd>Ninetails</kbd>, <kbd>Blaine</kbd>).</li>
<li>If you want to simulate OR-logic with multiple target groups, (i.e. <kbd>Ninetails</kbd>, <kbd>Blaine</kbd> OR <kbd>Magmar</kbd>, <kbd>Blaine</kbd>) use the "Add Target Set" button.</li>
</ul>
<b>Limitations</b>
<ul>
<li>Pokemon Connection and Team Galactic Grunt not yet supported.
</ul>
<form
x-data="pokemonSimulator()"
x-init="initChoices()"
@submit.prevent="runSimulation"
>
<fieldset>
<legend>Select Cards for Your Deck</legend>
<label for="deckSelection">Your Deck</label>
<select id="deckSelection" multiple x-ref="deckSelect"></select>
</fieldset>
<div class="target-groups">
<template x-for="(group, gIndex) in targetGroups" :key="group.id">
<fieldset>
<legend
x-text="
gIndex === 0
? `Target Cards (Group ${gIndex + 1})`
: `OR Target Group (Group ${gIndex + 1})`
"
></legend>
<label :for="'targetSelect' + group.id">
Pick the cards for this group:
</label>
<select
:id="'targetSelect' + group.id"
multiple
x-ref="group.targetSelect"
></select>
</fieldset>
</template>
</div>
<button type="button" @click="addTargetGroup()">Add Target Set</button>
<button type="submit">Run Simulation</button>
<!-- New fieldset (or div) for log output -->
<fieldset class="hidden" x-ref="logFieldset">
<legend>Simulation Log</legend>
<!-- We'll insert messages here -->
<div x-ref="logContainer" class="log-output"></div>
</fieldset>
</form>
</article>
<p class="footer">
<small>
Made with ❤️ by
<a href="https://peticol.as" target="_blank" rel="noopener noreferrer">Devon Peticolas</a> | Source on <a href="https://github.com/x/ptcgp-simulator" target="_blank" rel="noopener noreferrer">GitHub</a>
</small>
</p>
</body>
</html>