-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (78 loc) · 3.62 KB
/
index.html
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
<html>
<head>
<meta charset="utf-8" />
<title>Table Viewer</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="root-container">
<h1>Table Viewer</h1>
「|」(バーティカルバー)区切りのテーブルデータをプレビュー、変換します。
<textarea id="input" rows="8" placeholder="テキストをここに入力"></textarea>
<button type="button" class="button" id="display-button">表示↓</button>
<div id="result-container">
<div id="table-container">
<table id="preview"></table>
</div>
<div id="parsed-csv-container">
<h2>CSV変換</h2>
<h3>区切り文字指定</h3>
<span class="tooltip">
対応正規表現一覧
<div class="tooltip-element">
<table>
<tr>
<td>\t</td>
<td>タブ文字</td>
</tr>
<tr>
<td>\r</td>
<td>改行 CR(0x0D)</td>
</tr>
<tr>
<td>\n</td>
<td>改行 LF(0x0A)</td>
</tr>
</table>
</div>
</span>
<div id="input-container">
<div>
行区切り文字列
<input type="text" id="row-delimiter" class="input-small" value="\r\n" />
</div>
<div>
列区切り文字列
<input type="text" id="column-delimiter" class="input-small" value="," />
</div>
</div>
<h3>全体</h3>
<textarea readonly id="csv-all" rows="8" placeholder="ここにCSVを表示"> </textarea>
<button type="button" class="button" id="csv-all-copy-button">コピー</button>
<span id="csv-all-copy-result"></span>
<h3>1行のみ</h3>
行番号
<input type="number" id="row-num" class="input-small" value="0" min="0" />
<textarea
readonly
id="csv-a-row"
rows="8"
placeholder="ここにCSVを表示"></textarea>
<button type="button" class="button" id="csv-a-row-copy-button">コピー</button>
<span id="csv-a-row-copy-result"></span>
<h3>1列のみ</h3>
列番号
<input type="number" id="column-num" class="input-small" value="0" min="0" />
<textarea
readonly
id="csv-a-column"
rows="8"
placeholder="ここにCSVを表示"></textarea>
<button type="button" class="button" id="csv-a-column-copy-button">コピー</button>
<span id="csv-a-column-copy-result"></span>
</div>
</div>
</div>
</body>
<script type="module" src="./js/main.js"></script>
</html>