-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (76 loc) · 2.84 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<main>
<h1>Split Text</h1>
<div>
<div class="col">
<textarea id="input-text" rows="10" placeholder="Enter text to split"></textarea>
<fieldset>
<legend>Options</legend>
<div>
<input type="checkbox" id="input-type-lines" checked />
<label for="input-type-lines">Lines</label>
</div>
<div>
<input type="checkbox" id="input-type-words" />
<label for="input-type-words">Words</label>
</div>
<div>
<input type="checkbox" id="input-type-chars" />
<label for="input-type-chars">Chars</label>
</div>
<div>
<input type="checkbox" id="input-no-aria-label" />
<label for="input-no-aria-label">No aria-label</label>
</div>
<div>
<input type="checkbox" id="input-no-balance" />
<label for="input-no-balance">No balance<br /><small>turn of the balance-text library</small></label>
</div>
<div>
<input type="checkbox" id="input-handle-cjt" />
<label for="input-handle-cjt">Handle CJT</label>
</div>
<div>
<input type="range" id="input-balance-ratio" step="0.01" min="0" max="1" value="1" />
<label for="input-balance-ratio">Balance ratio</label>
</div>
<div>
<input type="number" id="input-min-lines" min="1" value="1" />
<label for="input-min-lines">Min lines</label>
</div>
<div>
<input type="range" id="input-line-threshold" step="0.01" min="0" max="1" value="0.2" />
<label for="input-line-threshold">Line threshold</label>
</div>
</fieldset>
<fieldset>
<legend>Styles</legend>
<div>
<input type="range" id="input-font-size" min="10" max="100" value="16" />
<label for="input-font-size">Font size</label>
</div>
<div>
<input type="checkbox" id="input-balance" value="balance" checked />
<label for="input-balance">text-wrap: balance<br /><small>preferred way on modern browsers</small></label>
</div>
</fieldset>
</div>
<div class="col">
<div class="output-container">
<div id="output-text"></div>
</div>
<button id="output-revert">Revert</button>
<div id="original-text"></div>
</div>
</div>
</main>
<script src="./index.js" type="module"></script>
</body>
</html>