-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
92 lines (80 loc) · 2.99 KB
/
index.html
File metadata and controls
92 lines (80 loc) · 2.99 KB
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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>暗記シート - Memorize Sheet</title>
<link rel="stylesheet" href="./src/style.css" />
</head>
<body>
<div id="app">
<!-- コントロールパネル -->
<div id="control-panel">
<h1>暗記シート</h1>
<!-- ファイル選択 -->
<div class="control-group">
<label for="file-input">画像ファイルを選択:</label>
<input id="file-input" type="file" accept="image/*" multiple webkitdirectory />
</div>
<!-- 閾値設定 -->
<div class="control-group">
<label for="color-threshold">
色の範囲: <span id="color-threshold-value">30</span>
</label>
<input id="color-threshold" type="range" min="5" max="90" value="30" class="slider" />
<small>大きいほど似た色も一緒に隠れます</small>
</div>
<div class="control-group">
<label for="min-area">
最小サイズ: <span id="min-area-value">100</span> ピクセル
</label>
<input id="min-area" type="range" min="0" max="1000" value="100" step="10" class="slider" />
<small>この値より小さいノイズは除外されます</small>
</div>
<!-- スポイトツール -->
<div class="control-group">
<button id="eyedropper-btn" class="btn btn-primary">
🎨 スポイトで色を選択
</button>
<button id="clear-colors-btn" class="btn btn-secondary">
🗑️ 選択色をクリア
</button>
</div>
<!-- 選択された色のリスト -->
<div class="control-group">
<label>選択された色:</label>
<div id="color-list"></div>
</div>
<!-- その他のコントロール -->
<div class="control-group">
<button id="fullscreen-btn" class="btn">
🖥️ 全画面表示
</button>
</div>
<!-- 使い方 -->
<div class="control-group info-box">
<h3>使い方:</h3>
<ol>
<li>画像ファイルを選択します</li>
<li>「スポイトで色を選択」をクリックします</li>
<li>画像上で消したい色(例:赤)をクリックします</li>
<li>その色の部分が透明になって消えます</li>
<li>十字のハンドルをドラッグして表示を切り替えます</li>
<li>左上と右下:元画像、右上と左下:加工後</li>
</ol>
</div>
</div>
<!-- 画像表示エリア -->
<div id="view-container">
<div id="view"></div>
<!-- ドラッグ可能な十字ハンドル -->
<div id="drag-handle">
<div class="drag-handle-horizontal"></div>
<div class="drag-handle-vertical"></div>
<div class="drag-handle-center"></div>
</div>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>