mirror of
https://github.com/cfultz/mtgcsv.git
synced 2024-11-25 02:20:03 +01:00
92 lines
4.3 KiB
HTML
92 lines
4.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>MTG Card CSV Generator</title>
|
|
<link rel="stylesheet" href="styles.css">
|
|
<link rel="manifest" href="manifest.json">
|
|
<link href="https://fonts.googleapis.com/css2?family=Sorts+Mill+Goudy&display=swap" rel="stylesheet">
|
|
<link rel="icon" href="icon.png" type="image/png">
|
|
<link href="//cdn.jsdelivr.net/npm/mana-font@latest/css/mana.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="menu">
|
|
<div class="hamburger-menu" onclick="toggleMenu()">☰</div>
|
|
<div id="menu-content" class="menu-content">
|
|
<label>Select Theme:</label>
|
|
<div id="theme-selector">
|
|
<span class="mana-icon" onclick="setTheme('')"></span> <!-- Colorless -->
|
|
<span class="mana-icon" onclick="setTheme('theme-white')"></span> <!-- White -->
|
|
<span class="mana-icon" onclick="setTheme('theme-blue')"></span> <!-- Blue -->
|
|
<span class="mana-icon" onclick="setTheme('theme-black')"></span> <!-- Black -->
|
|
<span class="mana-icon" onclick="setTheme('theme-red')"></span> <!-- Red -->
|
|
<span class="mana-icon" onclick="setTheme('theme-green')"></span> <!-- Green -->
|
|
</div>
|
|
<label for="sound-threshold">Sound Threshold (USD):</label>
|
|
<input type="number" id="sound-threshold" min="0.01" step="0.01" value="1.00">
|
|
</div>
|
|
</div>
|
|
|
|
<h1>MTG Card CSV Generator</h1>
|
|
<form id="card-form" class="mdc-card">
|
|
<div class="mdc-text-field mdc-text-field--outlined">
|
|
<input type="text" id="card-name" class="mdc-text-field__input" autocomplete="off" required>
|
|
<label class="mdc-floating-label" for="card-name">Card Name</label>
|
|
<div class="mdc-line-ripple"></div>
|
|
</div>
|
|
|
|
<div class="mdc-text-field mdc-text-field--outlined">
|
|
<input type="text" id="set-code" class="mdc-text-field__input" required>
|
|
<label class="mdc-floating-label" for="set-code">Set Code</label>
|
|
<div class="mdc-line-ripple"></div>
|
|
</div>
|
|
|
|
<div class="mdc-text-field mdc-text-field--outlined">
|
|
<input type="text" id="card-id" class="mdc-text-field__input" required>
|
|
<label class="mdc-floating-label" for="card-id">Card ID</label>
|
|
<div class="mdc-line-ripple"></div>
|
|
</div>
|
|
|
|
<div class="mdc-text-field mdc-text-field--outlined">
|
|
<input type="number" id="quantity" class="mdc-text-field__input" min="1" value="1" required>
|
|
<label class="mdc-floating-label" for="quantity">Quantity</label>
|
|
<div class="mdc-line-ripple"></div>
|
|
</div>
|
|
|
|
<div class="mdc-select">
|
|
<select id="foil" class="mdc-select__native-control">
|
|
<option value="No">No</option>
|
|
<option value="Yes">Yes</option>
|
|
</select>
|
|
<label class="mdc-floating-label">Is it Foil?</label>
|
|
<div class="mdc-line-ripple"></div>
|
|
</div>
|
|
|
|
<button type="button" class="mdc-button mdc-button--raised" id="add-card-button">Add Card</button>
|
|
</form>
|
|
|
|
<button class="mdc-button mdc-button--outlined" id="download-csv-button">Download CSV</button>
|
|
|
|
<textarea id="csv-output" readonly></textarea>
|
|
<div id="card-popup" class="card-popup"></div>
|
|
</div>
|
|
|
|
<footer>
|
|
<p>
|
|
<a href="https://github.com/cfultz/mtgcsv" target="_blank">View on GitHub</a> |
|
|
This app is not affiliated with Wizards of the Coast or Hasbro. All rights and trademarks are owned by their respective owners.
|
|
</p>
|
|
</footer>
|
|
|
|
<script type="module" src="app.js"></script>
|
|
<script>
|
|
if (typeof navigator.serviceWorker !== 'undefined') {
|
|
navigator.serviceWorker.register('sw.js')
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|