-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
132 lines (100 loc) · 4.37 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MTG card randomizer</title>
<meta property="og:title" content="MTG card randomizer">
<meta name="twitter:title" content="MTG card randomizer">
<meta name="description" content="Magic: The Gathering (MTG) card randomizer web app using the Scryfall API">
<meta property="og:description" content="Magic: The Gathering (MTG) card randomizer web app using the Scryfall API">
<meta name="twitter:description" content="Magic: The Gathering (MTG) card randomizer web app using the Scryfall API">
<meta name="keywords" content="magic, magic the gathering, mtg, random, scryfall, search, api">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta property="og:image" content="https://files.catbox.moe/u0djqp.png">
<meta name="twitter:image" content="https://files.catbox.moe/u0djqp.png">
<link rel="shortcut icon" href="./favicon.png" type="image/png">
<meta name="theme-color" content="#cd87ee">
<meta name="msapplication-navbutton-color" content="#cd87ee">
<meta name="apple-mobile-web-app-status-bar-style" content="#cd87ee">
<link rel="stylesheet" href="style.css" charset="UTF-8">
<script src="./app.js" type="module" charset="UTF-8" defer></script>
</head>
<body>
<h1>MTG card randomizer</h1>
<div id="js-disabled-warning">
⚠ Javascript is disabled or unsupported in this browser
</div>
<h2>Scryfall search query</h2>
<input type="text" list="exp-list" placeholder="(Type query here)" id="scryfall-api-search-query" name="scryfall-exp"></input>
<datalist id="exp-list">
<option>set:leb -(t:land legal:standard)</option>
</datalist>
<p>Leave empty to choose from all available cards. Use a search query to specify the type of cards that can be chosen.</p>
<p><a href="https://scryfall.com/docs/syntax" target="_blank" rel="noopener noreferrer">Scryfall Search Reference</a></p>
<div class="random-gen">
<h2>Get random card(s)</h2>
<label>Number of cards to get: </label>
<input type="number" id="ammount" name="ammount" placeholder="1-128" min="1" max="128" value="1"><br>
<button type="button" id="random-gen-get">Get cards</button>
</div>
<div>
<h3>Options</h3>
<button type="button" id="btn-clear-lists">Clear lists</button>
</div>
<div>
<h3>Simple card output</h3>
<div class="stats">
<div>
<span id="counter-current">0</span>/<span id="counter-total">0</span>
</div>
<div>
Average: <span id="perf-average">N/A</span>
</div>
</div>
<ul id="simple-card-output">
</ul>
</div>
<div>
<h3>Table output</h3>
<table id="table-output">
<tr>
<th>Card name</th>
<th>Set</th>
<th>Type</th>
<th>Rarity</th>
<th>Image</th>
</tr>
</table>
</div>
<h3>Save/Download</h3>
<div class="download-buttons">
<button type="button" id="btn-download-cod">Download as .cod file</button>
<button type="button" id="btn-download-dec">Download as .dec file</button>
<button type="button" id="btn-copytoclip">Copy deck to clipboard</button>
</div>
<details open class="help">
<summary>Help</summary>
<h4>Cockatrice paths</h4>
<table>
<tr>
<th>System</th>
<th>Path</th>
</tr>
<tr>
<td>Windows</td>
<td><code>%LOCALAPPDATA%\Cockatrice\Cockatrice\decks</code></td>
</tr>
</table>
<h4>Load deck from clipboard in Cockatrice</h4>
<p>In Cockatrice, press Ctrl+Shift+V or navigate: Deck Editor > Load deck from clipboard...</p>
<img src="https://files.catbox.moe/560uq8.png" alt="In Cockatrice: Deck Editor > Load deck from clipboard...">
</details>
</body>
<script>
document.getElementById("js-disabled-warning").style.display = "none";
</script>
</html>