aboutsummaryrefslogtreecommitdiff
path: root/src/components/CardThumb.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/CardThumb.svelte')
-rw-r--r--src/components/CardThumb.svelte35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/components/CardThumb.svelte b/src/components/CardThumb.svelte
deleted file mode 100644
index 2f722a9..0000000
--- a/src/components/CardThumb.svelte
+++ /dev/null
@@ -1,35 +0,0 @@
-<script lang="js">
-
- import {setLeftPanelCard} from '../control/left_panel';
- import { cardImageUrl } from '../utils';
-
- let {id, area, idx} = $props();
-
- function onhover() {
- setLeftPanelCard(id);
- }
-
- function onDragStart(e) {
- e.dataTransfer.setData('text', JSON.stringify({id, area, idx}))
- }
-
-</script>
-
-{#if id}
- <img
- style="margin:2px;"
- draggable="true"
- onmouseover={onhover}
- onfocus={onhover}
- ondragstart={onDragStart}
- height="100%"
- src={cardImageUrl(id)}
- alt="yugioh card {id}"
- />
-{/if}
-
-<style>
-
-
-
-</style>