mtgcsv/index.html
2024-08-20 22:27:26 -04:00

57 lines
2.1 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">
</head>
<body>
<div class="container">
<div class="menu">
<div class="hamburger-menu" onclick="toggleMenu()"></div>
<div id="menu-content" class="menu-content">
<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">
<div>
<label for="card-name">Card Name:</label>
<input type="text" id="card-name" autocomplete="off" required>
<div id="suggestions"></div>
</div>
<div>
<label for="set-code">Set Code:</label>
<input type="text" id="set-code" required>
</div>
<div>
<label for="card-id">Card ID:</label>
<input type="text" id="card-id" required>
</div>
<div>
<label for="quantity">Quantity:</label>
<input type="number" id="quantity" min="1" value="1" required>
</div>
<div>
<label for="foil">Is it Foil?</label>
<select id="foil">
<option value="No">No</option>
<option value="Yes">Yes</option>
</select>
</div>
<button type="button" id="add-card-button">Add Card</button>
</form>
<button id="download-csv-button">Download CSV</button>
<textarea id="csv-output" readonly></textarea>
<div id="card-popup" class="card-popup"></div>
</div>
<script type="module" src="app.js"></script>
</body>
</html>