mtgcsv/index.html

111 lines
4.7 KiB
HTML
Raw Permalink Normal View History

2024-08-22 00:03:33 +02:00
<!-- index.html -->
2024-08-21 03:23:06 +02:00
<!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>
2024-08-22 00:03:33 +02:00
<!-- Stylesheets -->
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/themes.css">
<link rel="stylesheet" href="css/components.css">
2024-08-21 03:23:06 +02:00
<link rel="manifest" href="manifest.json">
<link href="https://fonts.googleapis.com/css2?family=Sorts+Mill+Goudy&display=swap" rel="stylesheet">
2024-08-22 00:03:33 +02:00
<link rel="icon" href="assets/icon.png" type="image/png">
<link href="https://cdn.jsdelivr.net/npm/mana-font@latest/css/mana.css" rel="stylesheet" type="text/css" />
2024-08-21 03:23:06 +02:00
</head>
<body>
<div class="container">
2024-08-21 04:27:26 +02:00
<div class="menu">
2024-08-22 00:03:33 +02:00
<div class="hamburger-menu" id="hamburger-menu"></div>
2024-08-21 04:27:26 +02:00
<div id="menu-content" class="menu-content">
<label>Select Theme:</label>
<div id="theme-selector">
2024-08-22 00:03:33 +02:00
<span class="mana-icon" data-theme="" onclick="setTheme('')">&#xe623;</span> <!-- Colorless -->
<span class="mana-icon" data-theme="theme-white" onclick="setTheme('theme-white')">&#xe600;</span> <!-- White -->
<span class="mana-icon" data-theme="theme-blue" onclick="setTheme('theme-blue')">&#xe601;</span> <!-- Blue -->
<span class="mana-icon" data-theme="theme-black" onclick="setTheme('theme-black')">&#xe602;</span> <!-- Black -->
<span class="mana-icon" data-theme="theme-red" onclick="setTheme('theme-red')">&#xe603;</span> <!-- Red -->
<span class="mana-icon" data-theme="theme-green" onclick="setTheme('theme-green')">&#xe604;</span> <!-- Green -->
</div>
2024-08-21 04:27:26 +02:00
<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>
2024-08-21 03:23:06 +02:00
<h1>MTG Card CSV Generator</h1>
2024-08-22 00:03:33 +02:00
2024-08-21 14:46:39 +02:00
<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>
2024-08-21 03:23:06 +02:00
</div>
2024-08-21 14:46:39 +02:00
<div>
<label for="set-code">Set Code:</label>
<input type="text" id="set-code" required>
2024-08-21 03:23:06 +02:00
</div>
2024-08-21 14:46:39 +02:00
<div>
<label for="card-id">Card ID:</label>
<input type="text" id="card-id" required>
2024-08-21 03:23:06 +02:00
</div>
2024-08-21 14:46:39 +02:00
<div>
<label for="quantity">Quantity:</label>
<input type="number" id="quantity" min="1" value="1" required>
2024-08-21 03:23:06 +02:00
</div>
2024-08-21 14:46:39 +02:00
<div>
<label for="foil">Is it Foil?</label>
<select id="foil">
2024-08-21 03:23:06 +02:00
<option value="No">No</option>
<option value="Yes">Yes</option>
</select>
</div>
2024-08-21 14:46:39 +02:00
<button type="button" id="add-card-button">Add Card</button>
2024-08-21 03:23:06 +02:00
</form>
2024-08-22 00:03:33 +02:00
<div class="action-buttons">
<button id="download-csv-button">Download CSV</button>
<button id="save-collection-button">Save Collection</button>
<button id="clear-collection-button">Clear Collection</button>
</div>
2024-08-21 03:23:06 +02:00
<textarea id="csv-output" readonly></textarea>
2024-08-22 00:03:33 +02:00
<div id="card-popup" class="card-popup">
<img id="card-popup-image" src="" alt="Card Image">
</div>
<div id="zoom-modal" class="zoom-modal">
<span id="close-modal" class="close-modal">&times;</span>
<img id="zoomed-image" class="zoomed-image" src="" alt="">
</div>
2024-08-21 03:23:06 +02:00
</div>
2024-08-21 05:43:49 +02:00
<footer>
<p>
2024-08-21 18:07:20 +02:00
<a href="https://github.com/cfultz/mtgcsv" target="_blank">View on GitHub.com</a> |
2024-08-21 05:43:49 +02:00
This app is not affiliated with Wizards of the Coast or Hasbro. All rights and trademarks are owned by their respective owners.
</p>
</footer>
2024-08-22 00:03:33 +02:00
<!-- Scripts -->
<script type="module" src="js/theme.js"></script>
<script type="module" src="js/main.js"></script>
<script type="module" src="js/card.js"></script>
<script type="module" src="js/storage.js"></script>
<script type="module" src="js/csv.js"></script>
<script type="module" src="js/popup.js"></script>
2024-08-21 05:59:34 +02:00
<script>
2024-08-22 00:03:33 +02:00
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('js/sw.js').then(function(registration) {
console.log('Service Worker registered with scope:', registration.scope);
}).catch(function(error) {
console.error('Service Worker registration failed:', error);
});
2024-08-21 05:59:34 +02:00
}
2024-08-22 00:03:33 +02:00
</script>
2024-08-21 03:23:06 +02:00
</body>
</html>